HUB
Sign inSign up

zekihan/family-tab

By zekihan

•Updated about 7 hours ago

Personal ledger of what family members owe for purchases, paid at once or in installments

Image
0

437

zekihan/family-tab repository overview

⁠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

VariableDefaultPurpose
PUBLIC_URLrequiredExternal origin, used for the OIDC callback URL <PUBLIC_URL>/auth/callback
OIDC_ISSUERrequiredProvider issuer URL
OIDC_CLIENT_IDrequiredClient ID
OIDC_CLIENT_SECRETemptyClient secret, if the client is confidential
BUYER_SUBJECTrequiredsub of the only identity allowed in
MCP_CLIENT_IDemptyOAuth client whose access tokens may call /mcp; MCP is disabled when empty
MCP_AUDIENCEPUBLIC_URL + /mcpResource identifier MCP access tokens must name in aud
LISTEN_ADDR:8080HTTP listen address
DB_PATH./family-tab.dbSQLite database
BACKUP_DIRemptyDirectory for periodic VACUUM INTO copies; disabled when empty
BACKUP_INTERVAL6hTime between database copies
BACKUP_KEEP28Number of database copies to keep
LOG_LEVELINFOLog level
COOKIE_INSECUREfalseDrop 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.

⁠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

Tag summary

Content type

Image

Digest

sha256:16f5dd9fd…

Size

6.8 MB

Last updated

about 16 hours ago

docker pull zekihan/family-tab