templates / ai-brand-visibility-template
AGENTS.md2.1k starsChanged 11 months agoMITView on GitHub
A Worker template that tests whether AI models (GPT-5.4, Claude Sonnet 4, Gemini 3 Flash, Llama 4, Mistral) mention your brand when answering relevant queries. All models run through Cloudflare AI Gateway — no external API keys needed.
- Installs packages
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about cloudflare/templates
- cloudflare/workers-sdk“Vite plugin has race condition with HMR - `A hanging Promise was canceled.`”GitHub · Jun 6, 2025 · 13 reactions
- cloudflare/workers-sdk“Container builds incompatible with podman”GitHub · Jun 26, 2025 · 12 reactions
- cloudflare/workerd“Switch to hard tabs for indentation”GitHub · Sep 27, 2022 · 7 reactions
- cloudflare/ai-utils“Switch to hard tabs for indentation”GitHub · Jun 27, 2024 · 3 reactions
- tursodatabase/libsql-client-ts“Cloudflare worker error with opennextjs-cloudflare”GitHub · Mar 18, 2025 · 2 reactions
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-visibility-template/AGENTS.mdAGENTS.md
- x402-proxy-template/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
The file
Files
Brand Visibility Tester — Setup Guide for AI Agents
What is this?
A Worker template that tests whether AI models (GPT-5.4, Claude Sonnet 4, Gemini 3 Flash, Llama 4, Mistral) mention your brand when answering relevant queries. All models run through Cloudflare AI Gateway — no external API keys needed.
Prerequisites
- Cloudflare account with Workers AI access
- Unified Billing credits loaded for third-party models (OpenAI, Anthropic, Google). Load at: https://dash.cloudflare.com → AI Gateway → Billing
- Node.js >= 22
Quick Setup
npm install
npx wrangler login
npx wrangler kv namespace create AEO_KV # Replace the example ID in wrangler.jsonc
npx wrangler queues create brand-visibility-jobs
npm run deploySetup Flow
- Enter site — domain to monitor
- Brand & competitors — confirm brand name, optionally add competitors
- Prompts — generate AI suggestions or add custom prompts
- Models — select which of the 5 models to test
- Run — queues fan out jobs in parallel, results stream in
API
| Endpoint | Method | Description |
/api/sites | GET/POST/DELETE | Site CRUD |
/api/sites/:domain/prompts | GET/POST/DELETE | Prompt CRUD |
/api/sites/:domain/models | GET/PUT | Model selection |
/api/sites/:domain/test | POST | Start test (enqueues jobs) |
/api/tests/:id/status | GET | Poll test progress |
/api/setup?domain=X | GET | AI prompt generation |
/api/models | GET | List available models |
/api/results/:id | GET | Get test result |
/api/results/:id/csv | GET | Download CSV |
Files
| File | Purpose |
src/config.ts | Model definitions, settings |
workers/app.ts | Hono entry + SSR + Queue consumer |
workers/api.ts | All API endpoints |
workers/queue.ts | Queue consumer (parallel inference) |
app/routes/ | React Router pages |
app/components/ | Kumo-matched UI components |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

