FrontierJS

Docs · Ecosystem

What sits around an app.

Concepts is what an app is. This page is everything around it: the packages it is built from, the direction they depend in, and what runs it once it ships.

Read it center out

FrontierJS is one repository of packages, and they fall into six rings. A ring is a reading order, not a layer: start at the center, and stop reading once you have what your task needs.

  1. The spineOne package per realm. Learn these and you know what every other package plugs into.
  2. The substrateWhat the spine stands on. Read one when a spine package reaches for it.
  3. The batteriesOptional pieces an app opts into. Nobody needs all of them on day one.
  4. The conduitsOne connector per outside service. Open the one for the vendor you are wiring.
  5. The toolingHow an app is made, checked and shipped. You run these long before you read them.
  6. The frontierWhat is built on all of it, including what runs your app in production.

The spine: one package per realm

LitestoneDataThe schema language and the database client: tables, migrations, validation, gates, encryption, the audit trail. SQLite underneath.
JunctionAPIServices, the hook pipeline, and HTTP and WebSocket transport over a Litestone database.
SierraUIThe app framework over Mesa: resources, forms, routing, and builds for a web app, a static site, a widget or an extension.

Dependencies point one way, toward the data. Junction imports Litestone; Sierra imports both. Nothing imports back up the chain, which is why the data rules hold no matter which realm a call starts in.

Litestone  ←  Junction  ←  Sierra
                              ↓
                            Mesa

The substrate: what the spine stands on

MesaThe language every interface is written in: a compiler and a small runtime. It imports nothing from the spine, so it can be used on its own.
@frontierjs/cssThe styling language. You style with a tone, like danger, and a treatment, like outlined, never with a color.
ToolbeltPure functions with no dependencies and no I/O: dates, money and units, the query directives. Any package may import it.

The batteries: opt in to what you need

Each battery has one job and attaches at one seam.

PackageWhat it adds
authSign-in, sessions, password reset, email verification and API keys
CaravanJobs, queues and schedules, stored in SQLite
ConduitThird-party integrations in both directions: calls out and webhooks in
notificationsA notification defined once and delivered over whichever transports the app configures
OrionAutomations: flows of triggers, conditions and actions
mcpAn MCP server for AI agents, derived from the schema, with the gate as its permissions
testingOne test environment across Data and API
uiMesa components: forms, display, layout, overlays, feedback
email-kit · print-kitEmail built from Mesa components; a document rendered to PDF
site-kitThe engine a marketing site runs on, this one included
JettyThe browser extension surface

Two kinds are worth telling apart. A Kit is parts one realm composes: ui, email-kit, print-kit and site-kit are all UI. A Rig is installed across realms: auth, notifications and Orion each bring a schema fragment, a service and a resource, and an app takes any subset of them.

The conduits: one connector per vendor

Conduit runs both ways: your app calls a vendor out through it, and the vendor's webhooks come back in through it, verified before your code sees them. Each conduit is a small package over Conduit that knows one outside service from both ends: its sign-in, the requests you send it, the webhooks it sends you and their signatures. Open the one you need; none depends on another.

MailGmail, Mailgun, Postmark, Resend, SendGrid
Messages and pushTwilio, Telnyx, Quo, Slack, Mattermost, Apple Push
Payments and shippingStripe, EasyPost
AIAnthropic, OpenAI
IdentityOpenID Connect, Microsoft, Google
InfrastructureCloudflare, DigitalOcean, Hetzner, S3, Turnstile
Data and automationAirtable, Basecamp, n8n, Zapier, Plausible, DataForSEO

Most are prototypes, driven against a stand-in for the vendor, and each is held out of releases until it is published on its own.

The tooling: make, check, ship

fliThe command line. It scaffolds an app, runs it in development, checks it, migrates it, and deploys and releases it.
npm create frontierStarts a new app. It runs fli new, so there is one definition of what an app looks like.
configThe TypeScript and Biome settings an app extends in one line.
The editor extensionLanguage support for .lite and .mesa files. Not yet published.

Running it: Basecamp and Outpost

Once an app ships, it is a Release: one built, unchangeable version, deployed as a whole. Two pieces move Releases onto servers and keep them running.

  • Basecamp is the control plane. It provisions servers, ships releases, installs the services your apps depend on, and shows what is running where. It is itself a FrontierJS app, the largest one built so far.
  • Outpost is what runs on each server. It answers Basecamp's signed commands (pull, build, deploy, stop, check health) and reports back. It is not a FrontierJS app, so a server carries no schema or database just to run containers.

See it: The loop, scaffold to deploy as one flow.

Where each package stands

FrontierJS is pre-alpha, and the packages are not equally far along. Each package states its own standing in one line, shipped, working or prototyped, followed by the fact that standing rests on.

In a checkout, fli ws:atlas --as=rings draws every package in its ring with its realm and state, read from the workspace rather than written down.

Every package: Packages.