{"id":15462614,"url":"https://github.com/devidw/invoice","last_synced_at":"2025-08-05T15:18:04.574Z","repository":{"id":46201962,"uuid":"323071550","full_name":"devidw/invoice","owner":"devidw","description":"Simple tool to generate invoices right from your browser by using its print API for PDF saving.","archived":false,"fork":false,"pushed_at":"2021-11-07T15:59:09.000Z","size":920,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-18T21:04:15.754Z","etag":null,"topics":["css","css3","html","html-css-javascript","html5","invoice","invoice-items","invoices","js","json","pdf","pdf-saving","translations"],"latest_commit_sha":null,"homepage":"https://devidw.github.io/invoice","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devidw.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-20T12:55:04.000Z","updated_at":"2022-10-07T16:18:13.000Z","dependencies_parsed_at":"2022-09-25T05:50:30.858Z","dependency_job_id":null,"html_url":"https://github.com/devidw/invoice","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Finvoice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Finvoice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Finvoice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devidw%2Finvoice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devidw","download_url":"https://codeload.github.com/devidw/invoice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246017725,"owners_count":20710240,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["css","css3","html","html-css-javascript","html5","invoice","invoice-items","invoices","js","json","pdf","pdf-saving","translations"],"created_at":"2024-10-02T00:02:46.436Z","updated_at":"2025-03-28T11:18:44.926Z","avatar_url":"https://github.com/devidw.png","language":"JavaScript","readme":"= Invoice Generator\r\n\r\n:toc:\r\n\r\nSimple tool to generate invoices right from your browser by using its print API for PDF saving (see https://devidw.github.io/invoice/[Demo]).\r\n\r\nimage::Sample.webp[Sample Output, width=240px]\r\n\r\n== Features\r\n- complete manipulation of invoice items (edit, clone, delete, order)\r\n- automatic calculations for price fields\r\n- custom inline html (e.g. use hyperlinks for: `mailto:`, `tel:`, …)\r\n- load different languages\r\n\r\n\r\n== How to …\r\n\r\n=== … use the toolbar\r\n\r\n|===\r\n|Button |Action\r\n\r\n|PDF    |call print dialog\r\n|🖩      |calculate item position numbers, item prices and total price\r\n|===\r\n\r\n\r\nWorking with the invoice item selected with the position input:\r\n\r\n|===\r\n|Button |Action\r\n\r\n|copy   |duplicate selected position\r\n|🗑️     |delete selected position\r\n|↑      |move selected position upwards\r\n|↓      |move selected position downwards\r\n|===\r\n\r\n=== … save static invoice data\r\nSome data like your address, contact as well as paying details are pretty much static, here is how you can save them, so you do not have to retype everything after a page refresh. To do so, update the JSON inside `/languages/prefill.js` to fit your needs.\r\n\r\n=== … add and set translations\r\n. duplicate an existing translation file in `/languages`\r\n. rename it, e.g. `lang_en.js`\r\n. write actual translations in JSON-Format\r\n. update path of import statement in `/js/lang.js` to match the new filename\r\n\r\n=== … adjust page format\r\nBy default sizes and layouts match paper format _DIN A4_ and page margins follow _DIN 5008_. For other standards, change CSS variables in `/css/variables.css` to your preferred sizes for page dimensions, margins etc..\r\n\r\n=== … modify logic for default invoice no. and dates\r\nPer default the invoice number is the current UNIX timestamp and invoice as well as delivery date equal todays date, while the due date is 30 days in the future from today. All that can be modified in `/js/init.js`.\r\n\r\n\r\n== Notes\r\nBest experience in Chromium based browsers (Chrome, Edge, Opera), recommended printing settings for these browsers are as following:\r\n\r\n|===\r\n|Option       |Value\r\n\r\n|Paper size   |A4\r\n|Margins      |None\r\n|===\r\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevidw%2Finvoice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevidw%2Finvoice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevidw%2Finvoice/lists"}