{"id":51046657,"url":"https://github.com/jdecool/firefox-reader-cli","last_synced_at":"2026-06-22T14:30:55.357Z","repository":{"id":335777849,"uuid":"1137770448","full_name":"jdecool/firefox-reader-cli","owner":"jdecool","description":"A standalone command-line tool that extracts article content from web pages and saves them as clean, readable HTML files using Firefox's Reader Mode technology.","archived":false,"fork":false,"pushed_at":"2026-02-15T16:40:45.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-29T17:26:35.243Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdecool.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-01-19T20:14:11.000Z","updated_at":"2026-03-20T17:42:10.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jdecool/firefox-reader-cli","commit_stats":null,"previous_names":["jdecool/firefox-reader-cli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jdecool/firefox-reader-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdecool%2Ffirefox-reader-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdecool%2Ffirefox-reader-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdecool%2Ffirefox-reader-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdecool%2Ffirefox-reader-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdecool","download_url":"https://codeload.github.com/jdecool/firefox-reader-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdecool%2Ffirefox-reader-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34653712,"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-22T02:00:06.391Z","response_time":106,"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":[],"created_at":"2026-06-22T14:30:53.280Z","updated_at":"2026-06-22T14:30:55.351Z","avatar_url":"https://github.com/jdecool.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Firefox Reader CLI\n\nA standalone command-line tool that extracts article content from web pages and saves them as clean, readable HTML files using Firefox's Reader Mode technology.\n\n## Features\n\n- 🚀 Extract clean article content from any web page\n- 🎨 Multiple themes (light, dark, sepia, gray, contrast)\n- 📖 Reading time estimation\n- 📦 Self-contained HTML output (no external dependencies)\n- 🔄 Batch processing support\n- 💬 Verbose and debug modes\n\n## Installation\n\n```bash\ncd /path/to/reader-cli\nnpm install\nchmod +x bin/reader.js\n\n# Optional: make `reader-cli` available on your PATH\nnpm link\n```\n\n## Usage\n\n### Basic Usage\n\n```bash\n./bin/reader.js https://example.com/article\n```\n\nOr, if you ran `npm link`:\n\n```bash\nreader-cli https://example.com/article\n```\n\nThis will create a file named after the article title (e.g., `how-to-build-cli-tools.html`).\n\n### Custom Output Filename\n\n```bash\n./bin/reader.js https://example.com/article -o my-article.html\n```\n\n### Choose a Theme\n\n```bash\n./bin/reader.js https://example.com/article -t dark\n./bin/reader.js https://example.com/article -t sepia\n```\n\nAvailable themes: `light`, `dark`, `sepia`, `gray`, `contrast`\n\n### Batch Processing\n\n```bash\n./bin/reader.js url1 url2 url3 -t dark\n```\n\nEach article will be saved with an auto-generated filename.\n\n### Verbose Mode\n\n```bash\n./bin/reader.js https://example.com/article -v\n```\n\nShows progress information including:\n- Fetch status\n- Article title\n- Reading time\n\n### Debug Mode\n\n```bash\n./bin/reader.js https://example.com/article --debug\n```\n\nShows detailed debugging information including:\n- DOM fetch details\n- Parser output\n- Error stack traces\n\n### Retrieve Content Behind Authentication\n\nUse your existing authenticated session cookie.\n\nYou can also provide cookies directly:\n\n```bash\n./bin/reader.js https://example.com/protected/article \\\n  --cookie 'sessionid=abc123; Path=/; HttpOnly'\n```\n\nOr load one cookie per line from a file:\n\n```bash\n./bin/reader.js https://example.com/protected/article \\\n  --cookie-file ./cookies.txt\n```\n\nCookie file format:\n- One cookie string per line\n- Blank lines and lines starting with `#` are ignored\n\n## Examples\n\n```bash\n# Single article with custom filename\n./bin/reader.js https://developer.mozilla.org/article -o mdn-article.html\n\n# Protected article using an existing session cookie\n./bin/reader.js https://example.com/protected/article \\\n  --cookie 'sessionid=abc123; Path=/; HttpOnly'\n\n# Multiple articles with dark theme\n./bin/reader.js \\\n  https://blog.example.com/post1 \\\n  https://blog.example.com/post2 \\\n  -t dark -v\n\n# Debug mode to troubleshoot parsing issues\n./bin/reader.js https://example.com/article --debug\n```\n\n## Output\n\nThe generated HTML files are completely self-contained with:\n- Inlined CSS (no external stylesheets)\n- Article metadata (title, author, reading time)\n- Clean, readable content\n- Responsive design\n- No JavaScript required\n\n## Technology\n\nThis tool uses:\n- [@mozilla/readability](https://www.npmjs.com/package/@mozilla/readability) - Mozilla's article extraction library\n- [jsdom](https://github.com/jsdom/jsdom) - JavaScript implementation of web standards\n- [commander](https://github.com/tj/commander.js) - Node.js command-line interface\n\n## License\n\nMozilla Public License 2.0 (MPL-2.0)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdecool%2Ffirefox-reader-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdecool%2Ffirefox-reader-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdecool%2Ffirefox-reader-cli/lists"}