A servelet is an app's own backend: a small CRUD service in Go with its own SQLite database. Genesis runs it on the phone as a WebAssembly module, so the app's records stay on the device and need no server, address or token. The applet calls it like any declared service.
Example request to an agent:
Read AGENTS.md. Build an app for https://example.com that keeps my reading list with tags, sorted by date added, and lets me search it.
| Need | Read |
|---|---|
| Give a coding agent its instructions | AGENTS.md |
| Build a servelet from a feature description | let-build-servelet |
| Routes, bodies, errors, ids, revisions and paging | Principles |
| Tables, migrations, indexes and transactions | Data |
| Project layout, the Go library and frameworks | Go |
servelet.json, the applet's service config, the ABI and limits |
Contract |
| Check a servelet and its journey | Verification |
The files let-servelet create starts from |
Templates |
You need Node 24.15.0 and Go 1.24 or later on PATH. The let-servelet command comes from the @nirvanacp/servelet-tools package on npm, which also carries the Let Go library, so you never go get it. You do not need the Genesis or Let repositories.
npx @nirvanacp/servelet-tools create servelets/notes --name "Notes store"
npx let-servelet check servelets/notes
npx let-servelet run servelets/notes --port 8790create takes the servelet id from the directory name unless you pass --id. Inside an applet repository the applet tools already installed let-servelet, so npx let-servelet runs that copy; elsewhere, use npx @nirvanacp/servelet-tools in place of npx let-servelet. build and check need Go.
An applet names its servelet by id in its service config (see contract). The applet tools look for the servelet directory in this order:
--servelets <directory>onlet-applet check,build,publishandrelease;- the
LET_SERVELETS_DIRenvironment variable; servelets/<id>in the nearest ancestor of the applet directory that has aservelets/directory.
So a servelet can sit in the applet's own repository, in a servelets/ directory beside it, or in a separate repository you check out anywhere and name with --servelets or LET_SERVELETS_DIR. npm run build does not pass --servelets, so for a separate checkout set LET_SERVELETS_DIR or run npx let-applet build . --servelets <directory>. When the servelets live in another repository, the applet repository's check and release workflows need that repository, the commit and the Go version, as the applet guide publishing describes.