How embedded deployment works
Deploying a Web Viewer app places your compiled web bundle where FileMaker Pro can render it inside a Web Viewer object. By default, the Agentic Development Kit (ADK) project template uses vite-plugin-singlefile, so pnpm build generates a single HTML file (dist/index.html) with all assets inlined.
Embedded deployment
Embedded deployment is the default workflow automated by ADK. The compiled HTML file is stored directly as persistent data inside your FileMaker file, and the Web Viewer loads it locally without requiring external web hosting.
ADK provisions a dedicated ADK table with an AppName field. When this field matches the app name assigned to a Web Viewer, the Web Viewer's calculated URL renders the corresponding HTML. Storing HTML in persistent data rather than standard fields allows multiple web apps to coexist in the same FileMaker file.
To deploy, prompt your coding agent to deploy the app to FileMaker. The agent compiles the bundle, targets the connected file, saves the data, and verifies layout loading. FileMaker Pro must be running with the file open and Agent Access enabled.
| Pros | Cons |
|---|---|
| Requires no external hosting infrastructure | Cannot execute server-side Node.js libraries |
| Operates fully offline once stored in the file | Increases overall FileMaker file size |
| Supports multiple apps per file, keyed by name | Stored build is separate from editable project source |
For deployment instructions, see Build and deploy an app.
Custom deployment patterns
A Web Viewer can also load content from an external URL. FileMaker injects the same script bridge into the Web Viewer's JavaScript context regardless of content origin, which is how fmBridge() functions during local development.
Two alternative patterns are possible, though not automated by ADK:
Hosted: Remove vite-plugin-singlefile from vite.config.ts, host the app on a web server or content delivery network (CDN), and point the Web Viewer calculation to that URL. Updates publish immediately without touching the FileMaker file. This pattern requires constant network access, host maintenance, and coordination with FileMaker schemas.
Downloaded (hybrid): Retain an embedded bundle for offline baseline use, but author FileMaker scripts to check a remote server for updates and store newer HTML into the file. This offers self-updating deployments while retaining offline capability, but requires custom maintenance scripts.
| Feature | Embedded | Hosted | Downloaded (hybrid) |
|---|---|---|---|
| Built-in ADK tooling | Yes (adk deploy) |
No | No |
| Requires a web host | No | Yes | Yes, for updates |
| Works offline | Yes | No | Yes, after initial download |
| Update path | Redeploy into the file | Redeploy to host; no FileMaker step | Custom update logic |
Next step
See Build and deploy an app for deployment procedures, or How ADK connects to FileMaker to review system component interactions.