Skip to content

Examples

Example applications built on backd, and what each one shows.

The repository includes example configurations under examples/config, and example applications built with the JavaScript client:

ExampleRealmShows
BlogblogSign-up, sessions, public posts and private drafts, ownership, posts signed with the writer’s own email, filters, conflict-free edits, and a sample function for counts a reader can’t compute themselves
Expenses without functionsexpensesShared data between users, invitations by email, and the limits of access rules: what they can enforce, and the holes only a server-side function can close
Functions cookbookworkshopA small shop with six tested functions: a sync call as the caller, a privileged idempotent refund, a background report job, a nightly cleanup and a daily digest on cron schedules, and a payment webhook
Workshop tourworkshopA guided walk through the cookbook’s functions with an inspector that shows every call the page makes: request, answer, the function’s own log and a curl command. Demo accounts for a customer, staff and an operator
MailboxworkshopThe emails the workshop realm would send, captured by its email-capture function instead of delivered, with working links: a small app to read them. Local development only
Expenses with functionsexpenses-with-functionsThe same app, same layout, with those holes closed by five functions — compared side by side with what changed and why
Shelf (the Tutorial)shelfA team asset library built chapter by chapter: realms, auth, rules, invitations, functions of every mode, jobs, email, a signed webhook, API keys and audit — tour.js is its regression test

make example serves the configurations and the applications on https://localhost:8443, with an index of the applications at /example/ (see Getting started).

Edit this page · Last updated 08 Oct 2026