{"id":16201396,"url":"https://github.com/amscotti/summarizer","last_synced_at":"2026-03-05T10:31:19.998Z","repository":{"id":228244023,"uuid":"773469386","full_name":"amscotti/summarizer","owner":"amscotti","description":"Summarizer is a command-line tool that generates comprehensive summaries of articles and other text-based content.","archived":false,"fork":false,"pushed_at":"2026-01-01T03:03:47.000Z","size":2799,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-05T19:40:34.390Z","etag":null,"topics":["anthropic","claude","gemini","google","langchain","langchain-js","llm","openai","summarization"],"latest_commit_sha":null,"homepage":"","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/amscotti.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":"2024-03-17T18:40:20.000Z","updated_at":"2026-01-01T03:03:51.000Z","dependencies_parsed_at":"2025-08-04T02:07:03.593Z","dependency_job_id":"398affff-624f-44a8-a913-6008d82269a5","html_url":"https://github.com/amscotti/summarizer","commit_stats":null,"previous_names":["amscotti/summarizer"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/amscotti/summarizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amscotti%2Fsummarizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amscotti%2Fsummarizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amscotti%2Fsummarizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amscotti%2Fsummarizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/amscotti","download_url":"https://codeload.github.com/amscotti/summarizer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/amscotti%2Fsummarizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30119427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T09:35:22.236Z","status":"ssl_error","status_checked_at":"2026-03-05T09:35:20.028Z","response_time":93,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["anthropic","claude","gemini","google","langchain","langchain-js","llm","openai","summarization"],"created_at":"2024-10-10T09:37:39.881Z","updated_at":"2026-03-05T10:31:19.969Z","avatar_url":"https://github.com/amscotti.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003cimg src=\"images/wizard_riding.jpg\" alt=\"A wizard riding a dinosaur - Leonardo AI\" width=\"500\"\u003e\n\u003c/p\u003e\n\nSummarizer is a command-line tool that generates comprehensive summaries of articles and other text-based content. It utilizes the powerful language models from Anthropic, Google, or OpenAI to create concise and informative summaries, helping users quickly grasp the key points of lengthy texts.\n\n[![asciicast](https://asciinema.org/a/55ZOBNgyqfGtHdWMDk6pTrIwC.svg)](https://asciinema.org/a/55ZOBNgyqfGtHdWMDk6pTrIwC)\n\n## Motivation\n\nThis is a port of a\n[python application](https://github.com/amscotti/page-summarizer) to Bun, this\nis to better learn and understand developing with [Bun](https://bun.sh/) but\nalso to take advantage of Bun's ability to [compile](https://bun.sh/docs/bundler/executables) to an executable,\nwith the ability to\n[cross compile](https://bun.sh/docs/bundler/executables#cross-compile-to-other-platforms) to other platforms. This should make it easier for others to use this\napplication and more convenient than a Python. Currently, this application is\nnot full featured like the Python version, but does have some additional\nfunctionality.\n\nNOTE: with the latest features that have been added compiling to an executable seems to no longer work properly, I will test with later versions of Bun.\n\n## TODO\n\n- [ ] Add logic for summarizing PDF urls\n- [ ] Create Docker image\n\n## Features\n\n- Summarize articles and content from provided URLs\n- Summarize text piped directly into the app\n- Adjust the summary size (short, medium, or long) to fit your needs\n- Choose from different models from different providers for summarization\n- Stream the summary output in real-time\n\n## Installation\n\n1. Ensure you have Bun installed on your system. If not, you can install it\n   from the official Bun website: [https://bun.sh/](https://bun.sh/)\n\n2. Clone this repository to your local machine:\n\n   ```shell\n   git clone https://github.com/amscotti/summarizer.git\n   ```\n\n3. Navigate to the project directory:\n\n   ```shell\n   cd summarizer\n   ```\n\n4. Set up the required environment variables:\n   - `ANTHROPIC_API_KEY`: Your Anthropic API key for using the Claude models\n   - `GOOGLE_API_KEY`: Your Google API key for using the Gemini models\n   - `OPENAI_API_KEY`: Your OpenAI API key for using the GPT models\n\n## Usage\n\nTo use the Summarizer, you have two options:\n\n1. Provide a URL as a command-line argument:\n\n   ```shell\n   bun run src/cli.ts google \"https://example.com/article\"\n   ```\n\n2. Pipe text directly into the app:\n   ```shell\n   cat article.txt | bun run src/cli.ts google\n   ```\n\n### Options\n\n- `-m, --model-name \u003cname\u003e`: Specify the Claude model to use for summarization.\n  Available options are:\n\n  - `claude-3-opus-20240229` (default)\n  - `claude-3-sonnet-20240229`\n  - `claude-3-haiku-20240307`\n\n- `-s, --summary-size \u003csize\u003e`: Specify the desired size of the summary.\n  Available options are:\n\n  - `short`\n  - `medium`\n  - `long` (default)\n\n- `--no-streaming`: Disable real-time streaming of the summary output.\n\n## Examples\n\nSummarize an article from a URL using the default model and summary size:\n\n```shell\nbun run src/cli.ts anthropic \"https://example.com/article\"\n```\n\nSummarize piped text using a specific model and summary size:\n\n```shell\ncat article.txt | bun run src/cli.ts -s medium anthropic -m claude-3-haiku-20240307\n```\n\n## Compiling\n\nYou can compile this application into an executable using the following command,\n\n```shell\nbun build src/cli.ts --compile --outfile summarizer\n```\n\n## Contributing\n\nContributions are welcome! If you have any ideas, suggestions, or bug reports,\nplease open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famscotti%2Fsummarizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Famscotti%2Fsummarizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Famscotti%2Fsummarizer/lists"}