The base image is enough for most handlers. For a compiled package (Pillow in Python, resvg in Node), you build the layer before deploying. Two real examples, og-image and og-image-node, with the price, the limits, an OSV flag in action and the measured cold-start overhead.
You do not need to know this to use Zerolith, but it is a fair question when you hand over code and data. Seven things, and what each one means for you.
A build, a dist/ folder, and the question that follows: where does it go, and how do its pages talk to the backend? On Zerolith the site and its functions share one origin. Deploys, SPA fallback, real 404s, versions, and the price to the cent.
Every code deploy comes back with a score out of 100 and a letter. Rather than explain the scale in the abstract, here is the same webhook in three versions — 47/D, 81/B, 100/A — and what each subtracted point actually points at in the code.
A cold function answers in two seconds; waking a database takes fourteen. Instead of making the visitor wait, split the work across two functions and fire the wake-up on first paint. A playable quiz is the demo, and it publishes its own measurements.
An assistant writes the handler, then you do the copying, pasting and rerunning. MCP removes that round trip: one command to connect Claude Code, an OAuth flow with no API key, and an agent that closes the deploy–call–read-logs–fix loop itself. Including what it never sees, and what it costs.
An artifact shows an idea in ten seconds, then stays inside the conversation. A function serves the same HTML page, with a URL of your own, a private SQLite database, and four ways to choose who may open it: API key, presigned URL, public, custom domain.
A function is stateless, and that's where half of all projects stop. Here's the other route in full: a database that sleeps when nobody queries it, a schema laid down properly, and stock kept as a ledger instead of a counter two writes can clobber.
A job that runs once a day doesn't need a server that runs all day. Deploy a function, attach a cron expression, and look at what it actually costs: the seconds it executes, and nothing else.
The first article on this blog, and the only one that isn't a tutorial. What we're trying to make possible for people who are neither infra devs nor ops, why the bill can't run away, what AI agents change, and what we'd like to add next.