Directories
¶
| Path | Synopsis |
|---|---|
|
Package asyncapi generates an AsyncAPI 3.0.0 document from a Huma API, the way Huma itself generates OpenAPI: the Go port of ts/src/asyncapi.ts.
|
Package asyncapi generates an AsyncAPI 3.0.0 document from a Huma API, the way Huma itself generates OpenAPI: the Go port of ts/src/asyncapi.ts. |
|
authtest
Package authtest is an issuer for tests: it serves its keys over HTTP as Cloudflare Access does (/cdn-cgi/access/certs) and as an OpenID Connect issuer does (/.well-known/openid-configuration, /jwks), and signs tokens with them (go-jose, RS256).
|
Package authtest is an issuer for tests: it serves its keys over HTTP as Cloudflare Access does (/cdn-cgi/access/certs) and as an OpenID Connect issuer does (/.well-known/openid-configuration, /jwks), and signs tokens with them (go-jose, RS256). |
|
Package app runs a Go app as a Cloudflare Worker: its pages, its API, its browser files, its languages and its answers to search engines, in one value.
|
Package app runs a Go app as a Cloudflare Worker: its pages, its API, its browser files, its languages and its answers to search engines, in one value. |
|
apptest
Package apptest is for an app's tests of its Worker (the app's test/ folder), which go tool charter test runs against the Worker on wrangler dev, and go tool charter test --deployed against the deployed one.
|
Package apptest is for an app's tests of its Worker (the app's test/ folder), which go tool charter test runs against the Worker on wrangler dev, and go tool charter test --deployed against the deployed one. |
|
screens
Package screens is charter's own screens, which charter add screen:<name> copies into an app the way gsxui add copies components: the language list, the offer of the page in the reader's language, the time zone and clock dialog, the switch between the light and the dark theme, signing in with a passkey, and the docs' pages.
|
Package screens is charter's own screens, which charter add screen:<name> copies into an app the way gsxui add copies components: the language list, the offer of the page in the reader's language, the time zone and clock dialog, the switch between the light and the dark theme, signing in with a passkey, and the docs' pages. |
|
Package cloud is what Cloudflare gives a Go Worker that workers-go does not, or gives differently: for everything else, import workers-go's own packages (github.com/syumai/workers-go/cloudflare/…).
|
Package cloud is what Cloudflare gives a Go Worker that workers-go does not, or gives differently: for everything else, import workers-go's own packages (github.com/syumai/workers-go/cloudflare/…). |
|
cmd
|
|
|
charter
command
Command charter is the one command of a Go app on Cloudflare Workers.
|
Command charter is the one command of a Go app on Cloudflare Workers. |
|
example
module
|
|
|
sdk/go
module
|
|
|
examples
|
|
|
notes
module
|
|
|
notes-go
module
|
|
|
notes-go/sdk/go
module
|
|
|
notes/sdk/go
module
|
|
|
go
module
|
|
|
examples-notes
module
|
|
|
examples-notes/sdk/go
module
|
|
|
lib
module
|
|
|
internal
|
|
|
badge
Package badge draws a small two-part SVG badge, label and value, as README badges look (shields.io's flat style), with no service and no fonts to fetch: charter run seo:search's Lighthouse and audit badges (charter run seo:badges).
|
Package badge draws a small two-part SVG badge, label and value, as README badges look (shields.io's flat style), with no service and no fonts to fetch: charter run seo:search's Lighthouse and audit badges (charter run seo:badges). |
|
command
Package command is charter's commands for an app: a Go Worker on Cloudflare, laid out as its upstreams document.
|
Package command is charter's commands for an app: a Go Worker on Cloudflare, laid out as its upstreams document. |
|
command/intl
Package intl is the languages' commands, which charter's verbs and tasks call (add locale:, check, build, run translate, …): an app's languages, from its charter.toml's intl (found up from the working directory).
|
Package intl is the languages' commands, which charter's verbs and tasks call (add locale:, check, build, run translate, …): an app's languages, from its charter.toml's intl (found up from the working directory). |
|
command/seo
Package seo is charter seo: how a Go web app answers search engines, from its charter.toml's seo (found up from the working directory): the live site audited as Googlebot reads it, Lighthouse on Google's servers, the README's badges, and Google Search Console.
|
Package seo is charter seo: how a Go web app answers search engines, from its charter.toml's seo (found up from the working directory): the live site audited as Googlebot reads it, Lighthouse on Google's servers, the README's badges, and Google Search Console. |
|
dbcode
Package dbcode is a project's database code, typed, from its schema (db/migrations/*.sql, the one place the tables are said).
|
Package dbcode is a project's database code, typed, from its schema (db/migrations/*.sql, the one place the tables are said). |
|
docsgen
Package docsgen turns an app's docs (docs/*.md) into data the app carries: docs/docs.built.json, each page as HTML and as it was written, with the few lines of Go that name it (docs.Pages).
|
Package docsgen turns an app's docs (docs/*.md) into data the app carries: docs/docs.built.json, each page as HTML and as it was written, with the few lines of Go that name it (docs.Pages). |
|
fern
Package fern is the SDKs, made with Fern from a project's fern/ (its specs and generators.yml): Fern's settings written from the spec and charter.toml's [pack]; a group generated (Docker) into sdk/out/<group> when fern/ is newer than what made it; proven in its language (Go: build, vet, and Fern's tests against WireMock; TypeScript: typechecked with the TypeScript its SDKs are written for; Python: mypy and its own tests; the CLI, in Rust: built); and the Go SDK a project commits, in sdk/go.
|
Package fern is the SDKs, made with Fern from a project's fern/ (its specs and generators.yml): Fern's settings written from the spec and charter.toml's [pack]; a group generated (Docker) into sdk/out/<group> when fern/ is newer than what made it; proven in its language (Go: build, vet, and Fern's tests against WireMock; TypeScript: typechecked with the TypeScript its SDKs are written for; Python: mypy and its own tests; the CLI, in Rust: built); and the Go SDK a project commits, in sdk/go. |
|
intlkit/catalog
Package catalog is an app's message catalogs as charter intl sees them ([intl] catalogs directory: <locale>.toml per shipped locale, ICU MessageFormat, the source locale first): read and checked against the source (Read), compiled for package intl (Generate), and what is left to translate (Locale.Todo).
|
Package catalog is an app's message catalogs as charter intl sees them ([intl] catalogs directory: <locale>.toml per shipped locale, ICU MessageFormat, the source locale first): read and checked against the source (Read), compiled for package intl (Generate), and what is left to translate (Locale.Todo). |
|
intlkit/js
Package js is intl's JavaScript, which charter build copies into an app:
|
Package js is intl's JavaScript, which charter build copies into an app: |
|
intlkit/setup
Package setup is charter add locale:<id>: it sets a gsx app up for intl, from its go.mod's directory.
|
Package setup is charter add locale:<id>: it sets a gsx app up for intl, from its go.mod's directory. |
|
project
Package project reads what charter knows about an app: the Worker from wrangler.jsonc, which wrangler runs and deploys (https://developers.cloudflare.com/workers/wrangler/configuration/), and charter's own settings from an optional charter.toml beside it.
|
Package project reads what charter knows about an app: the Worker from wrangler.jsonc, which wrangler runs and deploys (https://developers.cloudflare.com/workers/wrangler/configuration/), and charter's own settings from an optional charter.toml beside it. |
|
promise
Package promise waits for JavaScript promises: the one place the Go Worker's own packages do it (hub and d1).
|
Package promise waits for JavaScript promises: the one place the Go Worker's own packages do it (hub and d1). |
|
reply
Package reply writes a JSON answer, for what the library answers outside Huma: MCP's endpoint and the documents at /.well-known/.
|
Package reply writes a JSON answer, for what the library answers outside Huma: MCP's endpoint and the documents at /.well-known/. |
|
run
Package run runs what a project's steps run: a program from the folder's packages or the PATH, its output shown or kept, a server started, waited for and stopped around what uses it, and how long each took; and charter's cache, where a step keeps what it may reuse.
|
Package run runs what a project's steps run: a program from the folder's packages or the PATH, its output shown or kept, a server started, waited for and stopped around what uses it, and how long each took; and charter's cache, where a step keeps what it may reuse. |
|
seokit/pagespeed
Package pagespeed runs Lighthouse on a live page through Google's PageSpeed Insights API: on Google's servers, so no Node and no local Chrome.
|
Package pagespeed runs Lighthouse on a live page through Google's PageSpeed Insights API: on Google's servers, so no Node and no local Chrome. |
|
seokit/searchconsole
Package searchconsole talks to the Google Search Console API with a service account, standard library only: submit and read sitemaps, and inspect how Google indexed a URL.
|
Package searchconsole talks to the Google Search Console API with a service account, standard library only: submit and read sitemaps, and inspect how Google indexed a URL. |
|
standard
Package standard is the standard test: what every API charter serves must do, checked on a running API from outside, as a client sees it.
|
Package standard is the standard test: what every API charter serves must do, checked on a running API from outside, as a client sees it. |
|
tools
Package tools is the two programs charter picks for every developer, beside Go and Node, and brings itself when a machine lacks them, so that nobody sets either up or has to remember to:
|
Package tools is the two programs charter picks for every developer, beside Go and Node, and brings itself when a machine lacks them, so that nobody sets either up or has to remember to: |
|
version
Package version is the version of charter a binary is: the release's, written in by its build (goreleaser), else the one Go records (go install …@v1.2.3, go tool charter in an app), else a build from a checkout's.
|
Package version is the version of charter a binary is: the release's, written in by its build (goreleaser), else the one Go records (go install …@v1.2.3, go tool charter in an app), else a build from a checkout's. |
|
Package intl is a gsx app's languages: the runtime's own Intl, written in markup with gsx's own mechanisms.
|
Package intl is a gsx app's languages: the runtime's own Intl, written in markup with gsx's own mechanisms. |
|
config
Package config reads an app's languages from its charter.toml: [intl], the languages it ships and where their catalogs are.
|
Package config reads an app's languages from its charter.toml: [intl], the languages it ships and where their catalogs are. |
|
filters
Package filters is intl as gsx pipeline filters.
|
Package filters is intl as gsx pipeline filters. |
|
intltest
Package intltest gives go test the Intl a Worker has: intl's js/intl-worker.mjs, with the app's catalogs, on workerd (intl/workerd), set as intl.Runtime.
|
Package intltest gives go test the Intl a Worker has: intl's js/intl-worker.mjs, with the app's catalogs, on workerd (intl/workerd), set as intl.Runtime. |
|
registry
Package registry is a registry of gsx components that an app copies in and then owns, the way gsxui add copies gsxui's (https://ui.gsxhq.dev): each component a gsx template made of gsxui components, with its text already translated and, for one that runs in the browser, the files it loads there.
|
Package registry is a registry of gsx components that an app copies in and then owns, the way gsxui add copies gsxui's (https://ui.gsxhq.dev): each component a gsx template made of gsxui components, with its text already translated and, for one that runs in the browser, the files it loads there. |
|
workerd
Package workerd is intl's Intl outside a Cloudflare Worker: workerd, the Workers runtime, serving intl's js/intl-worker.mjs with the app's catalogs, set as intl.Runtime.
|
Package workerd is intl's Intl outside a Cloudflare Worker: workerd, the Workers runtime, serving intl's js/intl-worker.mjs with the app's catalogs, set as intl.Runtime. |
|
Package live is a feed that browsers and API clients follow as it grows, with no item lost or sent twice:
|
Package live is a feed that browsers and API clients follow as it grows, with no item lost or sent twice: |
|
Package seo is how a site answers search engines: Site, the middleware that serves robots.txt, the sitemap and llms.txt, marks what isn't a page noindex and gives every page one address; Sitemap and LLMsTxt, what it serves; and SnippetWidth, how wide Google shows a title.
|
Package seo is how a site answers search engines: Site, the middleware that serves robots.txt, the sitemap and llms.txt, marks what isn't a page noindex and gives every page one address; Sitemap and LLMsTxt, what it serves; and SnippetWidth, how wide Google shows a title. |
|
audit
Package audit reads a live site as Googlebot does, robots.txt, the sitemap and every page in it, and returns what would keep a page out of Google's index or look wrong in a result: what charter run seo:audit runs, and what an app's own tests run on a local build (Audit), so a page Google couldn't index fails before it ships.
|
Package audit reads a live site as Googlebot does, robots.txt, the sitemap and every page in it, and returns what would keep a page out of Google's index or look wrong in a result: what charter run seo:audit runs, and what an app's own tests run on a local build (Audit), so a page Google couldn't index fails before it ships. |
|
config
Package config reads how an app answers search engines from its charter.toml: [seo], the live site and how Lighthouse scores it.
|
Package config reads how an app answers search engines from its charter.toml: [seo], the live site and how Lighthouse scores it. |
Click to show internal directories.
Click to hide internal directories.