Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
tern
command
Command tern is the command-line interface for the Tern framework.
|
Command tern is the command-line interface for the Tern framework. |
|
internal
|
|
|
codegen
Package codegen generates the code that connects a Tern app's routes to the runtime: tern.gen.go for the Go server, the client route manifest for Vite, and TypeScript types for every route.
|
Package codegen generates the code that connects a Tern app's routes to the runtime: tern.gen.go for the Go server, the client route manifest for Vite, and TypeScript types for every route. |
|
routes
Package routes discovers Tern routes on the filesystem and matches URLs against them.
|
Package routes discovers Tern routes on the filesystem and matches URLs against them. |
|
ssr
Package ssr renders Svelte pages on the server by running the app's server bundle in embedded QuickJS VMs.
|
Package ssr renders Svelte pages on the server by running the app's server bundle in embedded QuickJS VMs. |
|
ui
Package ui formats the Tern CLI's terminal output: colors, symbols, spinners and tables.
|
Package ui formats the Tern CLI's terminal output: colors, symbols, spinners and tables. |
|
version
Package version reports the version of the Tern build.
|
Package version reports the version of the Tern build. |
|
Package kit is the server runtime for Tern applications.
|
Package kit is the server runtime for Tern applications. |
|
plugins
|
|
|
compress
Package compress gzips a Tern app's dynamic responses (pages, data, endpoint JSON) for clients that accept it:
|
Package compress gzips a Tern app's dynamic responses (pages, data, endpoint JSON) for clients that accept it: |
|
health
Package health adds liveness and readiness endpoints to a Tern app:
|
Package health adds liveness and readiness endpoints to a Tern app: |
|
requestlog
Package requestlog logs every request a Tern app serves, with slog:
|
Package requestlog logs every request a Tern app serves, with slog: |
|
secure
Package secure sets security headers on every response of a Tern app:
|
Package secure sets security headers on every response of a Tern app: |
Click to show internal directories.
Click to hide internal directories.