Case Study: LOOM Brand Designs

Profit Compass: Invoicing, Bookkeeping and Dunning

High-Level Impact

Quote-to-cash in one tool, with PayPal and Stripe payments, automatic reminders and a 37-tool MCP server so an agent can prepare invoices and reminders while a person confirms anything that is sent.

Project Metadata

Key Facts

Currencies
EUR, GBP, SEK, LKR, USD
MCP tools
37
Payments
Stripe, PayPal
Automated test files
23

Core Components

Next.js 16
Firestore
Stripe + PayPal webhooks
jsPDF
Nodemailer
Genkit + Gemini
OAuth 2.1 MCP server (37 tools)
Profit Compass overview · recorded on a fictional demo company, no client data

The Challenge

Clients in Germany, the UK, the US and Sri Lanka pay in different currencies and by different methods. Chasing late payments and reconciling payments were manual, and amounts in different currencies were easy to mix up.

Business Objectives

Quotes, invoices, recurring invoices, statements and late fees
Hosted invoice and statement pages with online payment
Daily reminder, overdue and quote follow-up jobs
Receivables aging and revenue summaries per currency
AI price suggestions
Agent access with human confirmation for every write or send

Solution Design

"Handle quotes, invoices, recurring billing, costs and receivables in five currencies (EUR, GBP, SEK, LKR, USD) without a separate accounting add-on for each client market."

1. Quotes convert to invoices; recurring invoices are generated on schedule. 2. Customers pay on hosted pages; Stripe and PayPal webhooks record payments. 3. A daily job sends reminders, flags overdue invoices and follows up quotes; a Monday digest summarises receivables. 4. Every amount stays in its document's currency; reports never add currencies together.

Security & Scale

Invitation-only access, an audit log of every change and email, and MCP tools that state exactly what will change before a person approves it.

Results

About 58,000 lines of TypeScript, 23 test files and 438 commits; it runs LOOM's own billing.

Project FAQs