Back to projects
PROJECT SPECIFICATION
Mercatus
Next.jsTypeScriptPrismaPostgreSQLpgvectorOllamaSearXNGDocker

Overview & Architecture
Autonomous zero-cost market research agent SaaS running completely on local AI models without third-party API dependencies.
Key Capabilities:
• Autonomous Agent Pipeline: Plan → Search (SearXNG) → Read (Readability) → Ingest & Embed (pgvector + nomic-embed-text) → Synthesize Report.
• Data Synthesis: Algorithmic competitor clustering, pricing benchmarks, TAM/SAM/SOM financial sanity validation, and weighted go/no-go scorecards.
• Monetization & Quotas: Lemon Squeezy subscription billing with append-only usage ledgers, monthly quota resets, and Better Auth authentication.
• Local Inference: Zero-cost operation powered by host Ollama running Gemma 3 models, eliminating external API usage costs.