How Brod runs an app
An app is a bundle of files. Static files are served as they are. If the bundle has a _worker.js, its fetch handler answers requests in workerd, the open-source runtime behind Cloudflare Workers, in its own V8 isolate.
The handler gets the app's SQLite database as env.DB, a key-value store as env.KV, file storage as env.FILES and secrets as env.NAME. Each request carries the signed-in person's identity, set by Brod's gateway.