PromptLens is an AI recommendation diagnostics platform that shows B2B teams why AI assistants like ChatGPT, Claude, and Perplexity recommend competitors instead of them, then gives the exact content and positioning fixes to win those buyer prompts.
- Visibility Score: Track your aggregate brand presence across dozens of high-value buyer intent queries.
- Head-to-Head Competitor Analysis: See exactly why an AI is recommending a competitor instead of you.
- Actionable Fixes: Get concrete AI-generated recommendations for positioning, content, and messaging tweaks to win back recommendations.
- Scan Transcripts & CSV Export: Drill down into raw LLM responses and export the data for deeper analysis.
- Historical Trends: Track your visibility score progress over time.
- Automated Scanning: Background cron jobs power recurring AI product sentiment analysis.
- Framework: SvelteKit
- Backend & Database: Convex (Real-time edge database and serverless functions)
- Authentication: Convex Auth with GitHub OAuth
- LLM Integration: OpenAI & Anthropic (via custom routing layer in Convex actions)
- Payments: Dodo Payments
- Styling: TailwindCSS + Custom UI components powered by Lucide Svelte
- Node.js 18+
- Convex Account
-
Install dependencies:
pnpm install
-
Initialize Convex (this will spin up your backend and start syncing your schemas/functions):
npx convex dev
-
Start the SvelteKit development server in a new terminal:
pnpm run dev
Copy your .env.local.example to .env.local and populate the required keys to ensure everything runs correctly:
# Convex
CONVEX_DEPLOYMENT=...
NEXT_PUBLIC_CONVEX_URL=...
# Auth (GitHub)
AUTH_GITHUB_ID=...
AUTH_GITHUB_SECRET=...
# AI Models
OPENAI_API_KEY=...
ANTHROPIC_API_KEY=...
# Dodo Payments
DODO_PAYMENTS_API_KEY=...
DODO_WEBHOOK_SECRET=...We use Vitest to run our core utility and LLM testing functions.
pnpm test