Open-source AI visibility tracking platform. Monitor your brand's presence in Google AI Overviews, track competitors, and analyze sources. Fully self-hostable.
Note: The open-source version is limited to 1 workspace.
git clone https://github.com/Citatra/Citatra.git
cd Citatra
npm installcp .env.example .env.localEdit .env.local and set:
MONGODB_URI- MongoDB connection stringNEXTAUTH_SECRET- Random secret for JWT signingSERPAPI_API_KEY- SerpApi API key (get one here)
npm run devVisit http://localhost:3000 and create an account.
Contributions are welcome! Please open issues or pull requests on GitHub.
src/
app/ # Next.js App Router
api/ # REST API endpoints
workspaces/ # Workspace-scoped API
dashboard/ # Dashboard pages
login/ # Auth pages
signup/
onboarding/
components/
app-sidebar.tsx # Navigation sidebar
command-palette.tsx # Command palette (Ctrl+K)
ui/ # shadcn/ui components
lib/
auth.ts # NextAuth configuration
mongodb.ts # Database connection
serp-api.ts # SerpApi integration
middleware.ts # API middleware
models/ # Mongoose models
Set up a cron to call POST /api/cron/fetch-all on your preferred schedule (e.g., daily at 2 AM UTC) to auto-fetch AI Overviews for all active queries.
- Next.js 16 (App Router, React 19)
- MongoDB (Mongoose ODM)
- NextAuth v5 (Credentials auth)
- SerpApi (serpapi.com) for AI Overview fetching
- Tailwind CSS v4 + shadcn/ui
- Recharts (Charts)
- TypeScript
Citatra Non-Commercial Redistribution License - see LICENSE
