Architecture
Fart is split into a library that does the transpiling, a server that exposes it over HTTP, and the supporting directories around them.
/lib/
The source of the library. This is the part that other projects import.
lib/transpile/— the transpiler, including the code cartridges that render output for each target languagelib/proto_parser/— the protocol buffer parserlib/registry/— registry item handlinglib/fart_error/— error typeslib/constants/— shared constants
/fart_server/
The HTTP server. Middleware is grouped by feature under bonus_features/:
compilation/— turns Fart source into generated codedoc_generator/— renders this documentationshortlinks/— friendly redirects
See the server architecture for how requests are routed.
/docs/
Fart-related documentation. Everything in this directory is rendered and served by the Fart Server, one document per top-level route.
/devops/
Repository maintenance scripts, currently the coverage threshold check that runs in CI.
/vendor/
Vendored third-party parsers. Excluded from Deno's type checking via the
exclude key in deno.json.