generate decently looking invoice from JSON with Typst
- Typst 65.4%
- Elixir 24.4%
- Just 7.4%
- Nix 2.8%
| fonts | ||
| lib | ||
| scripts | ||
| .envrc | ||
| .gitignore | ||
| defaults.json | ||
| justfile | ||
| main.typ | ||
| README.md | ||
| shell.nix | ||
Invoice generator template
Generate decent looking invoices from JSON with Typst.
Requirements
If nix & direnv is installed on your system, all dependencies should be managed automatically.
Usage
- Run
direnv allowin this directory. - Fill in
defaults.json. These data will be shared by all invoices. - Run
just addto create new invoice file and fill invoice details in generated JSON file. These data will be shallow-merged intodefault.jsonto produce final invoice data. You can also override keys fromdefaults.json. - Run
just compile invoices/{invoice-id}.jsonorjust compile-allto generate PDF invoices.
Invoice number sequence
New invoice generator generator uses {year}-{month}-{ordinal} pattern, where:
yearis 4-digit year numbermonthis 2-digit zero-padded month numberordinalis 2-digit zero-padded number that denotes n-th invoice in that month