Frontbacked Documentation
Build complete websites with your frontend skills.
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.
Create rich interfaces.Pages, navigation, forms, profiles, stores, dashboards, and content views live in the theme.
Ship a reusable product.Package editable content, skins and custom management screens with your theme.
Add protected data.FQL handles page behavior. FRL defines what data can be stored, exposed, and changed.
Run locally →Install the server and test a complete theme.Set up your editor →Get highlighting, suggestions and diagnostics.Try the playground →Run FQL bindings and isolated FRL examples.
Start building10 pages
What you can buildUnderstand themes, FQL and FRL, and choose your first project.Your first themeCreate a folder, add a page and rule, and publish a preview.Library versionsFind published releases and copy a CDN URL or script tag.Local developmentInstall frontbacked-server and test accounts, data, uploads, email and payments.Preview accounts, email and paymentsUse the local admin area to verify a complete theme before publishing.VS Code extensionInstall language support and use suggestions, hover help and diagnostics.Create a starter projectGenerate a working theme and include initial content.Build a public waitlistConnect a public form to a protected waitlist record.Build a protected dashboardDisplay signed-in account data and a store card.Build a store cardDisplay a product and let visitors start a purchase.
First pages · FQL6 pages
Make your page reactiveBind an input and display its value with FQL.Build your first formConnect a sign-up form to state, validation and submission.Initialize frontbacked.jsLoad frontbacked.js and register your page functions.Navigate between pagesAdd smooth navigation and a page loading view.Reuse page componentsShare HTML and state across your theme pages.Connect a page to protected dataDisplay a record and understand where FRL protects its data.
State & inputs · FQL5 pages
Declare page stateDeclare input values and a list selector in page state.Bind inputs and defaultsConnect events to state and prefill editable fields.Keep data liveCombine value sources and follow saved data changes.Derive display valuesUse fallbacks, operators and formatter functions.Read and update stateUse nested state and frontbacked.js to complete a form.
Display & editing · FQL6 pages
Display text and attributesRender values and add admin and support controls.Combine display valuesDisplay values from multiple state sources.Render editable listsRepeat content and images from saved page settings.Add list controlsSet item limits, selectors and pagination.Name editable fieldsFormat dates and give page editor fields clear names.Validate editable contentChoose types and validation for page editor fields.
Form validation · FQL4 pages
Queries & lists · FQL7 pages
Read page dataRead URL values, site information and settings.Read a saved recordSelect a record and use its data and metadata.Choose record lookup fieldsSelect record fields and use generated metadata.Read account dataFollow references and display account and currency values.Summarize transactionsFilter transaction history and calculate aggregates.Query a listDeclare list filters, sorting and pagination state.Build a data pageRender a list, compare values and prepare search previews.
Accounts & records · FQL7 pages
Create accounts and sign inBuild sign-up, verification and provider sign-in flows.Manage account settingsSign out, reset passwords and update a profile.Create and edit recordsSave, update and delete posts from your theme.Submit a record formConnect a form to a saved record and handle errors.Check state before submittingValidate account fields before calling a client method.Show state validation errorsChoose readable messages and place feedback beside the right input.Continue an action after sign-inShow loading feedback and resume an authenticated action.
Theme structure & publishing9 pages
Pages & clean URLsMap routes to HTML pages and read route parameters.Page settings & defaultsShip useful editable content that stays compatible with updates.Offer theme skinsPackage skins and let admins choose an appearance.Switch light and dark modeUse skin helpers and CSS to follow the chosen mode.Add a language buttonLet visitors switch the site's language.Style dialogs and feedbackMatch alerts, messages and controls to your theme.Add custom admin pagesDeclare a menu and link protected management pages.Build admin actionsAdd location controls, guarded actions and site settings.Publish & update themesShip compatible versions, preview changes and handle review feedback.
Files & media8 pages
Theme images & videosPrepare theme assets and choose how to deliver video.Upload files with a recordCreate and update records with nested file fields.Show upload progressDisplay upload progress and replace saved attachments.Resume an interrupted uploadRestore an upload session and display its live state.Set site images and previewsChoose site logos, editor images and link previews.Set icons and link previewsChoose the site icon and default preview image for shared links.Add responsive imagesResize images and serve responsive sources.Prepare images for your layoutChoose dimensions, cropping and image field preparation.
Video players5 pages
Add a video playerRender a video and show its processing and quality status.Customize player controlsAttach a player and choose its controls and options.Control video playbackSeek, pause and respond to playback changes.Build a video playlistAppend videos and choose playlist behavior.Respond to video eventsChoose layout and quality and handle player events.
Data & access · FRL4 pages
Protect your first recordWrite a minimal FRL rule and follow a record action.Define record and account rulesUse post state and account lifecycle rules.Use request and event contextRead endpoint, payment, actor and secret values.Calculate values in FRLUse expressions, scratch data and helper functions.
Schemas · FRL9 pages
Define a record schemaDeclare typed fields, defaults and searchable values.Set defaults and searchable fieldsKeep older records useful and make text fields searchable.Choose field access and referencesIndex queries, hide private fields and reference other records.Validate text and numbersConstrain strings, enum values and numbers.Validate objects and arraysDescribe nested objects, arrays and union values.Store prices and referencesDefine money values and references in record schemas.Validate file fieldsSet size, type, duration and quality requirements for files.Generate and protect field valuesUse server time, generated values and immutable fields.Complete a record schemaCombine typed fields into a complete article schema.
Permissions & hooks · FRL5 pages
Protect record actionsChoose allowed actions using actor and admin permissions.Apply ownership rulesProtect public submissions, owner updates and admin actions.Protect private data and editsCombine read visibility with safe update rules.Normalize records with hooksPrepare incoming data and respond after a write.Update related recordsPerform related writes and handle small submitted arrays.
Custom actions · FRL6 pages
Create a custom endpointDeclare an endpoint and read request data.Call an endpoint from a pagePass route parameters, choose methods and cancel a call.Make actions safe to retryUse dedupe and validate signed webhook requests.Save records in an endpointGuard related writes and order multi-step actions.Limit repeated activityDeclare policies for records and account actions.Handle rate limitsProtect endpoints and help visitors continue after a limit.
Payments & workflows6 pages
Currencies & pricesOffer currency choices and calculate exact prices.Payment flowsCreate a checkout and fulfil confirmed payments safely.Reservations & atomic actionsHold stock or capacity and commit related changes together.Commit changes togetherSave related changes together with an atomic action.Email verification codesConfirm sensitive actions with a code-entry flow.Paired confirmationsBuild handovers with private codes and shareable links.
Messages & jobs11 pages
Send a notificationDeclare channels, send messages and connect recipients.Connect notification recipientsConnect channels, inspect delivery status and preview notifications locally.Set up message alertsHelp admins respond to new messages through connected channels.Manage notification deliveryFind recipients, group messages and inspect delivery history.Group related notificationsGroup delivery history and choose message windows.Choose notification batchingChoose browser alerts and batching for different notification intents.Run a background jobStart a job and show its progress.Display job progressFollow a running job and reconnect after leaving the page.Pause a job at a rate limitChoose which work pauses when a limit is reached.Retry selected job workRetry failed work and continue until a task is complete.External service requestsCall approved services with secure configuration.
FQL syntax reference15 pages
FQL referenceFind focused syntax and helper references.State declarations referenceLook up state comments and default values.Live state referenceDeclare live values and read connection status.Event bindings referenceLook up event source syntax and multiple input sources.Expressions referenceLook up fallbacks, logic and expression operators.Data roots and records referenceLook up data roots and single record values.Account and wallet referenceLook up account, currency, wallet and transaction values.List selectors referenceLook up list queries, comparison operators and text search.Aggregates referenceLook up counts, sums and transaction totals.Display attributes referenceLook up text, attribute, visibility and list bindings.Access and navigation attributesLook up page gates, provider sign-in and navigation directives.Video attributes referenceLook up video player attributes.Support and editor attributesLook up support launcher and page editing controls.Visibility and provider buttonsChoose visibility behavior and configure provider buttons.Settings lists referenceDeclare editable list defaults and control list editing.
frontbacked.js reference14 pages
frontbacked.js referenceFind focused client APIs and method signatures.Endpoint calls referenceCall named endpoints and cancel pending requests.Initialization and admin referenceInitialize pages and control admin edit mode.State and schemas referenceRead, update and validate state using frontbacked.js.Dialogs referenceOpen confirmations and dialogs from page code.Navigation referenceNavigate between pages and customize navigation feedback.Skins and support referenceChoose skins and open the support launcher.Images referenceBuild resized image URLs and responsive image sources.Video referenceAttach and control a video player.Uploads and posts referenceManage uploads and create, update or delete records.Storage referenceSave browser values and declare persistent storage.Authentication referenceCreate accounts, sign in and manage credentials.Billing referenceShow payments and inspect their status.Validation referenceCheck state and choose validation feedback.
Page behavior reference5 pages
Loading attributes referenceSet loading text, attributes and interaction states.Component imports referenceImport HTML fragments and complete theme pages.Page functions referenceRegister functions used by FQL expressions.Attachments and security referencePublish FQL pages and remove saved attachments.Page editor referenceConfigure recovery controls and typed page editor fields.
FRL reference17 pages
FRL referenceFind focused syntax and helper references.Declarations referenceLook up the FRL file shape and declaration names.Names and aliases referenceLook up declaration naming and compatibility aliases.Actions and endpoints referenceLook up post sections, hooks, list policies and endpoint blocks.Schema referenceLook up field types and schema rules.Field rules referenceLook up validation, visibility and generated-field options.Rule context referenceLook up actor, post, request and payment variables.Secrets and operators referenceDeclare secure configuration and look up rule operators.Built-in functions referenceLook up text, array, math, time and request helpers.Random and crypto referenceGenerate values, hash data and verify signatures.Requests and resources referenceCall external services and work with rule resources.Record helpers referenceLook up post, user, page and permission helpers.Payment events and money referenceRead payment events and declare money fields.Guest purchase ownershipLink guest purchases after the customer verifies their email.Rule publishing checklistCheck access rules and payment safety before publishing.Payment actions referenceCreate, reuse and cancel payments and reserve capacity.Workflow helpers referenceFind verification, confirmation, job and file helpers.