When we started building AuraInvoice at Aura Core Digital, we wanted a fast, global invoicing and auto-stock inventory SaaS that runs at the edge with near-zero cold starts and zero credit card storage.

Here is the exact stack and architecture we shipped:

1. Edge Runtime: Next.js 15 + OpenNext on Cloudflare Workers

Using @opennextjs/cloudflare, our App Router pages, API routes, and server-side A4 PDF generation run directly on Cloudflare Workers with sub-20ms worker startup times worldwide.

2. Multi-Tenant Persistence: Cloudflare D1 SQL

Every user's invoices, quotes, clients, inventory SKUs, stock movement audit trail, purchase orders, expenses, and time entries are isolated by authenticated account ID inside Cloudflare D1.

3. Practical Security & Zero Card Storage

  • Passwords hashed with 100,000-iteration PBKDF2-SHA256 using Web Crypto API
  • HttpOnly session cookies + optional 6-digit email 2FA
  • Subscription billing handled exclusively through Safepay PCI-DSS 3D Secure hosted checkout so card numbers never touch our servers

4. Real Server-Side PDFs That Work in iOS In-App Browsers

One real-world gotcha we hit during mobile testing: iOS Gmail and WhatsApp in-app browsers block client-side blob: downloads and window.print(). Serving vector A4 PDFs directly from an HTTPS route (/api/public/invoice/[id]/pdf) with Content-Type: application/pdf solved mobile downloads across iPhone, Android, and desktop cleanly.

We also published free no-signup tools alongside the app, including a UAE 5% VAT Calculator and a Profit Margin & Markup Calculator.

AuraInvoice launches publicly in 48 hours at https://aurainvoice.com with a Free Forever Starter tier. Happy to answer any questions about running Next.js 15 + D1 on Cloudflare!