Getting Started
Everything you need to install, configure, and embed FeedbackLoop AI on your site.
What is FeedbackLoop AI?
FeedbackLoop AI is an open-source, self-hosted platform that combines session replay, AI-qualified feedback, and console/network capture into a single embed. When a user reports a bug or requests a feature, the AI automatically asks follow-up questions, categorizes the feedback, runs deep root-cause analysis, and can trigger your CI/CD pipeline to implement and deploy a fix — all without human intervention. Think of it as a self-hosted Hotjar alternative with an AI brain and an autonomous deployment pipeline.
Architecture Overview
FeedbackLoop AI consists of five main components that work together:
API Server
Fastify + Prisma + PostgreSQL
Worker
Puppeteer + FFmpeg for MP4 renders
Tracker
rrweb-based session recording
Widget
Vanilla JS, closed Shadow DOM
Dashboard
Vanilla JS SPA with rrweb-player
The API server is the central hub. It handles tracker event ingestion, widget chat sessions, AI qualification via OpenRouter, webhook dispatch for CI/CD, and serves the dashboard. PostgreSQL stores all structured data (sessions, feedback, tenants, AI usage), Redis powers the render job queue, and MinIO stores rendered MP4 session replays.
The Tracker is a lightweight JavaScript snippet (built on rrweb) that records DOM mutations, clicks, scrolls, console errors, and network failures. It ships data to the API in real time.
The Widget is the user-facing feedback interface — a chat bubble that opens into an AI-powered conversation. It runs inside a closed Shadow DOM to avoid CSS conflicts with your site.
Prerequisites
- Node.js 18+ (the install script will install it if missing)
- PostgreSQL 14+ (installed automatically by the install script)
- Docker & Docker Compose (for Redis and MinIO containers)
- 2 GB RAM minimum (4 GB recommended for AI + render worker)
- 20 GB disk (session data and MP4 renders grow over time)
If you are deploying to a VPS (Hetzner, DigitalOcean, OVH, etc.), the automated install script handles all prerequisites for Ubuntu/Debian systems. You only need SSH access.
Quick Start
The fastest way to get FeedbackLoop AI running is with the automated installer:
-
Clone the repository
bash
git clone https://github.com/QuentinAdt/FeedbackLoopAIOSS.git cd FeedbackLoopAIOSS -
Run the install script
bash
sudo bash install.shThis installs Node.js, PostgreSQL, Docker, Redis, MinIO, Caddy (reverse proxy), PM2, and configures everything automatically.
-
Open the setup wizard
Once the install script completes, open your browser and navigate to
https://your-domain.com/setup. The wizard walks you through:- Verifying the setup token
- Creating your admin account
- Configuring API keys (OpenRouter for AI)
- Setting your public domain
- Creating your first tenant
-
Embed the widget
Copy the embed snippet from the setup wizard and paste it into your site's HTML, just before the closing
</body>tag:html<script src="https://your-domain.com/unified/feedbackloop.js" data-api-key="your-api-key" data-api-secret="your-api-secret"></script>
Once the widget is embedded, session replay starts recording automatically. When a user opens the widget and submits feedback, the AI qualifies it in real time, runs deep analysis, and (if configured) creates a Linear issue and triggers your CI/CD pipeline.
Next Steps
- Installation Guide — Detailed install instructions, Docker deployment, hardware requirements, and troubleshooting.
- Configuration Reference — All environment variables, tenant settings, privacy controls, and webhook configuration.
- WordPress Integration — Install the WordPress plugin for automatic widget injection and post improvement suggestions.