This app generates professional invoices and exports them as an image.
- Removed hardcoded company details from the invoice preview.
- Added business profile fields directly in the form:
- Business name
- Business email
- Business address
- Added configurable
currencyCodeper invoice (for example:USD,EUR,GBP). - Added PDF export action (opens print dialog, then save as PDF).
- Added reusable local templates (save/load business profile in browser storage).
- Centralized app defaults and metadata in
lib/invoice-config.ts.
Edit lib/invoice-config.ts to change global defaults:
appNameappTaglinedescriptiondefaults.senderNamedefaults.senderEmaildefaults.senderAddressdefaults.currencyCodedefaults.localedefaults.taxRate
In the form, use:
Save Templateto store your business profile locallyLoad Templateto apply it to a new invoiceClear Templateto remove the saved local template
Templates are stored per browser using local storage.
Save as Imagedownloads a PNG fileExport PDFopens the print dialog so you can save as PDF
pnpm install
pnpm devThen open http://localhost:3000.