Frontbacked Documentation
A Frontbacked theme is a reusable website package with its pages, style, data, and rules in one place.
Build it with HTML, CSS, JavaScript, assets, optional skins, and optional FRL rules. FQL turns those pages into live interfaces for forms, auth, lists, uploads, payments, settings, and dashboards without making every theme carry a custom app stack.
The visitor gets a real site.Pages, navigation, forms, profiles, stores, dashboards, and content views live in the theme.
The site owner gets control.Settings, skins, protected admin views, payments, and content workflows can be built in.
The developer stays frontend-first.FQL handles page behavior. FRL defines what data can be stored, exposed, and changed.
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 allow rules and rule context to guard create, get, list, edit, and delete.Before and After HooksNormalize posts, compute fields, and run controlled cross-post writes.Endpoints and DedupeCreate guarded theme endpoints and make repeat requests safe.Notification ChannelsSend email and Telegram updates to verified recipients chosen by site admins.Rate Limits and Abuse ProtectionProtect account actions, posts, uploads, and endpoints with adjustable policies.Reservations and Atomic ActionsHold capacity and commit related database changes together.Outbound HTTP RequestsCall approved outside services from FRL with loop protection and platform review.FRL ReferenceA compact syntax and rule reference for day-to-day theme work.