Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

webdirect-runtime

БесплатноБез исполняемых скриптовНе проверен

Troubleshoot and build FileMaker WebDirect ProofKit Web Viewer apps. Load when a Web Viewer app is blank, white, or empty in WebDirect, when the WebDirect…

proofshот proofsh★ 21 звезда на GitHub

Об этом скилле

Core Rule

WebDirect does not require separate JavaScript code, a separate build, a separate deployment target, or a separate web server. A ProofKit Web Viewer app runs in the Web Viewer with the same @proofkit/webviewer APIs used in FileMaker Pro.

The main WebDirect-specific concern is refresh resilience. WebDirect can refresh the Web Viewer more often than a normal browser app, including from actions like resizing the browser window. Design the app so unexpected page reloads are recoverable.

Build Guidance

Use the normal ProofKit Web Viewer patterns:

import { fmFetch, globalSettings } from "@proofkit/webviewer";

globalSettings.setWebViewerName("web");

const result = await fmFetch("GetDashboardState", { recordId: "123" });

Deploy the app the same way as any FileMaker Web Viewer app. Embedded bundles stored in the FileMaker file are valid for WebDirect. Do not tell users to host WebDirect apps separately unless they independently chose the hosted deployment method for other reasons.

Don't apply conventional public-site page-weight budgets directly to embedded Web Viewer apps. A 10 MB bundle may be large by conventional website standards, but size alone isn't evidence that WebDirect can't load the app. Treat bundle size as a cause only after reproducing a size-dependent failure or measuring a transfer or startup problem. Check the deployed HTML, runtime errors, FileMaker bridge readiness, and WebDirect refresh behavior first.

Blank App Troubleshooting

When a web app doesn't load in WebDirect, inspect what the browser received before changing the app or its deployment model.

  1. Use connected browser tooling when available. Open the actual WebDirect page in the user's session.
  2. Inspect the complete page response served by WebDirect in the browser's network tools. Don't limit the inspection to the Web Viewer HTML stored in FileMaker or a local copy of the app bundle. Confirm whether the full WebDirect page payload contains the deployed Web Viewer HTML and JavaScript. Don't assume which request or internal loading path carries it; identify that from the live browser traffic.
  3. Check the browser console for parse errors, runtime exceptions, blocked resources, or security errors.
  4. Distinguish an empty WebDirect page response from an empty rendered root element inside the Web Viewer. React can start with an empty root and populate it at runtime, so the DOM alone doesn't prove that WebDirect omitted the bundle.

If the complete page served by WebDirect has an empty body and the Web Viewer bundle is absent from that response, suspect character encoding first. An incorrectly encoded or unsupported character in the deployed single-file HTML — the payload the deploy_html FileMaker script writes into the file — can cause WebDirect to return an empty body instead of sending the bundle. Non-ASCII content such as emoji, curly quotes, accented letters, or invalid UTF-8 sequences is the usual source. Inspect the built HTML for invalid UTF-8 or problematic characters, rebuild, redeploy via deploy_html, and check the full WebDirect response again.

If the full WebDirect response contains the Web Viewer HTML and JavaScript bundle, don't keep treating encoding or bundle size as the default cause. Follow the browser's console and network evidence to the parse, runtime, bridge, or security failure.

State Pattern

Persist critical client state so a WebDirect-triggered reload is not destructive.

Good candidates for localStorage:

  • Current workflow step.
  • Selected record or layout context.
  • Unsaved form draft data.
  • UI filters, search terms, and sort state.
  • Idempotency keys for in-progress actions.

Keep FileMaker as the source of truth for committed data. Use localStorage only for client recovery state, then revalidate or reload FileMaker data after the app starts.

const STORAGE_KEY = "invoice-review:draft";

export function saveDraft(draft: InvoiceDraft) {
  localStorage.setItem(STORAGE_KEY, JSON.stringify(draft));
}

export function loadDraft(): InvoiceDraft | null {
  const value = localStorage.getItem(STORAGE_KEY);
  return value ? (JSON.parse(value) as InvoiceDraft) : null;
}

On startup, restore local UI state first, then call FileMaker for authoritative context:

const draft = loadDraft();
const session = await fmFetch("GetWebViewerSession", {
  restoredDraftId: draft?.id,
});

UX Pattern

Prefer explicit save, resume, and discard flows. A WebDirect user should not lose important work because the browser window resized or the Web Viewer refreshed.

For forms and multi-step workflows:

  • Save drafts locally while the user types.
  • Clear draft state only after FileMaker confirms a successful save.
  • Show a "Resume draft?" prompt when restored state exists.
  • Make FileMaker script writes idempotent when retries are possible.

For dashboards and list screens:

  • Store view state locally.
  • Refetch FileMaker data on load.
  • Avoid assuming in-memory Reac
Полный SKILL.md на GitHub

Установить webdirect-runtime в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл webdirect-runtime?

Troubleshoot and build FileMaker WebDirect ProofKit Web Viewer apps. Load when a Web Viewer app is blank, white, or empty in WebDirect, when the WebDirect page response has an empty body, when deployed HTML is garbled, mangled, or corrupted, or when diagnosing character encoding, UTF-8, Unicode, mojibake, emoji, accented, curly quote, or other special or non-ASCII characters in the single-file HTML written by the deploy_html FileMaker script. Also covers refresh resilience, unexpected page reload from browser resize, session state in localStorage, bundle size and page-weight myths, running the same embedded bundle in WebDirect and FileMaker Pro without a separate deployment or web server, and browser console and network diagnosis with @proofkit/webviewer fmFetch callFMScript WebViewerAdapter.

Как установить скилл webdirect-runtime?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл webdirect-runtime запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить webdirect-runtime с