Skip to content

About

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

AI Bots DB logo

aibotsdb.com

The website for AI Bots DB: every AI bot on the web, in one open list.

Built with Next.js (App Router). The data comes from the main repository and is refreshed every 6 hours, with the ai-bots-db npm package as a fallback.

Pages

Route What it is
/ Home
/bots Searchable directory of every AI bot
/bots/[id] One page per bot, with ready-to-copy blocking rules
/companies, /companies/[slug] Every company and its bots
/generator robots.txt and server config generator
/check Checks whether a user-agent and IP are a real AI bot
/downloads Every file (robots.txt, data, server configs) with download counts
/api API documentation

Public API (no key, CORS enabled)

Endpoint Returns
GET /api/check?ua=…&ip=… Bot match and IP verification as JSON
GET /api/generate?format=…&block=… robots.txt or server rules as text
GET /api/downloads Download counts per file
GET /bots.json The whole database
GET /ip-ranges.json Official IP ranges keyed by bot id
GET /ai-robots.txt robots.txt that blocks every AI bot

Development

npm install
npm run dev        # http://localhost:3000
npm run build      # production build
npm run typecheck

Requires Node.js 20.9 or newer.

Deploying

Works on any host that runs Next.js. On Vercel: import the repository, keep the defaults, and add the domain aibotsdb.com. Pages are statically generated and revalidated every 6 hours; the API routes run on demand.

Download counts

Every file downloaded from /download/<file> is counted in Redis (Upstash). Only a total and a per-day number per file are stored; no IP addresses or user-agents. Crawlers are not counted. Counts appear on /downloads and at GET /api/downloads, refreshed every 5 minutes.

Setup on Vercel: Storage → Marketplace → Upstash for Redis → Create, then connect it to this project. Vercel adds KV_REST_API_URL and KV_REST_API_TOKEN automatically; redeploy once. Without these variables the site works normally and counting is skipped.

Bot data

Don't edit bot data here. Add or fix bots in the main repository; the site picks up changes within 6 hours.

License

MIT. The bot data is CC0.

About

Resources

Code of conduct

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages