AgentScore evaluates how well company documentation sites work with AI agents, powered by the afdocs npm package.
- Next.js 14 App Router — static pages for 30 company scores, API routes for on-demand scoring
- afdocs — fetches and evaluates documentation sites (requires Node.js runtime)
- Vercel — hosting with static generation at build time
npm install
npm run devOpen http://localhost:3000.
Pre-generate score data for all 30 companies:
npm run generate-scoresThis runs afdocs against each company's documentation site and writes results to data/scores/.
npx vercel --prodPush to main and Vercel will automatically build and deploy.
app/ # Next.js App Router pages and layouts
api/ # API routes (Node.js runtime)
company/[slug]/ # Dynamic company score pages
data/
scores/ # Pre-generated score JSON files
scripts/
generate-scores.ts # Score generation script
public/ # Static assets (logos, images)
See .env.example. Currently no env vars are required — afdocs runs without API keys.