Personal ledger of what family members owe for purchases, paid at once or in installments
  • TypeScript 55.3%
  • Go 41.5%
  • CSS 2.1%
  • JavaScript 0.4%
  • Makefile 0.3%
  • Other 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-27 11:30:21 +03:00
.github Align PR and release Node versions 2026-11-27 11:30:21 +03:00
cmd/ledgercalc Port the ledger view to Go and compare it in the differential test 2026-11-22 21:16:38 +03:00
docs Match ledger time zone validation across Go and TypeScript (#14) 2026-11-26 19:16:36 +03:00
e2e Migrate auth, store, backup and mock IdP to go-commons v1.4.0 (#11) 2026-11-25 22:35:36 +03:00
internal Match ledger time zone validation across Go and TypeScript (#14) 2026-11-26 19:16:36 +03:00
scripts Add repository skeleton and implementation contracts 2026-11-22 12:40:42 +03:00
testdata Match ledger time zone validation across Go and TypeScript (#14) 2026-11-26 19:16:36 +03:00
web Enforce web install-script policy (#16) 2026-11-26 19:49:24 +03:00
.dockerignore Add repository skeleton and implementation contracts 2026-11-22 12:40:42 +03:00
.gitignore Add Playwright end-to-end suite with mock OIDC provider 2026-11-22 13:24:36 +03:00
.golangci.yaml Add repository skeleton and implementation contracts 2026-11-22 12:40:42 +03:00
.goreleaser.yaml Add repository skeleton and implementation contracts 2026-11-22 12:40:42 +03:00
AGENTS.md Migrate auth, store, backup and mock IdP to go-commons v1.4.0 (#11) 2026-11-25 22:35:36 +03:00
Dockerfile Serve Prometheus metrics on an internal listener (#5) 2026-11-23 15:17:29 +03:00
go.mod Migrate auth, store, backup and mock IdP to go-commons v1.4.0 (#11) 2026-11-25 22:35:36 +03:00
go.sum Migrate auth, store, backup and mock IdP to go-commons v1.4.0 (#11) 2026-11-25 22:35:36 +03:00
LICENSE Add repository skeleton and implementation contracts 2026-11-22 12:40:42 +03:00
main.go Bound OIDC HTTP requests (#13) 2026-11-26 19:06:29 +03:00
main_test.go Hide internal errors from MCP tool failures; test auth and API boundaries (#3) 2026-11-23 00:08:39 +03:00
Makefile Enforce web install-script policy (#16) 2026-11-26 19:49:24 +03:00
README.md Serve Prometheus metrics on an internal listener (#5) 2026-11-23 15:17:29 +03:00
renovate.json Add repository skeleton and implementation contracts 2026-11-22 12:40:42 +03:00
tools_deps_test.go Add repository skeleton and implementation contracts 2026-11-22 12:40:42 +03:00
VERSION chore: prepare v0.2.3 release (#8) 2026-11-24 13:18:43 +03:00

Family Tab

A small self-hosted app for the person who buys things online for the whole family. It records what each family member owes for purchases made for them, in one go or in monthly installments, and works out balances automatically. It is an offline-capable PWA that syncs to a single Go server and signs in with one OIDC provider.

See docs/DESIGN.md for the design and docs/TECH_STACK.md for the stack.

Configuration

Variable Default Purpose
PUBLIC_URL required External origin, used for the OIDC callback URL <PUBLIC_URL>/auth/callback
OIDC_ISSUER required Provider issuer URL
OIDC_CLIENT_ID required Client ID
OIDC_CLIENT_SECRET empty Client secret, if the client is confidential
BUYER_SUBJECT required sub of the only identity allowed in
MCP_CLIENT_ID empty OAuth client whose access tokens may call /mcp; MCP is disabled when empty
MCP_AUDIENCE PUBLIC_URL + /mcp Resource identifier MCP access tokens must name in aud
LISTEN_ADDR :8080 HTTP listen address
METRICS_ADDR :9090 Internal Prometheus metrics listener at /metrics; empty disables it, never exposed through the public ingress
DB_PATH ./family-tab.db SQLite database
BACKUP_DIR empty Directory for periodic VACUUM INTO copies; disabled when empty
BACKUP_INTERVAL 6h Time between database copies
BACKUP_KEEP 28 Number of database copies to keep
LOG_LEVEL INFO Log level
COOKIE_INSECURE false Drop the Secure cookie attribute, for local HTTP development only

The OIDC client must allow PKCE S256 and the query response mode. The container image sets DB_PATH=/data/family-tab.db and BACKUP_DIR=/data/backups.

Metrics use the standard http_requests_total / http_request_duration_seconds (by method, route, status) plus familytab_sync_operations_total{operation, outcome} for apply/restore/snapshot, and the familytab_ledger_head_revision gauge. Scrape container port 9090, path /metrics.

Development

make web        # build the frontend
make dev        # build the frontend and run the server
make test       # Go, web and differential tests
make test/diff  # compare the Go and TypeScript ledger rules
make test/e2e   # Playwright against the built server and mock OIDC provider