Open Source Projects / candlebase

candlebase

No backend or server code needed. One rules file decides every read and write.

The candlebase website

candlebase is a self-hosted backend your frontend talks to directly. One static Go binary, one SQLite file, live updates over plain HTTP, and a rules file instead of server code. Its source is written to be read, and taught chapter by chapter as a course in Go. This site runs on it.

  • 12 MBone static binary
  • 7,900lines of Go, taught chapter by chapter
  • 1SQLite file holds all data

How it works

  1. 1Write a rules file

    It decides every read and write; there is no server code.

  2. 2Talk to it from the browser

    Save, query and listen live with a small client.

  3. 3Run one binary

    Copy it to a machine you own and start it.

Built with
Go, one ~12 MB binary; JS/TS client with no dependencies
Licence
MIT
Status
open source
Limits
One machine, no replication, not Firestore-compatible.

Related books

Other projects