Now Invoice — Multi-Tenant B2B Invoicing SaaS

A comprehensive multi-tenant B2B invoicing SaaS featuring an interactive visual template builder, multi-currency billing, client management, automated Stripe subscriptions, Supabase PostgreSQL RLS, and Cloudflare R2 asset storage.

Project Overview

Now Invoice is a modern, multi-tenant B2B invoicing and client billing SaaS platform engineered with Next.js 15, React 19, TypeScript, and Tailwind CSS.

Designed for SMBs, digital agencies, and freelancers, it features an interactive visual template builder, multi-currency calculation engine, client management directory, and high-fidelity PDF export. Equipped with automated Stripe subscription billing, secure Supabase Row-Level Security (RLS) database isolation, super-admin governance, and Cloudflare R2 asset storage, it streamlines financial operations with instant responsive UI.

Verified Production Video Walkthrough
Live Demonstration
Now Invoice — Multi-Tenant B2B Invoicing SaaS Video Demo Thumbnail

Watch Now Invoice — Multi-Tenant B2B Invoicing SaaS in Action

Interactive walkthrough covering real-time workflows, UI responsiveness, and offline states.

My Engineering Role

Full-Stack Architect and Lead Developer responsible for Next.js 15 App Router architecture, Supabase PostgreSQL schema design with RLS, Stripe subscription webhook integrations, and client-side PDF rendering.

The Challenge

Building a flexible invoice template engine that renders print-ready vector PDFs in milliseconds while enforcing strict data isolation between corporate tenants and handling recurring Stripe subscription lifecycles.

The Solution

Engineered a server-side rendered Next.js 15 application utilizing Supabase with PostgreSQL RLS for tenant partitioning, Stripe Webhooks for subscription entitlement synchronization, and Cloudflare R2 for asset storage.

High-Level Architecture

  • Next.js 15 App Router application with React 19 Server Components for instant TTFB and static SEO landing pages.
  • Supabase PostgreSQL database secured with Row-Level Security (RLS) enforcing strict tenant and organization boundaries.
  • Stripe Billing integration managing recurring tiered subscriptions, customer portals, and automated payment webhooks.
  • Cloudflare R2 object storage providing low-cost, zero-egress asset hosting for merchant brand logos and generated PDFs.
  • Interactive visual invoice canvas with live client-side math recalculation for discounts, taxes, and shipping.
System Design & Engineering Proof

Multi-Tenant Cloud Architecture & Row-Level Security Isolation

Production Architecture

Serverless full-stack SaaS architecture featuring Next.js 15 Server Components, PostgreSQL tenant partitioning, Stripe Webhook synchronization, and Cloudflare R2 zero-egress asset storage.

End-to-End Architectural Pipeline
1
Presentation & Edge

Next.js 15 Server Components & Dynamic Canvas

Full-Stack Edge

Hybrid server-rendered dashboard with instant TTFB and reactive client-side math canvas for real-time multi-currency tax and discount recalculation.

Technology:Next.js 15, React 19, Tailwind CSS, TypeScript
2
Database & Security

Supabase PostgreSQL Row-Level Security (RLS)

Database Partitioning

Guarantees database-level tenant isolation through SQL security policies. Eliminates accidental cross-tenant data leaks at the query layer.

Technology:PostgreSQL, Supabase Auth, Multi-Tenant RLS
3
Billing Lifecycle

Stripe Subscription & Webhook Entitlement Engine

Fintech Engine

Automated subscription state machine handling tiered plans (Free, Pro, Enterprise), invoice issuance, card retries, and customer portal sessions.

Technology:Stripe Billing, Webhooks, Customer Portal
4
Asset & Storage Pipeline

Cloudflare R2 Object Storage & Vector PDF Engine

Storage & Export

Zero-egress object storage pipeline serving merchant brand logos via CDN and compiling print-ready vector PDF invoices in sub-seconds.

Technology:Cloudflare R2, jsPDF, Vector Rendering
Verified Production Benchmarks
< 180msTime to First ByteEdge-cached static pages with streamed React 19 dynamic server data
100% RLSTenant IsolationStrict PostgreSQL security policies preventing cross-organization leakage
< 350msPDF GenerationInstant client-side vector compilation formatted for international print sizes
$0.00 / GBEgress CostsCloudflare R2 zero-egress fee architecture for infinite invoice logo hosting
Key Engineering Innovations
  • Cryptographic PostgreSQL RLS policies enforcing multi-tenant boundaries at the database engine level
  • Deterministic vector PDF compilation matching pixel-perfect on-screen visual canvas rendering
  • Idempotent Stripe webhook listeners preventing double-crediting during payment retries
Founder & Engineering Consultation

Planning a high-throughput mobile application with similar architecture?

Direct engineering leadership from Syed Waleed Nawaz: clean domain architecture, automated CI/CD, and 60 FPS delivery.

Key Features & Workflows

  • Visual Invoice Builder: Customize brand colors, typography, payment terms, and custom line items with real-time preview.
  • Multi-Currency & Tax Engine: Dynamic currency formatting with support for VAT, GST, compound sales taxes, and line-item discounts.
  • Client Management CRM: Centralized client ledger tracking past invoices, outstanding balances, and payment histories.
  • Automated Stripe Subscriptions: Tiered pricing plans (Free, Pro, Enterprise) with automated payment retry and invoice issuance.
  • Cloudflare R2 Asset Pipeline: Secure asset storage for business logos and digital signatures with CDN-speed delivery.
  • High-Fidelity PDF Export: One-click vector PDF generation formatted precisely for digital sharing or commercial printing.

Technical Challenges Overcome

  • Ensuring sub-millisecond currency calculation and rounding precision to prevent floating-point discrepancies across multi-item invoices.
  • Securing multi-tenant PostgreSQL RLS policies against unauthorized cross-tenant invoice view requests via shared links.
  • Synchronizing asynchronous Stripe webhook events with Supabase user tier records without race conditions.

Production Results & Impact

  • Live web application actively deployed and accessible at invoice-maker-web-one.vercel.app.
  • Full video demonstration publicly available on YouTube showcasing subscription and invoice creation flows.
  • Delivered a commercially viable SaaS foundation ready for international freelancer and SMB adoption.

Need a similar architecture shipped?

Let's translate your product workflows, real-time requirements, and cloud infrastructure into a dependable production app.