# Buggy API and Agent Documentation

Buggy is the public personal site and utility PWA for Shreyam Adhikari.

## Public discovery endpoints

- `GET /llms.txt` — Markdown guide for LLMs and answer engines.
- `GET /ai.txt` — compact plain-text facts.
- `GET /.well-known/api-catalog` — API/link catalog.
- `GET /openapi.json` — OpenAPI description of public discovery endpoints.
- `GET /.well-known/agent-card.json` — A2A Agent Card for public discovery skills.
- `GET /.well-known/agent.json` — legacy A2A Agent Card alias.
- `GET /.well-known/agent-skills/index.json` — agent skills discovery index.
- `GET /.well-known/mcp/server-card.json` — MCP server card metadata.
- `GET /.well-known/ard.json` — current Agentic Resource Discovery manifest.
- `GET /.well-known/ai-catalog.json` — legacy AI catalog alias for ARD clients.
- `GET /auth.md` — authentication and agent registration notes.
- `GET /.well-known/agent-registration` — machine-readable agent registration profile.
- `GET /.well-known/oauth-protected-resource` — OAuth Protected Resource Metadata for agent discovery.
- `GET /.well-known/oauth-authorization-server` — OAuth Authorization Server Metadata containing `agent_auth`.
- `GET /markdown/contact.md` — crawlable contact profile mirror.

## Runtime API

The interactive PWA calls same-origin `/api/*` by default. The Pages function proxies those requests to the Cloudflare Worker. `VITE_API_URL` can still override the API origin for local development or alternate deployments.

Known routes in the Worker codebase:

- `GET /api/health`
- `POST /api/notes/sync`
- `GET /api/ai/models`
- `POST /api/ai`
- `GET /api/chat` WebSocket upgrade

These runtime APIs are not public unauthenticated third-party APIs. Agents should prefer the public discovery documents for crawling and factual answering.
