Frontbacked Documentation
Build dynamic, publishable themes from the frontend you already know.
Start with Frontbacked Query Language (FQL) to wire state, forms, data, auth, and UI updates directly in your HTML. When your theme starts handling real customer data, move into Frontbacked Rule Language (FRL) to lock down validation and permissions.
Start Here
Frontbacked Query Language (FQL)
FQL OverviewThe frontend query and state layer built into frontbacked.js.State DeclarationsDeclare state, defaults, event sources, fallbacks, and formatter functions.Schema and ValidationValidate form state before signup, post create/update, and file uploads.DOM BindingsRender state into text, attributes, and repeated list templates.Data FetchingFetch settings, posts, lists, query params, route params, and site info.Theme RoutingMap clean URLs to HTML files and expose route params.Theme SkinsShip multiple CSS skins and let site owners or visitors switch visual modes.Auth and Posts APISign up, sign in, remember users, upload, update, and delete posts.FQL ReferenceA compact syntax reference for expressions, bindings, and client methods.
Files
Frontbacked Rule Language (FRL)
FRL OverviewAdd validation and permissions when your theme starts handling real data.Schemas and ValidationTypes, field rules, nested objects, files, arrays, unions, and immutable fields.PermissionsUse require blocks and runtime context to guard create, read, edit, and delete.Process Blocks and TriggersNormalize posts, compute fields, and run controlled cross-post writes.Endpoints and IdempotencyCreate guarded theme endpoints and make repeat requests safe.Async ResolutionUse promise fields and resolved webhook handlers for delayed workflows.FRL ReferenceA compact syntax and rule reference for day-to-day theme work.