FabrikBooks

Bookkeeping for founders, bridged to QuickBooks, Xero and Zoho, with a review workbench for the ops teamCase Study

Timeline
Oct to Nov 2026
Platforms
Web
Category
Web Applications
Status
Case Study

Overview

A bookkeeping product for startup and small-business founders. It keeps the books, syncs them to whichever ledger the business already uses, extracts data from uploaded documents with an LLM, and gives an internal team a workbench to review and push entries.

A bookkeeping product for startup and small-business founders. It keeps the books, syncs them to whichever ledger the business already uses, extracts data from uploaded documents with an LLM, and gives an internal team a workbench to review and push entries.

My role: Sole contributor to both repositories: the Django API (67 commits) and the React web app (80 commits).

Solo build.

  1. 01

    Problem

    A sandbox company file could quietly fill a real customer’s books.

    Approach

    QBO_ENVIRONMENT must say production or sandbox outright. An unset value routes every call to QuickBooks’ sandbox, so production refuses to start instead.

  2. 02

    Problem

    A leaked database snapshot could expose live ledger access.

    Approach

    Provider OAuth tokens are encrypted with AES-256-GCM, and the key is kept out of the backup.

  3. 03

    Problem

    A long ledger sync starved document extraction.

    Approach

    Two Celery queues: default for extraction and mail, ledger for syncs only. Webhook-triggered syncs wait 120 seconds, so a burst becomes one sync.

  4. 04

    Problem

    Three ledgers support different features.

    Approach

    One bridge interface, with each provider declaring its capabilities rather than failing at call time (ADR-0004).

  5. 05

    Problem

    Every user shared one login rate limit behind two proxies.

    Approach

    NUM_PROXIES is set to 2 behind the Vercel rewrite.

  6. 06

    Problem

    Shared links previewed as the home page, because social crawlers do not run JavaScript.

    Approach

    The head is prerendered into one index.html per route. The body is not prerendered on purpose, because the app mounts with createRoot.

  7. 07

    Problem

    Demo data could leak into a real account.

    Approach

    A test asserts that a real account never receives sample books. Connecting a real ledger clears any sample data.

Engineering

My role
Sole contributor to both repositories: the Django API (67 commits) and the React web app (80 commits).
Ownership
Solo build.
Timeline
Oct to Nov 2026
Status
Not live yet. The Intuit app review has open blockers: the privacy policy and terms, the production host and the grant scheduler. The QuickBooks branch is the active work.

API

Django: the books, the three ledger bridges, document extraction and the operations endpoints.

Repository: fabrikbooks-backend

Web app

A marketing site and a product app in one React single-page app. It renders what the API returns.

Repository: fabrikbooks-web

Stack: API

  • Python 3.12 or later (CI runs 3.13), Django 6, Django REST Framework
  • drf-spectacular for the OpenAPI schema
  • PostgreSQL, Redis, and Celery with two queues
  • The Anthropic SDK for document extraction
  • AES-256-GCM encryption of provider tokens, with the cryptography library
  • mypy on the typed core, ruff, pytest with an 80% coverage floor, pip-audit

Stack: Web app

  • React 19.2, Vite 7, TypeScript 5.9, react-router 7
  • Vitest with MSW, and Playwright against the real API
  • ESLint with jsx-a11y rules as errors on every page
  • A bundle budget, a generated sitemap and a hash-pinned Content Security Policy

Migration: FabrikBooks, with a default email domain the owner controls

From The old product name FreedomBooks, and the rebrand branch

The old default domain belonged to someone else. It was replaced with a required setting that the domain must be one the owner controls.

Migration: A custom user with email login, set before the first migration

From A Django default user model

Recorded as ADR-0001. Changing it after the first migration is far harder than setting it up front.

One bridge interface for all three ledgers, with each provider declaring what it supports.

A feature a ledger lacks is visible in the declaration rather than failing at call time (ADR-0004).

Two Celery queues: default for extraction and mail, ledger for syncs only.

A long ledger sync cannot starve document extraction. Webhook-triggered syncs wait 120 seconds, so a burst becomes one sync.

Money is held in cents.

A test checks that floating-point drift is caught as a failure, not discovered later.

Production refuses to start without the settings it needs.

Nine required settings are checked at start-up. Without them the app cannot run, so nothing runs half-configured.

Migrations run as a release step, never on every boot.

Each container does not race to migrate the same database.

Release, run and handover

  • Docker Compose brings up the API, a worker, PostgreSQL and Redis. Production runs gunicorn with two Celery workers.
  • The web app is served from Vercel. It proxies /api to the API, so the browser sees one origin, which sessions and CSRF depend on.
  • Behind two proxies, NUM_PROXIES is set to 2. At 1, every user would share one login rate limit.
  • Provider tokens are encrypted at rest. The key must sit in the secret store, not in the backup.
  • Uploads are private on S3-compatible storage and served through five-minute signed URLs.
  • Intuit’s app review checklist is tracked in the repository, with the blockers named.
  • Daily PostgreSQL snapshots, with point-in-time recovery and bucket versioning.

Measured in the repositories

  • Three ledger integrations behind one interface: QuickBooks Online, Xero and Zoho Books.
  • About 55 API endpoints across the founder, accountant and operations surfaces.
  • 25 API test modules, 12 of them for QuickBooks.
  • An 80% coverage floor on services, selectors and the core, enforced in CI.
  • Four architecture decision records.

Skills this shows

  • Ledger integrations: OAuth, webhooks and grant renewal
  • Security hardening
  • A typed core inside a Django shell
  • CI with coverage floors and a dependency audit
  • Intuit app review
  • Keeping the copy honest about what the system does

Not settled in the repositories

  • The API production host.
  • The privacy policy and terms of service text. This is an Intuit review blocker.
  • A daily scheduler for the grant renewal command. This is also a review blocker.
  • Pricing. The premium ledger list implies plan tiers, but no prices are in the repository.
  • Live status, customer count and transaction volume.

Results

Not live yet. The Intuit app review has open blockers: the privacy policy and terms, the production host and the grant scheduler. The QuickBooks branch is the active work.

Next projects

  1. EC Infosolutions websiteRebuilding a 318-page Wix company site as React, with prerendered pages and a build-blocking SEO gate
  2. ArkmantraAyurvedic Cosmetics E-Commerce Storefront & Admin
  3. Soul33 – The BeaconSpirituality, Meditation & Mindfulness Platform