AI search and agent readiness JavaScriptPython

ai-traffic-insightsSee what ChatGPT, Claude and Perplexity actually do on your site, from your own logs

ai-traffic-insights reads your access logs and shows verified AI crawlers (checked against official IP lists and reverse DNS), fake bots, visits sent by AI assistants, blocked bots and AI requests to missing pages. It runs locally, in JavaScript or Python.

npx npx ai-traffic-insights access.log --site your-store.com
PyPI pip install ai-traffic-insights

Free · MIT license · runs on your machine · no signup npm ↗PyPI ↗GitHub ↗

How ai-traffic-insights works

AI assistants now read your store before your customers do. ChatGPT, Claude and Perplexity send crawlers to index your products, open pages when a shopper asks about them, and send visitors through links in their answers. None of this shows up properly in normal analytics, because crawlers never run your tracking script.

Your server logs see all of it. ai-traffic-insights reads them and tells you what matters to a store owner:

It reads logs from nginx, Apache, most hosting control panels, Cloudflare, Vercel, AWS CloudFront and IIS, including gzipped files, and gets through about 150,000 lines a second.

Try it

You need Node.js 18.17 or newer.

npx ai-traffic-insights /var/log/nginx/access.log --site your-store.com

Add your sitemap to see which product pages AI bots have never fetched:

npx ai-traffic-insights access.log access.log.1.gz --site your-store.com --sitemap https://your-store.com/sitemap.xml

Why I built it

My research is on making AI cheaper and lighter to run, and my client work is in e-commerce. Both point to the same blind spot. Stores pay for bandwidth and server time spent on AI crawlers and fake bots, while they cannot tell whether AI search is sending them anything back. Logs answer both questions, and most store owners already have them.

Free and open source under the MIT license. Want help reading your report or fixing what it finds? Book a call.

Agent skill included

Let your AI coding agent run ai-traffic-insights for you

The ai-traffic-insights skill works with Claude Code, Codex, Cursor, Gemini CLI and other agents that read SKILL.md files. It runs the tool, explains each finding in plain words and helps you fix it.

npx skills add MuhammadAhmadZia/ai-traffic-insights --skill ai-traffic-insights

Using the Claude or ChatGPT apps instead? Download the skill ZIP from the GitHub releases page and upload it under Skills.

See all 30 agent skills →

Questions about ai-traffic-insights

Is there a Python version?

Yes: pip install ai-traffic-insights. It gives the same report as the npm version; the test suite checks that both produce identical results on the same logs.

Can't I just use Google Analytics?

GA4 now has an AI Assistant channel, and it is worth using for human visits. But AI crawlers never run your analytics script, so GA4 cannot show whether ChatGPT's crawler reaches your products, whether your firewall blocks it, or whether fake bots are using its name. Only your server or CDN logs show that.

How do you know a bot is fake?

OpenAI, Anthropic, Perplexity, Google, Microsoft, Apple, DuckDuckGo and Common Crawl publish the IP addresses their crawlers use. If a request says it is GPTBot but comes from somewhere else, it is not GPTBot. The tool downloads those official lists and checks every request.

I'm on Shopify. Can I use this?

Not directly. Shopify does not give merchants server logs. Use GA4's AI Assistant channel for visits, and agentic-commerce-readiness to check your product data for AI shopping.

Is it safe to run on my logs?

Yes. It runs on your own computer or server and uploads nothing. The report contains no visitor IP addresses, so you can share it with your team or developer.

Why are AI visits lower than I expected?

Logs show a lower bound. AI mobile apps often send no referrer, and clicks from Google AI Overviews and AI Mode look like ordinary Google Search visits.

UN Sustainable Development Goals

How each tool maps to SDG targets →

Want this set up and tuned for your store?

The tools are free. If you would rather have the checks run, the findings fixed and the results measured for you, that is what I do for clients.