{"id":50769671,"url":"https://github.com/rngil/dark-pdf","last_synced_at":"2026-06-11T17:01:13.035Z","repository":{"id":352315317,"uuid":"1211767690","full_name":"rngil/dark-pdf","owner":"rngil","description":"Simple CLI tool to convert pdfs to dark mode, with TOC preservation","archived":false,"fork":false,"pushed_at":"2026-05-03T06:18:00.000Z","size":105,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-03T08:25:33.426Z","etag":null,"topics":["dark-mode","dark-theme","pdf","pdf-converter","pdfjs"],"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/rngil.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-15T18:18:19.000Z","updated_at":"2026-05-03T06:17:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/rngil/dark-pdf","commit_stats":null,"previous_names":["rngil/dark-pdf"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/rngil/dark-pdf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rngil%2Fdark-pdf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rngil%2Fdark-pdf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rngil%2Fdark-pdf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rngil%2Fdark-pdf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rngil","download_url":"https://codeload.github.com/rngil/dark-pdf/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rngil%2Fdark-pdf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34208761,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":["dark-mode","dark-theme","pdf","pdf-converter","pdfjs"],"created_at":"2026-06-11T17:01:07.728Z","updated_at":"2026-06-11T17:01:13.029Z","avatar_url":"https://github.com/rngil.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg align=\"right\" width=\"150\" src=\"assets/logo.png\" title=\"Logo from icon-icons.com\" /\u003e\n\n# dark-pdf\n\n[![Test](https://github.com/rngil/dark-pdf/actions/workflows/test.yml/badge.svg)](https://github.com/rngil/dark-pdf/actions/workflows/test.yml)\n\nConvert PDFs to dark mode, with table of contents preservation.\n\n---\n\n## Install\n\n```sh\nnpm install -g dark-pdf\n```\n\n## Usage\n\n```sh\ndarkpdf [options] \u003cinput.pdf\u003e\n```\n\n### Options\n\n| Flag                   | Default                    | Description               |\n| ---------------------- | -------------------------- | ------------------------- |\n| `-o, --output \u003cpath\u003e`  | `\u003cinput\u003e_\u003ctheme\u003e_dark.pdf` | Output file path          |\n| `-t, --theme \u003cname\u003e`   | `claude`                   | Theme to apply            |\n| `-s, --scale \u003cnumber\u003e` | `3`                        | Render quality multiplier |\n| `-h, --help`           | N/A                        | Show help                 |\n\n### Themes\n\n| Name       | Color         |\n| ---------- | ------------- |\n| `classic`  | Pure black    |\n| `claude`   | Claude Warm   |\n| `chatgpt`  | ChatGPT Cool  |\n| `sepia`    | Sepia Dark    |\n| `midnight` | Midnight Blue |\n| `forest`   | Forest Green  |\n\n## Programmatic API\n\n```js\nimport { convert, THEMES } from \"dark-pdf\";\n\nconst outPath = await convert(\"/path/to/input.pdf\", {\n  theme: \"claude\",\n  output: \"/path/to/output.pdf\",\n  scale: 3,\n  onProgress: ({ page, total }) =\u003e console.log(`${page}/${total}`),\n});\n```\n\n---\n\nLogo from [icon-icons.com](https://icon-icons.com/fr/icone/fichier-pdf/245974).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frngil%2Fdark-pdf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frngil%2Fdark-pdf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frngil%2Fdark-pdf/lists"}