charter
Go apps on Cloudflare Workers, one way: pages, an API from a contract, a live feed behind both, languages and search engines, in one Worker.
What charter is
A Go library and one command. It drives the tools that own each job and adds what they lack:
| Job | Tool |
|---|---|
| The Worker: run it, ship it, its bindings | wrangler |
| Go on Workers | workers-go |
| Components and the dev loop | gsx and gsxui |
| Pages and their routes | structpages |
| The browser's files | Vite |
| SDKs | Fern |
A charter app runs on Cloudflare and nowhere else. Locally that is wrangler dev, the same runtime; remotely it is Cloudflare.
See it running
The example is one app that uses all of charter: its notes are the live feed, people sign in with a passkey and have roles, and each thing Cloudflare gives a Worker does one job in it, on a page of its own. Its source is example/ in charter's repository, and it is what charter create copies.
This site is a charter app too: site/, a front page and these docs, which are Markdown files in its docs/ folder. The pages that show them are charter's own, the same ones your app's docs get.
Where to go
The docs follow what a developer does, in order: start an app, write it beside charter dev, prove it with charter check and charter test, ship it with charter deploy and watch it with charter run. Each page opens with the commands that matter for it, what is checked before the app runs, and what is not.
Start
- Getting started: a new app in three commands.
- The commands, and what each one proves: the whole day, command by command. Read this one first.
- An app's layout: what goes where, and what charter finds by itself.
Write
- Pages, the API, the live feed, the database.
- Signing in, and who may do what: one caller and one rule for pages and API; passkeys.
- Languages and search engines.
- Screens and themes: what charter gives every app's interface, in the app's own look.
- Docs: your app's own, from Markdown and from the app itself.
Prove
- Tests: what to test, what not to, and how.
Ship and watch
Later
- Upgrading: what each release changed in how an app is written, what to write instead, and what tells you.
With an agent
- For your coding agent: the Claude Code plugins, and what a language model reads.
What an app made with charter looks like
These pages explain charter. For what an app has, look at the example, whose reference pages nobody wrote: charter writes them from the app itself.
- Its API, from its contract.
- Its database, from its schema and queries.
- What its Worker is bound to, from
wrangler.jsonc.