{"id":21842979,"url":"https://github.com/doczilla-app/doczilla-node","last_synced_at":"2025-04-14T12:05:27.303Z","repository":{"id":212820410,"uuid":"732358967","full_name":"Doczilla-APP/doczilla-node","owner":"Doczilla-APP","description":"Doczilla API wrapper, effortlessly create PDFs and screenshots based on your HTML.","archived":false,"fork":false,"pushed_at":"2025-01-31T09:51:57.000Z","size":1885,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-14T12:05:18.806Z","etag":null,"topics":["html-to-image","html-to-pdf","html-to-pdf-api","html2image","html2pdf","puppeteer"],"latest_commit_sha":null,"homepage":"https://www.doczilla.app","language":"TypeScript","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/Doczilla-APP.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-16T12:16:53.000Z","updated_at":"2025-02-03T00:22:54.000Z","dependencies_parsed_at":"2024-03-15T20:44:35.645Z","dependency_job_id":"4ed1d5e5-70e3-491f-aab1-8c078f0c25b1","html_url":"https://github.com/Doczilla-APP/doczilla-node","commit_stats":null,"previous_names":["doczilla-app/doczilla-node"],"tags_count":17,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doczilla-APP%2Fdoczilla-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doczilla-APP%2Fdoczilla-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doczilla-APP%2Fdoczilla-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doczilla-APP%2Fdoczilla-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Doczilla-APP","download_url":"https://codeload.github.com/Doczilla-APP/doczilla-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248877984,"owners_count":21176243,"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":["html-to-image","html-to-pdf","html-to-pdf-api","html2image","html2pdf","puppeteer"],"created_at":"2024-11-27T22:13:54.749Z","updated_at":"2025-04-14T12:05:27.272Z","avatar_url":"https://github.com/Doczilla-APP.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Doczilla Node.js Library\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @doczilla/node\n# or\nyarn add @doczilla/node\n```\n\n## Usage\n\nThe package needs to be configured with your account's API key, which is\navailable on your [Doczilla's organisation settings page](https://doczilla.app/login).\n\n```ts\nimport Doczilla from '@doczilla/node'\n\nconst doczilla = new Doczilla('doczilla-...')\n\nconst pdfBuffer = await doczilla.pdf.direct({\n  page: {\n    html: '\u003cdiv\u003eYour first Doczilla PDF\u003c/div\u003e'\n  }\n})\n```\n\n### Webhook signing\n\nDoczilla can optionally sign the webhook events it sends to your endpoint, allowing you to validate that they were not\nsent by a third party. You can read more about it [here](https://docs.doczilla.app/examples/securing-webhooks).\n\nPlease note that you must pass the _raw_ request body, exactly as received from Doczilla, to the `verifyPayload()`\nfunction; this will not work with a parsed (i.e., JSON) request body.\n\n```js\nconst event = doczilla.webhooks.verifyPayload(\n  webhookRawBody,\n  webhookDoczillaSignatureHeader,\n  webhookSecret\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoczilla-app%2Fdoczilla-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoczilla-app%2Fdoczilla-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoczilla-app%2Fdoczilla-node/lists"}