Documentation
¶
Overview ¶
The example: one app that uses all of charter. Pages (structpages, gsx, gsxui, htmx 4) in three languages, an API from a contract with auth, limits, streams, MCP and SDKs, one live feed behind both, and a card for everything Cloudflare gives a Worker.
go tool charter dev work on it: a save rebuilds and reloads → http://localhost:5173 go tool charter check && go tool charter test go tool charter deploy then: go tool charter test --deployed
Directories
¶
| Path | Synopsis |
|---|---|
|
Package api is the notes API, contract first, in Go.
|
Package api is the notes API, contract first, in Go. |
|
Package built is what the app does with what Cloudflare gives a Worker: each thing does one job in the notes app, and has a page of its own that shows it (pages: the group Built).
|
Package built is what the app does with what Cloudflare gives a Worker: each thing does one job in the notes app, and has a page of its own that shows it (pages: the group Built). |
|
Package docs is the app's docs: each Markdown file of this folder as a page.
|
Package docs is the app's docs: each Markdown file of this folder as a page. |
|
Package locales is the app's messages: the catalogs of this folder (<language>.toml).
|
Package locales is the app's messages: the catalogs of this folder (<language>.toml). |
|
Package pages is the site's pages, as a tree structpages reads: every route is a field of Pages, with its route in the field's tag.
|
Package pages is the site's pages, as a tree structpages reads: every route is a field of Pages, with its route in the field's tag. |
|
sdk
|
|
|
go
module
|
|
|
ui
|
|
|
i18n
Package i18n holds the one type every gsxui component writes its own English strings through.
|
Package i18n holds the one type every gsxui component writes its own English strings through. |
|
icon
Package icon is the Lucide icon set as tag-callable gsx components: <icon.ChevronDown class="size-4"/>.
|
Package icon is the Lucide icon set as tag-callable gsx components: <icon.ChevronDown class="size-4"/>. |
|
merge
Package merge holds the Tailwind-aware class merger named by gsx.toml's class_merger.
|
Package merge holds the Tailwind-aware class merger named by gsx.toml's class_merger. |
Click to show internal directories.
Click to hide internal directories.