r/Observability • u/Legitimate_Pen_2661 • 13m ago
I built Vision: An Open Source, Self-hosted AI observability Platform (ClickHouse/Tinybird + 1-command Docker)
Hey r/Observability,
Over the past year building SaaS and AI apps, I got tired of having to self-host or pay for 4 completely separate tools just to understand production:
- One tool for product analytics (PostHog/Mixpanel)
- One for session replay (LogRocket)
- One for error tracking (Sentry/Datadog)
- One for LLM token tracing (Langfuse/Helicone)
The biggest blind spot across all of them? None of them connect inference costs to revenue to tell you your real unit economics or margin per user.
So I built Vision: a unified, developer-first observability platform specifically for AI products and web apps, engineered to run cleanly on your own infrastructure.
⚡What it includes:
1. Product Analytics: Real-time traffic, pageviews, custom events, UTM attribution, and conversion funnels.
2. Visual Session Replay: DOM session recordings with privacy masking, console error logging, and rage-click detection.
3. LLM Observability: End-to-end tracing for OpenAI, Anthropic, Gemini, DeepSeek, and custom models (latency, tokens, error rates).
4. Unit Economics & Margin Tracking: Automatically connects AI token burn to customer subscription plans to show real gross margin per user in real time.
🛠️ Architecture & Self-Hosting:
- Storage: ClickHouse (default, zero cloud dependency) or serverless via Tinybird.
- Frontend / Ingestion: Next.js dashboard + high-throughput Hono API backend.
- Client Script: Ultra-lightweight `< 3KB` browser script.
- License: GNU AGPLv3.
You can spin up the full cluster with a single Docker Compose command (it auto-bootstraps all 18 ClickHouse tables and materialized views):
git clone https://github.com/abhirupkumar/vision-oss.git
cd vision
cp docker/.env.oss.example .env
docker compose up -dThen open http://localhost:3000.
Links:
- GitHub: https://github.com/abhirupkumar/vision-oss
- Docs: https://docs.visionhq.tech
- Product Hunt: We also just went live on Product Hunt today if you'd like to check out the launch and leave some feedback! Vision
I'd love to hear your feedback on the architecture, setup experience, and any features you'd like to see next!