A free, open-source invoicing app template for freelancers and small businesses, built with Next.js, TypeScript and PostgreSQL. It covers quotes that clients accept online, UK VAT invoices in any currency, a signed page per invoice with a PDF and card payment through Stripe, part payments, credit notes, recurring invoices, aged receivables and CSV exports for your accountant.
by Light CloudInvoicing and finance


The app is built on the Next.js SaaS starter: workspaces, roles, Better Auth sign-in and an admin panel, with invoicing in src/lib/invoicing. Money is stored as whole pence or cents, and what a document is today (overdue, partially paid, expired) is worked out from its dates, payments and credit notes each time it is shown, so nothing runs overnight. Recurring schedules create their drafts when you open the dashboard, invoices or recurring pages; they are not sent automatically. It is not a VAT return tool: export the CSV for your accountant or bookkeeping software. npm start applies the SQL migrations under a PostgreSQL advisory lock and seeds the Bristol Web Design Studio demo once, and the first person to sign up owns it; start with Settings, Business for your bank details, numbering and VAT rates.
Yes. This Next.js and PostgreSQL template is MIT licensed and runs on any Node.js host with PostgreSQL, or on Light Cloud in one click. Without any keys every invoicing feature works: clients pay by bank transfer and you share each invoice's link yourself.
This template renders them on the server with @react-pdf/renderer in a route handler, src/app/i/[token]/pdf/route.ts, from the same view model as the web page, so the PDF and the page always agree. The same PDF is attached when an invoice is emailed.
Set STRIPE_SECRET_KEY and every unpaid invoice's client page shows Pay by card, which opens Stripe Checkout for the amount still owed. The payment is checked with Stripe and recorded once when the client comes back; add STRIPE_PAYMENTS_WEBHOOK_SECRET to record it even if they close the tab.
Yes. Each line has a VAT rate, VAT is shown per rate with its net amount, both VAT numbers are printed, numbers run per year without gaps, and mistakes are fixed with a void or a credit note rather than by editing a sent invoice. It does not file VAT returns: export the CSV for your accountant.
Not yet. A monthly or quarterly schedule creates a draft invoice on the right date, including month ends such as 28 February, for you to check and send. You can pause, resume or delete each schedule.