Skip to main content
FlowDrop is a frontend library — how you deploy depends on your application architecture.

Bundle Size & Tree-Shaking

Import from the most specific module to minimize bundle size: Only import form/code and form/markdown if you actually need code/template editing.

CSS Import

Always import FlowDrop styles. Without this, the editor renders blank:
Or in CSS:

Svelte / SvelteKit

FlowDrop is a Svelte 5 library, so it integrates natively:
For SvelteKit, ensure FlowDrop runs only on the client (it requires DOM):

React / Vue / Angular / Vanilla JS

Use the Mount API to embed FlowDrop in any container:

React Example

Docker

Package your frontend and backend together:
Configure the API base URL via environment variable:

Static Hosting

If your frontend is a static SPA (Vite, SvelteKit adapter-static, etc.):
  1. Build your app: npm run build
  2. Deploy the dist/ folder to any static host (Vercel, Netlify, S3, etc.)
  3. Configure CORS on your backend to allow the static host’s origin

Environment Variables

Common configuration to externalize:

Next Steps