← All projects

Web & verification

BillProof

A local verifier that compares simulated subscription events and protected operations against explicit access rules.

AUDIENCEDevelopers and teams checking whether subscription rules match actual application access.
MEDIUM / TOOLSTypeScript / Node.js
CURRENT STATELocal MVP
BillProof demo target comparison
Verified project screenshot
01 / THE IDEA

Project overview

BillProof is a local verification tool for subscription access rules. It runs simulated billing events against sample protected operations, then compares what the application actually allows with the expected policy. Its demo targets show the same scenario failing in a naive implementation and passing in a corrected one.

02 / PEOPLE

Who it's for

Developers and teams checking whether subscription rules match actual application access.

03 / CONTEXT

The problem

A subscription event can say one thing while the application still grants the wrong access.

04 / EXPERIENCE

Inside the project

  • Replay simulated billing events against a sample application.
  • Probe protected operations and compare observed access with the expected policy.
  • Inspect evidence from naive and corrected example targets.
05 / APPROACH

The work

BillProof runs deterministic local billing scenarios, probes protected operations, and saves evidence for comparison and replay.

06 / WALKTHROUGH

How it works

Choose a lifecycle scenario, set the plan and access rules, and run it against a sample target. BillProof sends simulated provider events, calls the protected operation, and compares observed access with the expected policy. A stale cancellation event demonstrates how a naive target can restore Pro incorrectly; the corrected target checks the latest provider state. Another scenario delivers the same payment twice to inspect duplicate handling.

07 / IMPLEMENTATION

Under the hood

Twelve deterministic scenarios use a virtual UTC clock, including retries, delayed events, stale events, and duplicate IDs. The local Node application separates the UI, provider, and target services. Reports preserve the inputs needed for replay after a rule change. JSON persistence uses locking and atomic replacement, and report retention is bounded to the latest 100 runs.

08 / SCOPE

What to know

Execution errors and access-policy findings are distinct outcomes. This is a local verifier with simulated billing, not a production Stripe or Supabase integration. Seats, metered billing, and tax are outside the demonstrated scope. The useful evidence is the actual protected-operation response rather than a webhook log alone.

Read the repository and source ↗

Source reviewed 16 October 2026

09 / NOW

Current state

This is a local MVP with simulated billing and sample targets. It does not validate a live Stripe integration.