Back to Projects
Quoteflare

Quotes and invoices for a one-person business.

Self-hosted on Cloudflare's free tier.

  • Cloudflare Workers
  • D1
  • TanStack Start
The Quoteflare admin dashboard

Quoteflare

Quotes and invoices for a one-person business, running on Cloudflare's free tier.

Cloudflare WorkersD1TanStack StartReact

Quoteflare is a self-hosted invoicing app for a single owner. Visitors build a quote with a public pricing calculator. You turn the quote into an invoice, email it to the client, and let the app chase late payments.

It runs as one Cloudflare Worker with a D1 database and an R2 bucket, so a small business can host it without paying for servers. It does not take payments. Invoices carry a status that you set yourself.

What it does

Pricing calculator

A visitor picks services, options and quantities. The server recomputes the total from current prices, so the client cannot change it.

Quotes to invoices

A submitted quote becomes an invoice numbered like INV-2026-0001. Advance payments are supported.

Email

Invoices go out through Resend with a link to a public page. A webhook records delivery, bounces and complaints.

Reminders

A daily job marks unpaid invoices overdue and can email clients before and after the due date.

Recurring invoices

Schedules create, and optionally send, invoices weekly, monthly, quarterly or yearly.

Admin dashboard

Clients, services, packages, quotes, invoices and settings, behind Cloudflare Access.

Behind the calculator sits a service catalogue with categories, fixed or custom pricing, weekly to yearly billing, option groups, required services and packages. You can import a whole catalogue from JSON.

How it is built

The app uses TanStack Start and React 19 on Cloudflare Workers, with D1 through Drizzle ORM and R2 for the logo. A small Hono app at /api handles the Resend webhook and the public JSON endpoints. Emails are React Email templates, the UI is Tailwind CSS 4 with shadcn/ui on Base UI, and Vitest runs the tests.

The admin area sits behind Cloudflare Access with a one-time PIN. The Worker verifies the login again on its own, so a request that skips Access still gets a 401.

Run it locally

You need Node.js 22.12 or newer and Bun.

git clone https://github.com/NandiyaLive/quoteflare.git
cd quoteflare
bun install
cp .dev.vars.example .dev.vars
bun run db:migrate:local
bun run db:seed
bun run dev

The app runs at http://localhost:3000. Use bun run dev, not bun --bun run dev, which breaks the Cloudflare plugin. The example env file uses Cloudflare's always-pass Turnstile test keys, so add a RESEND_API_KEY to send real email.

Source

Quoteflare is released under the MIT License. The code, the deploy steps and a full guide are on GitHub. Issues and pull requests are welcome.