{"id":20810902,"url":"https://github.com/exposedcat/clickup-invoice-generator","last_synced_at":"2025-08-16T17:07:50.241Z","repository":{"id":247480515,"uuid":"825962272","full_name":"ExposedCat/clickup-invoice-generator","owner":"ExposedCat","description":"ClickUp PDF Invoice Generator","archived":false,"fork":false,"pushed_at":"2024-11-02T13:36:25.000Z","size":255,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-09T03:23:16.149Z","etag":null,"topics":["clickup-api","invoice-generator","invoice-pdf","invoices"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ExposedCat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-08T21:01:25.000Z","updated_at":"2024-12-24T20:19:19.000Z","dependencies_parsed_at":"2024-07-09T02:09:58.825Z","dependency_job_id":"d4618ea3-e177-43db-b1d8-2aa89a0a11fc","html_url":"https://github.com/ExposedCat/clickup-invoice-generator","commit_stats":null,"previous_names":["exposedcat/invoice-generator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ExposedCat/clickup-invoice-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fclickup-invoice-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fclickup-invoice-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fclickup-invoice-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fclickup-invoice-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExposedCat","download_url":"https://codeload.github.com/ExposedCat/clickup-invoice-generator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExposedCat%2Fclickup-invoice-generator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270495303,"owners_count":24593949,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["clickup-api","invoice-generator","invoice-pdf","invoices"],"created_at":"2024-11-17T20:28:41.431Z","updated_at":"2025-08-16T17:07:50.207Z","avatar_url":"https://github.com/ExposedCat.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## ClickUp Invoice Generator\n\n#### Installation\n\n```bash\nnpm install clickup-invoice-generator\n```\n\n### Working Example\n\nSee `example.ts` for fully functional example.\n\nCopy `.env.example` to `.env` and run generator using\n\n```bash\nnpm start\n```\n\n### Quick Start\n\n#### Create PDF instance\n\n```typescript\nimport { PDF } from 'clickup-invoice-generator';\n\nconst pdf = await new PDF().init();\n```\n\n#### Render details\n\n```typescript\nimport { renderTopBar, renderHeaders, renderCredentials } from 'clickup-invoice-generator';\n\nrenderTopBar({ pdf, invoiceId });\n\nrenderHeaders({\n  pdf,\n  from: {\n    name: 'Jane Doe',\n    address: '123 Main Street',\n    country: 'Czech Republic',\n    postalCode: '123',\n    ICO: '123',\n    DIC: '123',\n  },\n  to: {\n    name: 'John Doe',\n    address: '123 Main Street',\n    country: 'United States',\n    postalCode: '123',\n  },\n});\n\nrenderCredentials({\n  pdf,\n  credentials: {\n    bankName: 'Revolut',\n    iban: 'LT123123123',\n    bic: '123123',\n    variable: '123', // Invoice ID\n  },\n});\n```\n\n#### Fetch tasks\n\n```typescript\nimport { fetchTasks } from 'clickup-invoice-generator';\n\nconst tasks = await fetchTasks({\n  clickUp: {\n    privateKey: 'xxx',\n    teamId: 'xxx',\n    userId: 'xxx',\n  },\n  period: 'this', // 'last' for previous month\n});\n```\n\n#### Render tasks and total\n\n```typescript\nimport { renderTasks, renderTotal } from 'clickup-invoice-generator';\n\nconst total = renderTasks({\n  pdf,\n  tasks,\n  salary: {\n    currency: '$',\n    perHour: 40,\n  },\n});\n\nrenderTotal({\n  promo: true, // Please use `renderPromo({ pdf })` elsewhere if you set `false` here\n  pdf,\n  total,\n  currency: '$',\n});\n```\n\n#### Save PDF\n\n```typescript\nawait pdf.save('invoice.pdf');\n```\n\n### UI\n\n- TBD; only TS script available currently\n\n### TODO\n\n- Remove `dotenv`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexposedcat%2Fclickup-invoice-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexposedcat%2Fclickup-invoice-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexposedcat%2Fclickup-invoice-generator/lists"}