name
satbook - self-hosted Bitcoin passbook and India VDA tax engine
synopsis
- context
- Personal project
- period
- Aug 2026
- stack
- TypeScript, SvelteKit, Bun, SQLite, Drizzle
description
A single-user Bitcoin portfolio tracker that doubles as an India VDA tax engine. Every income, buy, sell, spend and self-transfer goes into one ledger, and holdings, break-even, unrealized P/L and Schedule VDA figures are recomputed from it on every read, so correcting or backfilling history just works.
highlights
- Computes tax the conservative way under s.115BBH: flat 30% plus cess, cost of acquisition only, losses ring-fenced, network fees neither taxed nor deducted.
- Derives the third value from any two of amount, rate and fiat value, and autofills the timestamp, amounts and fee from a pasted on-chain txid.
- Fetches the historical rate for backdated entries itself, converting through USD or EUR when that is the only quote available.
links
also a man page: curl -L okaybro.dev/man/satbook