Documentation
Read it in order, or jump to what you need.
The docs are written to be read: each page says what something is, why it is that way, and what it will cost you. They live beside the code and are checked against it, snippet by snippet.
Start here
Getting started
Build one feature on a real app, end to end: a board where signed-in users share links, stored in a database, typed from Go to React, guarded, limited by a…
10 min readWhy borgo works this way
Seven questions a skeptical engineer asks before adopting a framework, and seven answers with the bill attached. The README states the positions in five…
14 min readArchitecture
How borgo actually works, end to end: the two processes and why there are two, what happens between borgo start and the first request, the path a request takes…
27 min read
Pages and data
Pages and routing
The page model everything else hangs off: how files become routes, how a page gets its data, how layouts nest, what <head> you control, how forms mutate, and…
19 min readThe typed bridge
Your Go handlers, read by static analysis, become the TypeScript types your React pages are checked against. No OpenAPI spec to maintain, no generation step you…
27 min readClient navigation and hydration
What happens after the first paint: client-side transitions and what they tell a keyboard and a screen reader, prefetching, scroll restoration, per-route code…
7 min readRealtime
Live updates in both directions: server-sent events for one-way feeds, WebSocket topics for anything browsers also write to, and typed event payloads generated…
20 min read
Access and state
Auth and sessions
Mechanics, not policy: borgo gives you signed-cookie sessions, password hashing behind a swappable interface, ready-made login/logout/register handlers over a…
19 min readMiddleware and authorization
borgo.Authed answers one question: is there a session. Everything past that — a role, a workspace, a page only some users may open, a login endpoint that must…
11 min readThe database
borgo imposes no database and grows no ORM: the API is a Go program, and every database/sql driver works in it unchanged. What it does not do is leave you…
11 min readThe app's environment, typed
What this covers: declaring your application's environment variables once, having the boot refuse when they are missing or malformed, reading them typed, and…
6 min readSecurity
What borgo does for you before you write a line, what it deliberately leaves to you, and how to change either. If you are the person who has to approve this…
23 min read
Development
Dev experience
What borgo dev does while you work: what hot-applies and what reloads, how styling is compiled, what happens when a build breaks, and the diagnostics for when…
12 min readTesting your app
A handler is a function of a request, a loader is a function of its context, and both are tested by calling them. borgo ships two small sets of helpers so that…
4 min readPWA
Making a borgo app installable and able to serve its own assets offline. One command writes the files, two one-line edits wire them up, and the rest of this…
6 min read
Production
Deploying borgo
Everything between borgo build and traffic: container and bare-metal layouts, reverse proxy configs, static export, caching, health and readiness checks, logs…
41 min readMore than one instance
What this covers: what a borgo process keeps to itself, what that means when two or more of them run behind a load balancer, and what an app does about each.…
11 min readRecipes
What this covers: four things borgo deliberately does not ship, each built from what it does ship — a background job, a password reset by mail, a route another…
11 min readPerformance
Where borgo's speed comes from, mechanically: what work has been moved out of the request path, what the network is asked to carry, and where the streams push…
21 min read
Reference
FAQ and troubleshooting
Questions people actually ask, and symptoms with their one-line fixes. When something misbehaves, start with bunx borgo doctor — most of the answers below are…
9 min readAPI reference and stability audit
Every public surface borgo has, catalogued from the source, with a stability marker on each entry. This page exists for two reasons: so you can tell at a glance…
60 min readUpgrading
What this covers: every release that can change what an app or a deployment does, newest first, with what to check for each. A release that only adds things is…
10 min readAPI stability
What borgo's version number promises, what counts as breaking it, and what happens when something has to change anyway.
11 min read