{"_id":"@42a/ael-astro","_rev":"2-cf94de034f38bef253efdc9123c57a1b","name":"@42a/ael-astro","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@42a/ael-astro","version":"0.1.0","keywords":["astro-integration","ael","llms.txt","mcp","ai-agents","42a"],"license":"GPL-2.0-or-later","_id":"@42a/ael-astro@0.1.0","maintainers":[{"name":"sky42a","email":"sky@42a.ai"},{"name":"alon42a","email":"alon@42a.ai"}],"homepage":"https://www.42a.ai","dist":{"shasum":"2c3e3044767c9f51e61e8604cb3a9263834eb6b0","tarball":"https://registry.npmjs.org/@42a/ael-astro/-/ael-astro-0.1.0.tgz","fileCount":23,"integrity":"sha512-fshrzjaYn2l6nKvBf0nQcTj079o3ce7cyWNFtrouXSLr1cVEioxNdgqzhw2TC0pLOpbq5J7Yvki1s8VF/2wV5g==","signatures":[{"sig":"MEYCIQCbU8goClTNd0yEm+6ML7kAvw/e1Fj8ddmdB7NR3pvNWgIhAM41xDUMcpab1EEWWYbf79ugefTrFrCrM2MMbKlCf1g5","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":58118},"main":"./dist/index.js","type":"module","_from":"file:/tmp/claude-0/-home-user-mentiond/d63fdeb6-3136-5391-84b3-e681d884d1cb/scratchpad/pack/42a-ael-astro-0.1.0.tgz","types":"./dist/index.d.ts","engines":{"node":">=18.17"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./runtime":{"types":"./dist/runtime.d.ts","import":"./dist/runtime.js"},"./middleware":{"types":"./dist/middleware.d.ts","import":"./dist/middleware.js"},"./routes/mcp":{"import":"./dist/routes/mcp.js"},"./package.json":"./package.json","./routes/verify":{"import":"./dist/routes/verify.js"},"./routes/llms-txt":{"import":"./dist/routes/llms-txt.js"},"./routes/discovery":{"import":"./dist/routes/discovery.js"},"./routes/llms-full-txt":{"import":"./dist/routes/llms-full-txt.js"}},"scripts":{"build":"tsup","typecheck":"tsc --noEmit"},"_npmUser":{"name":"sky42a","email":"sky@42a.ai"},"_resolved":"/tmp/claude-0/-home-user-mentiond/d63fdeb6-3136-5391-84b3-e681d884d1cb/scratchpad/pack/42a-ael-astro-0.1.0.tgz","_integrity":"sha512-fshrzjaYn2l6nKvBf0nQcTj079o3ce7cyWNFtrouXSLr1cVEioxNdgqzhw2TC0pLOpbq5J7Yvki1s8VF/2wV5g==","_npmVersion":"10.9.7","description":"Astro integration for the 42a Agentic Enablement Layer: markdown page variants, llms.txt and an MCP server for your site with one integrations entry.","directories":{},"sideEffects":false,"_nodeVersion":"22.22.2","dependencies":{"@42a/ael":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"astro":"^4.16.19"},"peerDependencies":{"astro":">=4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ael-astro_0.1.0_1783861452017_0.5976057548742677","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@42a/ael-astro","version":"0.1.1","description":"Astro integration for the 42a Agentic Enablement Layer: markdown page variants, llms.txt and an MCP server for your site with one integrations entry.","license":"Apache-2.0","homepage":"https://www.42a.ai","sideEffects":false,"publishConfig":{"access":"public"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./middleware":{"types":"./dist/middleware.d.ts","import":"./dist/middleware.js"},"./runtime":{"types":"./dist/runtime.d.ts","import":"./dist/runtime.js"},"./routes/llms-txt":{"import":"./dist/routes/llms-txt.js"},"./routes/llms-full-txt":{"import":"./dist/routes/llms-full-txt.js"},"./routes/discovery":{"import":"./dist/routes/discovery.js"},"./routes/mcp":{"import":"./dist/routes/mcp.js"},"./routes/verify":{"import":"./dist/routes/verify.js"},"./package.json":"./package.json"},"scripts":{"build":"tsup","typecheck":"tsc --noEmit"},"keywords":["astro-integration","ael","llms.txt","mcp","ai-agents","42a"],"engines":{"node":">=18.17"},"dependencies":{"@42a/ael":"0.1.1"},"peerDependencies":{"astro":">=4.0.0"},"devDependencies":{"astro":"^4.16.19"},"_id":"@42a/ael-astro@0.1.1","_integrity":"sha512-uoDU7BhR2XJgRsy27JRiR4AhD67PzkrEQKnYx5hIZ/vyeRliBb90S0WpeRPkRimi9axt/9J/NAX2uEqtJvJSsg==","_resolved":"/tmp/claude-0/-home-user-mentiond/d63fdeb6-3136-5391-84b3-e681d884d1cb/scratchpad/pack/42a-ael-astro-0.1.1.tgz","_from":"file:/tmp/claude-0/-home-user-mentiond/d63fdeb6-3136-5391-84b3-e681d884d1cb/scratchpad/pack/42a-ael-astro-0.1.1.tgz","_nodeVersion":"22.22.2","_npmVersion":"10.9.7","dist":{"integrity":"sha512-uoDU7BhR2XJgRsy27JRiR4AhD67PzkrEQKnYx5hIZ/vyeRliBb90S0WpeRPkRimi9axt/9J/NAX2uEqtJvJSsg==","shasum":"f2ff91adae3224a24daf8d4ac6b692c624ad2c05","tarball":"https://registry.npmjs.org/@42a/ael-astro/-/ael-astro-0.1.1.tgz","fileCount":23,"unpackedSize":51630,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDeLVI+6JDXgGryBbpsx8k0kxXzWUpOoqZp3JLJhQOkdgIhAPCwCaMuUvS0PxtPDbXlQ4VfvT/niNO4w/jlFCTuYLyB"}]},"_npmUser":{"name":"sky42a","email":"sky@42a.ai"},"directories":{},"maintainers":[{"name":"sky42a","email":"sky@42a.ai"},{"name":"alon42a","email":"alon@42a.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ael-astro_0.1.1_1783863760483_0.6937917422054884"},"_hasShrinkwrap":false}},"time":{"created":"2026-07-12T13:04:11.833Z","modified":"2026-07-12T13:42:40.788Z","0.1.0":"2026-07-12T13:04:12.144Z","0.1.1":"2026-07-12T13:42:40.628Z"},"license":"Apache-2.0","homepage":"https://www.42a.ai","keywords":["astro-integration","ael","llms.txt","mcp","ai-agents","42a"],"description":"Astro integration for the 42a Agentic Enablement Layer: markdown page variants, llms.txt and an MCP server for your site with one integrations entry.","maintainers":[{"name":"sky42a","email":"sky@42a.ai"},{"name":"alon42a","email":"alon@42a.ai"}],"readme":"# @42a/ael-astro\n\nAstro integration for the [42a Agentic Enablement Layer](https://www.npmjs.com/package/@42a/ael): markdown page variants, `llms.txt`, and an on-site MCP server with one `integrations` entry.\n\nRequires Astro ≥ 4.\n\n## Install\n\n```bash\nnpm install @42a/ael @42a/ael-astro\n```\n\n```js\n// astro.config.mjs\nimport ael from \"@42a/ael-astro\";\nimport { defineConfig } from \"astro/config\";\n\nexport default defineConfig({\n  site: \"https://example.com\", // required — AEL uses it as the canonical origin\n  integrations: [ael()],\n});\n```\n\n### Content collections (recommended)\n\nCollections are served **verbatim** — the markdown source of each entry, no HTML round-trip:\n\n```js\nael({\n  collections: [{ name: \"blog\", base: \"/blog\" }],\n})\n```\n\nEverything else falls back to the self-render provider (sitemap + rendered HTML).\n\n## Static vs SSR\n\n| Feature | Fully static (no adapter) | SSR / static + adapter |\n|---|---|---|\n| `llms.txt`, `llms-full.txt` | ✅ generated at build | ✅ live |\n| `<path>.md` page variants | ✅ generated at build from the rendered HTML | ✅ live (`?format=markdown` + `Accept` too) |\n| MCP endpoint + `/.well-known` discovery | ❌ needs a server | ✅ |\n\nOn static builds the integration writes `.md` files next to every page in `dist/` at `astro:build:done` and links them with `.md` URLs in `llms.txt` (static hosts don't route query strings). To get the MCP server, add any SSR adapter (`@astrojs/node`, `@astrojs/vercel`, `@astrojs/netlify`).\n\nVerify with:\n\n```bash\nnpx @42a/ael doctor https://example.com\n```\n\n## Connect to 42a (optional)\n\n```bash\nnpx @42a/ael connect\n```\n\nMints a site token; add it as the `FORTYTWOA_SITE_TOKEN` environment variable and redeploy. Domain verification happens automatically via `/.well-known/42a.json` (SSR only).\n\n## Options\n\n`ael({ siteUrl?, siteName?, description?, language?, collections?, markdown?, llms?, mcp?, telemetry?, ssr? })` — all JSON-serializable (they cross the build/runtime boundary). For custom providers or MCP tools, mount `createAel` from `@42a/ael` in your own routes instead.\n","readmeFilename":"README.md"}