{"id":23112655,"url":"https://github.com/meghajit/papyrus","last_synced_at":"2026-05-15T23:04:15.174Z","repository":{"id":48280662,"uuid":"391453635","full_name":"Meghajit/Papyrus","owner":"Meghajit","description":"Papyrus is an application to save a pdf version of any webpage.","archived":false,"fork":false,"pushed_at":"2021-10-12T09:49:33.000Z","size":36,"stargazers_count":2,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T23:45:47.542Z","etag":null,"topics":["chromium","generator","pdf","pupeteer","website"],"latest_commit_sha":null,"homepage":"","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/Meghajit.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}},"created_at":"2021-07-31T20:04:18.000Z","updated_at":"2021-10-12T09:49:36.000Z","dependencies_parsed_at":"2022-08-30T06:01:26.770Z","dependency_job_id":null,"html_url":"https://github.com/Meghajit/Papyrus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Meghajit/Papyrus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meghajit%2FPapyrus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meghajit%2FPapyrus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meghajit%2FPapyrus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meghajit%2FPapyrus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meghajit","download_url":"https://codeload.github.com/Meghajit/Papyrus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meghajit%2FPapyrus/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265876901,"owners_count":23842956,"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":["chromium","generator","pdf","pupeteer","website"],"created_at":"2024-12-17T02:19:58.860Z","updated_at":"2026-05-15T23:04:10.151Z","avatar_url":"https://github.com/Meghajit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Papyrus\n\n\u003e _Reading furnishes the mind only with materials of knowledge; it is thinking that makes what we read ours._\n\u003e\n\u003e-- _John Locke_\n\nPapyrus is an application to save a pdf version of any webpage.\n\n## Usage\n\n### 1. Install dependencies\nRun `npm install`\n\n### 2. Start the server\nRun `node index.js`\n\n## API\nPapyrus exposes some `POST` endpoints for pdf generation: \n\n1. `/pdf`: The webpage to be printed is provided as the request body param `webURL`.\n\nSample request:\n\n```shell\ncurl --location --request POST 'localhost:3000/pdf' --header 'Content-Type: application/json' --data-raw '{\n    \"webURL\": \"https://en.wikipedia.org/wiki/Papyrus\"\n}' \u003e download.pdf\n```\nThe pdf is written to the file `download.pdf`.\n\n2. `/html2pdf`: The webpage to be printed is provided as an HTML file with any key.\n\nSample request:\n\n```shell\ncurl --location --request POST 'localhost:3000/html2pdf' \\\n--form 'file=@\"/path/to/file/Or/Use/sample.html/from/this/repo\"' \u003e download.pdf\n```\n\n## Disclaimer\n\nThe project could use a lot of improvements, some of which are mentioned in the issues. Feel free to add feature\nrequests if you want some functionality to be added or contribute to the project by raising a PR.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeghajit%2Fpapyrus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeghajit%2Fpapyrus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeghajit%2Fpapyrus/lists"}