{"_id":"@agent404/express","name":"@agent404/express","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@agent404/express","version":"0.1.0","description":"agent-404 Express middleware — self-healing 404 pages for AI agents and crawlers","keywords":["404","express","middleware","ai-agents","seo","crawlers"],"author":{"name":"Bharath"},"license":"MIT","homepage":"https://www.agent404.dev","repository":{"type":"git","url":"git+https://github.com/bharath31/agent-404.git","directory":"packages/express"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"peerDependencies":{"express":">=4"},"peerDependenciesMeta":{"express":{"optional":true}},"scripts":{"build":"tsx ../../script/build-packages.ts express","prepublishOnly":"npm run build"},"publishConfig":{"access":"public"},"_id":"@agent404/express@0.1.0","gitHead":"b936a2872d51d155cf0db067a782b446055cb223","bugs":{"url":"https://github.com/bharath31/agent-404/issues"},"_nodeVersion":"22.23.2","_npmVersion":"10.9.8","dist":{"integrity":"sha512-CN9j0N/wSv81Y8xdK/LFDHknh4g6hq67oqVN7+G83imZ4rHp+ipvwTtG+rRt+cUKSS3wvVREZ/yEdQBEONfwWw==","shasum":"6d7d087e19d4759dff71bdaf02eecfd04e53ea3a","tarball":"https://registry.npmjs.org/@agent404/express/-/express-0.1.0.tgz","fileCount":5,"unpackedSize":10067,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBsGLyXIzDfbahssgKGoalsIOSs+NKA9zy91/JWr/+r2AiEA4H3k5FnzNZ3aV1EbXhgxs/MFc6q7v6FVv8Wf5ZNcaO0="}]},"_npmUser":{"name":"brth31","email":"lnbharath94@gmail.com"},"directories":{},"maintainers":[{"name":"brth31","email":"lnbharath94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/express_0.1.0_1786966001450_0.48006090478747154"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-17T11:26:41.185Z","0.1.0":"2026-08-17T11:26:41.602Z","modified":"2026-08-17T11:26:41.889Z"},"maintainers":[{"name":"brth31","email":"lnbharath94@gmail.com"}],"description":"agent-404 Express middleware — self-healing 404 pages for AI agents and crawlers","homepage":"https://www.agent404.dev","keywords":["404","express","middleware","ai-agents","seo","crawlers"],"repository":{"type":"git","url":"git+https://github.com/bharath31/agent-404.git","directory":"packages/express"},"author":{"name":"Bharath"},"bugs":{"url":"https://github.com/bharath31/agent-404/issues"},"license":"MIT","readme":"# @agent404/express\n\nExpress helper that turns your app's 404 handler into an [agent-404](https://www.agent404.dev) recovery response (`Link` headers, `schema.org` JSON-LD, and a rendered suggestion list) so AI crawlers and coding agents recover in one hop instead of hallucinating.\n\n## Install\n\n```bash\nnpm install @agent404/express\n```\n\n## Usage\n\n```js\n// server.js\nimport { recoverExpress404 } from \"@agent404/express\";\n\napp.use(async (req, res) => {\n  const recovered = await recoverExpress404(req, \"<h1>Not Found</h1>\", {\n    apiKey: process.env.AGENT404_PUBLIC_KEY,\n  });\n  res.status(404);\n  recovered.headers.forEach((v, k) => res.setHeader(k, v));\n  res.send(await recovered.text());\n});\n```\n\nGet `apiKey` (the read-only public key) by registering your domain at [agent404.dev](https://www.agent404.dev).\n","readmeFilename":"README.md","_rev":"1-b20ee0229db401533143dedb917502f2"}