{"id":24192300,"url":"https://github.com/egoist/sitefetch","last_synced_at":"2026-02-19T07:01:32.202Z","repository":{"id":271367072,"uuid":"913210145","full_name":"egoist/sitefetch","owner":"egoist","description":"Fetch an entire site and save it as a text file (to be used with AI models).","archived":false,"fork":false,"pushed_at":"2025-01-18T05:30:04.000Z","size":28,"stargazers_count":1637,"open_issues_count":16,"forks_count":142,"subscribers_count":9,"default_branch":"main","last_synced_at":"2026-01-14T11:12:55.341Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/egoist.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},"funding":{"github":"egoist"}},"created_at":"2025-01-07T08:43:01.000Z","updated_at":"2026-01-13T11:20:18.000Z","dependencies_parsed_at":"2025-01-07T09:38:11.898Z","dependency_job_id":"69950c1a-e4f2-4c84-b8ce-898ff719f861","html_url":"https://github.com/egoist/sitefetch","commit_stats":null,"previous_names":["egoist/sitefetch"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/egoist/sitefetch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fsitefetch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fsitefetch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fsitefetch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fsitefetch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/egoist","download_url":"https://codeload.github.com/egoist/sitefetch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/egoist%2Fsitefetch/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29605798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-19T06:47:36.664Z","status":"ssl_error","status_checked_at":"2026-02-19T06:45:47.551Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2025-01-13T16:01:18.873Z","updated_at":"2026-02-19T07:01:32.197Z","avatar_url":"https://github.com/egoist.png","language":"TypeScript","funding_links":["https://github.com/sponsors/egoist"],"categories":["TypeScript"],"sub_categories":[],"readme":"# sitefetch\n\nFetch an entire site and save it as a text file (to be used with AI models).\n\n![image](https://github.com/user-attachments/assets/e6877428-0e1c-444a-b7af-2fb21ded8814)\n\n## Install\n\nOne-off usage (choose one of the followings):\n\n```bash\nbunx sitefetch\nnpx sitefetch\npnpx sitefetch\n```\n\nInstall globally (choose one of the followings):\n\n```bash\nbun i -g sitefetch\nnpm i -g sitefetch\npnpm i -g sitefetch\n```\n\n## Usage\n\n```bash\nsitefetch https://egoist.dev -o site.txt\n\n# or better concurrency\nsitefetch https://egoist.dev -o site.txt --concurrency 10\n```\n\n### Match specific pages\n\nUse the `-m, --match` flag to specify the pages you want to fetch:\n\n```bash\nsitefetch https://vite.dev -m \"/blog/**\" -m \"/guide/**\"\n```\n\nThe match pattern is tested against the pathname of target pages, powered by micromatch, you can check out all the supported [matching features](https://github.com/micromatch/micromatch#matching-features).\n\n### Content selector\n\nWe use [mozilla/readability](https://github.com/mozilla/readability) to extract readable content from the web page, but on some pages it might return irrelevant contents, in this case you can specify a CSS selector so we know where to find the readable content:\n\n```sitefetch\nsitefetch https://vite.dev --content-selector \".content\"\n```\n\n## Plug\n\nIf you like this, please check out my LLM chat app: https://chatwise.app\n\n## API\n\n```ts\nimport { fetchSite } from \"sitefetch\"\n\nawait fetchSite(\"https://egoist.dev\", {\n  //...options\n})\n```\n\nCheck out options in [types.ts](./src/types.ts).\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegoist%2Fsitefetch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fegoist%2Fsitefetch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fegoist%2Fsitefetch/lists"}