astro-flyweb
v0.1.0
Published
FlyWeb integration for Astro — auto-generate /.well-known/flyweb.json for AI agent discovery.
Maintainers
Readme
astro-flyweb
FlyWeb integration for Astro — auto-generate /.well-known/flyweb.json so AI agents can discover your structured content.
Install
npm install astro-flywebUsage
// astro.config.mjs
import { defineConfig } from 'astro/config';
import flyweb from 'astro-flyweb';
export default defineConfig({
integrations: [
flyweb({
entity: 'My Docs Site',
type: 'docs',
url: 'https://docs.example.com',
resources: {
pages: {
path: '/.flyweb/pages',
format: 'jsonl',
fields: ['title', 'slug', 'content', 'category'],
query: '?category={category}',
},
},
}),
],
});The integration generates public/.well-known/flyweb.json automatically during build. AI agents can then discover your content at https://yoursite.com/.well-known/flyweb.json.
How It Works
- Add the integration to your Astro config
- Define your entity, type, and resources
- Build your site —
flyweb.jsonis generated automatically - AI agents discover and consume your structured data
Links
- flyweb.io — Project homepage
- Spec — Protocol specification
flyweb— Core packagenext-flyweb— Next.js integration
License
MIT
