Community documentation for PokéAPI — the free, open RESTful API for Pokémon data. Built on @inkform/framework with the Aurora theme (recolored to Pokédex red).
npm install
npm run dev
# → http://localhost:3000All documentation lives in content/docs/.
content/docs/
docs.json # navigation, site name, tabs
openapi.json # OpenAPI 3.1 spec (drives the API Reference tab)
index.mdx # Introduction
quickstart.mdx # Quickstart guide
fair-use.mdx # Fair Use Policy
concepts/
resources.mdx # Resources & Endpoints
pagination.mdx # Pagination
resource-lists.mdx
patterns.mdx # Common Patterns
resources/
pokemon.mdx # Pokémon resource
types.mdx # Types resource
moves.mdx # Moves resource
abilities.mdx # Abilities resource
evolution.mdx # Evolution Chain resource
- Create a
.mdxfile undercontent/docs/. - Add frontmatter:
titleanddescription. - Register the page in
docs.jsonunder the appropriate tab/group.
The API Reference tab is auto-generated from content/docs/openapi.json.
Replace or extend the spec to add new endpoint pages.
| Variable | Required | Description |
|---|---|---|
NEXT_PUBLIC_SITE_URL |
No | Production URL for canonical links |
NEXT_PUBLIC_DOCS_AI_ENABLED |
No | Set to true to enable the Ask AI widget |
ANTHROPIC_API_KEY |
Only if AI enabled | Used by app/api/ask/route.ts |
- Push to a GitHub repository.
- Import the repo in the Vercel dashboard.
- Set Root directory to the path of this folder if deploying from a monorepo.
- Add
NEXT_PUBLIC_SITE_URLas an environment variable. - Click Deploy.
The Ask AI button is built in but disabled by default. Enable it:
- Set
NEXT_PUBLIC_DOCS_AI_ENABLED=true. - Add your
ANTHROPIC_API_KEYas a server-side env var. - The LLM call is wired in
app/api/ask/route.ts.