Appbricx
Docs
PricingStart free

Start here

OverviewGetting startedProjects & editorBring your own key

End-to-end walkthroughs

Lead intakeMulti-user TodoMulti-tenant SaaSReal-time ChatSlack on signup

AI & keys

AI keys — how resolution worksBYOK deep dive

SDK reference

Frontend SDK — @app/sdkBackend SDK — @app/backendUI kit — @app/ui

Integrations

Integrations catalog

Full-stack runtime

Runtime overviewNamed queriesAuth & RLSAuto CRUD REST APIWorkflowsWebhooks & schedulesTopics & CDCData templatesSecrets & env

Ship & own

Publish & domainsExport & GitHubSelf-host & deploy

Developers

Developer guide

Named queries

SQL lives in .appbricx/backend/queries/<name>.sql with Mustache parameters. The UI and workflows call the same name — never paste raw SQL into React.

File layout

.appbricx/backend/queries/
  list_leads.sql
  list_leads.meta.json      # optional params + allow list
  create_lead.sql

Example SQL

SELECT id, email, status, created_at
FROM leads
ORDER BY created_at DESC
LIMIT {{limit}}

From the frontend

import { runtime } from "@appbricx/runtime";

const result = await runtime.queries.run("list_leads", { limit: 50 });
if (!result.ok) throw new Error(result.error?.message);
const rows = result.rows;

HTTP

curl -sS -X POST "$ORIGIN/__appbricx/queries/list_leads" \
  -H "Authorization: Bearer $DATA_TOKEN" \
  -H "x-appbricx-data-api: 1" \
  -H "x-appbricx-app-session: $APP_SESSION" \
  -H "content-type: application/json" \
  -d '{"params":{"limit":50}}'

Rules

  • Parameters use {{param}} and compile to bind variables — not string concatenation.
  • Forbidden: {{{raw}}} / identifier interpolation.
  • When the app runtime is enabled, inventing db.query SQL inside UI files is rejected.
  • Prefer runtime.test_query / Backend → Queries to verify.

Related: Workflows · Auth & RLS

Appbricx

Full-stack AI app builder for teams. Hosted cloud or private deploy into your account — multi-tenant, sandboxed, credit-metered.

Product

How it worksDemoCapabilitiesPricingPrivate cloudBYOKFAQ

Resources

DocumentationBlogFor freelancersFor agenciesSupport

Company

ContactPrivate cloud / agencyPrivacyTerms

© 2026 Appbricx. All rights reserved.

TermsPrivacyCookiesAcceptable Use