@usefillo/core
v0.3.2
Published
Form schema, validation, logic engine and JS client for Fillo. Framework-agnostic.
Downloads
882
Maintainers
Readme
@usefillo/core
The framework-agnostic core of Fillo — forms that render inside your own product, with your UI, no iframe.
📚 Full documentation → fillo.so/docs
This package holds the shared foundation: the form schema, validation, the conditional-logic engine, response prefill/piping, and a JS client with a resumable upload protocol. It has zero framework dependencies.
Most apps don't install this directly — you install a renderer (@usefillo/react or @usefillo/dom), which re-exports everything here you need for embedding. Reach for @usefillo/core when you're building your own renderer or working with forms on the server.
npm i @usefillo/coreimport { createClient, defineForm, validateResponse, visibleBlocks } from "@usefillo/core";
const client = createClient({ key: "pk_live_…" });
const form = defineForm({
id: "cust-feedback",
pages: [{ id: "p1", blocks: [
{ id: "email", kind: "email", label: "Work email", required: true },
{ id: "msg", kind: "long_text", label: "What should we know?" },
] }],
});Key exports: createClient / FilloClient, defineForm, validateResponse, validateField, visibleBlocks, and the schema types (FormSchema, Field, FieldKind, FormTheme, ResponseData, …).
Links
- Docs: fillo.so/docs
- Website: fillo.so
MIT licensed.
