{"id":51091488,"url":"https://github.com/willf/lychee-sitemap","last_synced_at":"2026-06-24T02:32:33.049Z","repository":{"id":366644844,"uuid":"1277201179","full_name":"willf/lychee-sitemap","owner":"willf","description":"Create a sitemap that lychee can use (or any website really)","archived":false,"fork":false,"pushed_at":"2026-06-22T17:27:49.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-22T19:18:52.759Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/willf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-22T17:15:31.000Z","updated_at":"2026-06-22T17:23:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/willf/lychee-sitemap","commit_stats":null,"previous_names":["willf/lychee-sitemap"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/willf/lychee-sitemap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Flychee-sitemap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Flychee-sitemap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Flychee-sitemap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Flychee-sitemap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willf","download_url":"https://codeload.github.com/willf/lychee-sitemap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willf%2Flychee-sitemap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34714992,"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-24T02:00:07.484Z","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-24T02:32:32.340Z","updated_at":"2026-06-24T02:32:33.038Z","avatar_url":"https://github.com/willf.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lychee-sitemap\n\n[![CI](https://github.com/willf/lychee-sitemap/actions/workflows/ci.yml/badge.svg)](https://github.com/willf/lychee-sitemap/actions/workflows/ci.yml)\n[![Release](https://github.com/willf/lychee-sitemap/actions/workflows/release.yml/badge.svg)](https://github.com/willf/lychee-sitemap/actions/workflows/release.yml)\n[![Latest Release](https://img.shields.io/github/v/release/willf/lychee-sitemap?display_name=tag\u0026logo=github)](https://github.com/willf/lychee-sitemap/releases)\n[![Rust 2024](https://img.shields.io/badge/Rust-2024-orange?logo=rust)](https://www.rust-lang.org/)\n\nA Rust CLI that crawls a website recursively and emits a sitemap XML document.\n\n## Features\n\n- Recursive crawling from a starting URL\n- Same-site restriction (won't crawl external domains)\n- URL deduplication (including fragment removal like `#section`)\n- Configurable crawl limits (`max-pages`, `max-depth`)\n- Bounded concurrent crawling (`--concurrency`)\n- Structured JSON logs to stderr with timestamps\n- Verbosity controls (`-v`, `-vv`, `-vvv` or repeated `--verbose`)\n- Output to stdout by default\n- Optional file output (`--output` or `--write-file` for `sitemap.xml`)\n\n## Requirements\n\n- Rust toolchain (stable)\n\n## Build\n\n```bash\ncargo build --release\n```\n\n## Usage\n\nPrint sitemap to stdout:\n\n```bash\ncargo run -- https://example.com\n```\n\nWrite sitemap to `sitemap.xml`:\n\n```bash\ncargo run -- https://example.com --write-file\n```\n\nWrite sitemap to a custom file:\n\n```bash\ncargo run -- https://example.com --output my-sitemap.xml\n```\n\nTune crawl limits:\n\n```bash\ncargo run -- https://example.com --max-pages 1000 --max-depth 10\n```\n\nTune concurrency:\n\n```bash\ncargo run -- https://example.com --concurrency 32\n```\n\nEnable logs:\n\n```bash\n# info-level logs\ncargo run -- https://example.com -v\n\n# debug-level logs\ncargo run -- https://example.com -vv\n\n# trace-level logs\ncargo run -- https://example.com -vvv\n```\n\nWith logging enabled, sitemap XML still goes to stdout while structured logs go to stderr.\nThat means shell redirection like `\u003e sitemap.xml` captures XML only.\n\n## Example output\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"UTF-8\"?\u003e\n\u003curlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\"\u003e\n  \u003curl\u003e\n    \u003cloc\u003ehttps://example.com/\u003c/loc\u003e\n  \u003c/url\u003e\n\u003c/urlset\u003e\n```\n\n## Test\n\n```bash\ncargo test\n```\n\nThe integration test spins up a local HTTP server and verifies recursive crawling, deduplication, and same-site filtering behavior.\n\n## GitHub Actions\n\nThis repository includes two workflows:\n\n- CI: [.github/workflows/ci.yml](.github/workflows/ci.yml)\n  - Runs on pushes to `main` and pull requests\n  - Checks formatting (`cargo fmt --check`)\n  - Runs clippy with warnings denied\n  - Runs tests on Linux, macOS, and Windows\n  - Ensures release builds compile on Linux, macOS, and Windows\n\n- Release: [.github/workflows/release.yml](.github/workflows/release.yml)\n  - Runs when you push a tag matching `v*` (for example `v0.1.0`)\n  - Builds release binaries on Linux, macOS, and Windows\n  - Packages artifacts (`.tar.gz` for Unix, `.zip` for Windows)\n  - Publishes a GitHub Release with generated notes and attached binaries\n\nCreate a release by tagging and pushing:\n\n```bash\ngit tag v0.1.0\ngit push origin v0.1.0\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Flychee-sitemap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillf%2Flychee-sitemap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillf%2Flychee-sitemap/lists"}