Seitenleiste

Zeigt die mobile Seitenleiste an.

Doku durchsuchen

Doku durchsuchen

The example
The example
What is in it
What it has, exactly
Making it yours
How it is built
How it is built
A page declares what it needs
Running it
The API of charter-example
The API of charter-example
Operations
Ways in
GET /api/hello
GET /api/notes
POST /api/notes
GET /api/notes/watch
DELETE /api/notes/{id}
GET /api/people
PUT /api/people/{id}/role
Types
ErrorDetail
ErrorModel
Note
Person
The database
The database
Tables
notes
activity
attachments
users
passkeys
tokens
ceremonies
Statements
What the Worker is bound to
What the Worker is bound to
Anmelden

Zeitzone und Uhrzeitformat

Datums- und Zeitangaben auf allen Seiten verwenden diese Einstellungen. „Automatisch“ verwendet die Zeitzone Ihres Browsers.

Wird geladen…

Auf dieser Seite

The example

This app is charter's example: the one app that uses all of charter, and what go tool charter create copies. These pages are its own docs, Markdown files in its docs/ folder, shown by the same pages charter's site uses for its docs.

charter itself is documented at charter's site.

What is in it

WhereWhat
The home pageNotes, live: write one and it shows at once on every open page
How it's builtEach thing Cloudflare gives a Worker doing one job, on a page of its own
The APIThe notes API, from a contract, with tokens, limits, a stream and SDKs
These pagesDocs from Markdown, and from the app itself

What it has, exactly

Three pages here are not written by anyone. charter writes them from where the app is declared, so they are what the app has now:

PageWritten from
The API: every operation, who may call it and how often, what it takes and answersthe API's contract, fern/openapi.json
The database: every table and column, and every statement the app runsdb/schema.sql and db/queries.sql
What the Worker is bound to: its database, bucket, queue, variables and the names of its secretswrangler.jsonc, .dev.vars.example, fnox.toml

Change a column, an operation or a binding and its page changes with it. There is nothing to keep in step.

Making it yours

Replace the Markdown files with your own docs: what your app is for, and how to use it. A page is a Markdown file; its first heading is its title, and its file's name is its address. The three pages above stay, and follow your app. See how it is built.