{"id":18976887,"url":"https://github.com/a11ywatch/auto-pagefind","last_synced_at":"2026-04-29T02:43:34.383Z","repository":{"id":178105033,"uuid":"661357179","full_name":"a11ywatch/auto-pagefind","owner":"a11ywatch","description":"Pagefind for non static exports","archived":false,"fork":false,"pushed_at":"2023-08-11T10:21:12.000Z","size":232,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-02T14:54:15.199Z","etag":null,"topics":["nextjs","pagefind"],"latest_commit_sha":null,"homepage":"https://a11ywatch.com/blog","language":"Rust","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/a11ywatch.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":["a11ywatch"]}},"created_at":"2023-07-02T15:36:54.000Z","updated_at":"2023-07-19T19:14:10.000Z","dependencies_parsed_at":null,"dependency_job_id":"840532e8-a20d-4513-94ed-797ce404649d","html_url":"https://github.com/a11ywatch/auto-pagefind","commit_stats":null,"previous_names":["a11ywatch/next-pagefind"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/a11ywatch/auto-pagefind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a11ywatch%2Fauto-pagefind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a11ywatch%2Fauto-pagefind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a11ywatch%2Fauto-pagefind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a11ywatch%2Fauto-pagefind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a11ywatch","download_url":"https://codeload.github.com/a11ywatch/auto-pagefind/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a11ywatch%2Fauto-pagefind/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263093786,"owners_count":23412879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["nextjs","pagefind"],"created_at":"2024-11-08T15:26:43.893Z","updated_at":"2026-04-29T02:43:29.345Z","avatar_url":"https://github.com/a11ywatch.png","language":"Rust","funding_links":["https://github.com/sponsors/a11ywatch"],"categories":[],"sub_categories":[],"readme":"# auto-pagefind\n\nUse [Pagefind](https://pagefind.app/) with any live server.\n\n## Insallation\n\nInstall the modules required for the program.\n\n1. `cargo install spider_cli`\n1. `cargo install pagefind`\n1. `cargo install auto-pagefind`\n\n## Getting Started\n\n1. Start the dev or prod instance on port 3000 and run `auto-pagefind` at the root directory of your next application to create your search index's and output the content into the `public` folder.\n\n2. Optional: Add `data-pagefind-meta=\"url[href]\"` on your meta `hrefLang` links example: `\u003clink rel=\"alternate\" hrefLang=\"en\" href=\"https://a11ywatch.com/blog/version-your-proto-definitions-for-stablity\" data-pagefind-meta=\"url[href]\"/\u003e` to replace the location of the links.\n\n3. Setup pagefind client loading in the your project. You can use the [pagefind-react](./react) component with `npm install pagefind-react --save` for a drop in ready search.\n\n![Example of pagefind being used with the A11yWatch blog](example.png)\n\n## Options\n\nSome optional options below.\n\n```\nauto-pagefind --help\nPagefind for next.js non output export applications. Fully crawl and index your app in one command.\n\nUsage: auto-pagefind [OPTIONS]\n\nOptions:\n  -d, --download-dir \u003cDOWNLOAD_DIR\u003e  The download directory for storing the static.html files\n  -u, --url \u003cURL\u003e                    The website url\n  -h, --help                         Print help\n  -V, --version                      Print version\n```\n\n## CSP\n\nYou need to add the following header if csp is enabled `'wasm-unsafe-eval'`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa11ywatch%2Fauto-pagefind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa11ywatch%2Fauto-pagefind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa11ywatch%2Fauto-pagefind/lists"}