Invoice Ninja
Invoicing, quotes, payments, expenses, and client portal software
Invoice Ninja is open source, so the hosted subscription can be replaced by self-hosting if you can handle ops, updates, payment config, and backups.
Build verification: not recorded. How we judge buildability
What you give up
- managed hosting
- upgrades
- backups
- support
- payment setup convenience
- reduced ops risk
Why people still pay
They pay because billing software is boring and should not break on invoice day.
Your build guide
The stack, security requirements, and agent rules for a focused replacement.
Before you start
- A supported Node release, a writable local data directory and a separate backup location. Bind to localhost; remote use requires authentication and HTTPS first.
- Implementation components: Node.js, TypeScript and Express with server-rendered HTML and small browser modules. SQLite through better-sqlite3 with migrations, prepared statements and a single background worker.
- Scope boundary: Full Invoice Ninja compatibility, statutory accounting and tax determination are not implemented.
Use these project rules and optional skill references alongside the prompt. Review each skill before adding it to your agent; the AGENTS.md export includes the same guidance.
Optional external skill: web-design-guidelines — Review web interfaces for accessibility, keyboard focus, forms, navigation and interaction quality. Review its instructions and compatibility before use; it does not grant deployment, data-access or publication permission.
Optional external skill: sharp-edges — Review security-sensitive APIs and configuration for dangerous defaults and easy-to-misuse interfaces. Review its instructions and compatibility before use; it does not grant deployment, data-access or publication permission.
Optional external skill: pdf — Process PDFs through extraction, generation, page operations, form filling and OCR workflows. Review its instructions and compatibility before use; it does not grant deployment, data-access or publication permission.
Project rule — data model: clients, invoice drafts, line items, tax labels, issued invoice snapshots and payment-link references
Project rule — preserve this invariant: Issued invoice totals and numbers are immutable; corrections create a linked revision or credit document and money uses explicit currency precision.
Project rule — acceptance evidence: Issue two invoices concurrently with unique numbers; changing a client's address does not rewrite the previously issued PDF.
Implementation plan
Phase 1
Scope and fixtures. Implement this bounded workflow: Build a small invoice workflow: enter a client, draft line items, review totals and issue a numbered PDF. Add hosted payment links and manual payment-status notes without recreating a full accounting suite. Record prerequisites, select representative user-owned fixtures and document the unsupported features: Full Invoice Ninja compatibility, statutory accounting and tax determination are not implemented.
Phase 2
Durable model. Model clients, invoice drafts, line items, tax labels, issued invoice snapshots and payment-link references Add migrations or a versioned document format, explicit validation, stable IDs and a visible import-error report. Preserve this rule: Issued invoice totals and numbers are immutable; corrections create a linked revision or credit document and money uses explicit currency precision.
Phase 3
Complete the first useful path. Implement the workflow's input, review and output interface, with clear controls and explicit empty/error states. Use short SQLite transactions and persist job state before starting work. Give retries stable operation IDs; report incomplete or unknown results instead of silently repeating them.
Phase 4
Permissions and integration failure. Reject unexpected origins and unbounded request bodies even on localhost. Keep credentials outside the database export and redact sensitive text from logs. Request integration credentials and permissions only for the enabled feature; show a disconnected state instead of mock results.
Phase 5
Portable handoff. Use a consistent SQLite backup and an attachment manifest. Export portable JSON/CSV, then restore to a new directory without overwriting the original data. Include setup, operating limits, fixture walkthrough and shutdown/restart instructions in the README.
Phase 6
Acceptance scenarios. Issue two invoices concurrently with unique numbers; changing a client's address does not rewrite the previously issued PDF. Repeat the workflow after restart and with a denied permission or unavailable dependency; show recoverable failure rather than a success placeholder.
WORKING SLICE Build a small invoice workflow: enter a client, draft line items, review totals and issue a numbered PDF. Add hosted payment links and manual payment-status notes without recreating a full accounting suite. Build this scoped Invoice Ninja-inspired workflow with a documented data model and visible failure states. Architecture - Node.js, TypeScript and Express with server-rendered HTML and small browser modules. - SQLite through better-sqlite3 with migrations, prepared statements and a single background worker. Prerequisites and limits A supported Node release, a writable local data directory and a separate backup location. Bind to localhost; remote use requires authentication and HTTPS first. Outside this release: Full Invoice Ninja compatibility, statutory accounting and tax determination are not implemented. Data model and correctness clients, invoice drafts, line items, tax labels, issued invoice snapshots and payment-link references Invariant: Issued invoice totals and numbers are immutable; corrections create a linked revision or credit document and money uses explicit currency precision. Use short SQLite transactions and persist job state before starting work. Give retries stable operation IDs; report incomplete or unknown results instead of silently repeating them. Security and privacy Reject unexpected origins and unbounded request bodies even on localhost. Keep credentials outside the database export and redact sensitive text from logs. Recovery and export Use a consistent SQLite backup and an attachment manifest. Export portable JSON/CSV, then restore to a new directory without overwriting the original data. Implementation order 1. Phase 1 — Scope and fixtures. Implement this bounded workflow: Build a small invoice workflow: enter a client, draft line items, review totals and issue a numbered PDF. Add hosted payment links and manual payment-status notes without recreating a full accounting suite. Record prerequisites, select representative user-owned fixtures and document the unsupported features: Full Invoice Ninja compatibility, statutory accounting and tax determination are not implemented. 2. Phase 2 — Durable model. Model clients, invoice drafts, line items, tax labels, issued invoice snapshots and payment-link references Add migrations or a versioned document format, explicit validation, stable IDs and a visible import-error report. Preserve this rule: Issued invoice totals and numbers are immutable; corrections create a linked revision or credit document and money uses explicit currency precision. 3. Phase 3 — Complete the first useful path. Implement the workflow's input, review and output interface, with clear controls and explicit empty/error states. Use short SQLite transactions and persist job state before starting work. Give retries stable operation IDs; report incomplete or unknown results instead of silently repeating them. 4. Phase 4 — Permissions and integration failure. Reject unexpected origins and unbounded request bodies even on localhost. Keep credentials outside the database export and redact sensitive text from logs. Request integration credentials and permissions only for the enabled feature; show a disconnected state instead of mock results. 5. Phase 5 — Portable handoff. Use a consistent SQLite backup and an attachment manifest. Export portable JSON/CSV, then restore to a new directory without overwriting the original data. Include setup, operating limits, fixture walkthrough and shutdown/restart instructions in the README. 6. Phase 6 — Acceptance scenarios. Issue two invoices concurrently with unique numbers; changing a client's address does not rewrite the previously issued PDF. Repeat the workflow after restart and with a denied permission or unavailable dependency; show recoverable failure rather than a success placeholder. Acceptance Issue two invoices concurrently with unique numbers; changing a client's address does not rewrite the previously issued PDF. Use real source data or clearly labeled fixtures. Explain unsupported input and provider failures; do not fabricate analytics, delivery receipts, accuracy claims or security guarantees. Optional agent guidance Optional external skill: [web-design-guidelines](https://github.com/vercel-labs/agent-skills/blob/main/skills/web-design-guidelines/SKILL.md) — Review web interfaces for accessibility, keyboard focus, forms, navigation and interaction quality. Review its instructions and compatibility before use; it does not grant deployment, data-access or publication permission. Optional external skill: [sharp-edges](https://github.com/trailofbits/skills/blob/main/plugins/sharp-edges/skills/sharp-edges/SKILL.md) — Review security-sensitive APIs and configuration for dangerous defaults and easy-to-misuse interfaces. Review its instructions and compatibility before use; it does not grant deployment, data-access or publication permission. Optional external skill: [pdf](https://github.com/anthropics/skills/blob/main/skills/pdf/SKILL.md) — Process PDFs through extraction, generation, page operations, form filling and OCR workflows. Review its instructions and compatibility before use; it does not grant deployment, data-access or publication permission. Project rule — data model: clients, invoice drafts, line items, tax labels, issued invoice snapshots and payment-link references Project rule — preserve this invariant: Issued invoice totals and numbers are immutable; corrections create a linked revision or credit document and money uses explicit currency precision. Project rule — acceptance evidence: Issue two invoices concurrently with unique numbers; changing a client's address does not rewrite the previously issued PDF.
$ open in your agent (prompt prefilled, you press enter), copy the prompt or copy or download AGENTS.md
prompt copied. want to know what dies next week?
new verdicts + top votes, weekly. free. one-click out.
Alternatives to building your own
all 4 free alternatives to Invoice Ninja →· no votes, no pay-to-list · just what's real
Invoice Ninja pricing
| plan | monthly | annual (per mo) | what you get |
|---|---|---|---|
| free | $0/workspace | $0/workspace | Up to 5 clients, unlimited invoices and 4 invoice templates. |
| ninja pro | $14/workspace | $11.67/workspace | Unlimited clients/invoices, 11 templates and up to 10 interlinked companies per login.$140/year when billed annually. |
| enterprise | $18/workspace | $15/workspace | 1–2 users at the starting price; scales to 51–100 users at $300/month or $250/month annual equivalent; 250 PEPPOL credits included.Annual billing gives 2 months free; price scales by account-user band. |
| premium business | — | $23.33/workspace | Up to 100 users plus migration, custom reports and developer concierge.Custom plan starting at $280/year. |
free tier5 clients, unlimited invoices and 4 invoice templates.
billingmonthly + annual (2 months free); annual charged as one yearly payment; 30-day money-back promise
hidden costsPayment-gateway processing fees are separate. Enterprise prices rise with user count, from $18/month for 1–2 users to $300/month for 51–100; only 250 PEPPOL credits are included and extra-credit pricing was not public.
pricing sources checked 2026-08-11 · pricing source ↗
Questions about Invoice Ninja
Can you build your own Invoice Ninja with AI?
The verdict is yes for the scoped workflow. Invoice Ninja is open source, so the hosted subscription can be replaced by self-hosting if you can handle ops, updates, payment config, and backups.
What does the Invoice Ninja build prompt cover?
The prompt starts with this scope: Build a small invoice workflow: enter a client, draft line items, review totals and issue a numbered PDF. Add hosted payment links and manual payment-status notes without recreating a full accounting suite. Full-product capabilities excluded from the comparison include: managed hosting; upgrades; backups. Follow the implementation plan and its prerequisites before expanding the build.
How do I use the prompt, AGENTS.md and agent skills?
Start with the Invoice Ninja prerequisites and stack, then copy the prompt into your coding agent. Save the project rules as AGENTS.md in the project root. Linked skills are optional packages or source instructions for specific tasks; review their current contents and install only those matching the chosen stack. A skill does not supply API credentials or verify the finished app.
How long will this Invoice Ninja project take?
The catalogue estimate is weekend for the limited scope. Setup, integration approvals, debugging, deployment and ongoing maintenance can add time. This is an estimate, not a delivery guarantee.
What would I give up by replacing Invoice Ninja?
managed hosting; upgrades; backups; support; payment setup convenience; reduced ops risk. They pay because billing software is boring and should not break on invoice day.
What price is this guide comparing against?
The recorded Pro plan is $14/mo (monthly), checked 2026-08-07. Check the linked pricing source before buying. Building your own also has hosting, API and maintenance costs; the recorded amount is not a guaranteed saving.
What can I use instead of building Invoice Ninja?
ERPNext: Quotes, invoices, payments, expenses and a portal inside a much larger ERP than anyone ordered. InvoiceShelf: Invoices, estimates, expenses, payments and a client portal; the bill arrives as Docker maintenance instead. Invoice Ninja self-hosted: The same invoicing stack on your own server; billing is free, the license is source-available, and removing its branding costs extra. Compare all listed options at https://howtovibecodeit.dev/invoice-ninja/alternatives. Check each option's license, hosting needs and feature limits.