D
Rewind Docs

Overview

Rewind is an open-source intelligence layer for your frontend. It is a self-hosted, privacy-friendly alternative to tools like FullStory or LogRocket, designed to run efficiently on a single low-cost VPS without compromising on modern performance or scale.

The Asymmetric Matrix

Why elite teams are ripping out expensive SaaS tools for Rewind.

Legacy SaaS Bloat

  • Vendor Lock-in
    Your session data is trapped in their database, inaccessible via raw SQL.
  • Compliance Nightmares
    Constant DPA signing and PII masking configuration required to stay legal.
  • Extortionate Pricing
    $100+/mo base fees plus volume-based overages that punish you for growing.

RewindTHE NEW STANDARD

  • 100% Data Ownership
    Data lives in your Postgres instance. Query it, export it, do whatever you want.
  • Instant Compliance
    Since data never leaves your VPC, you are inherently GDPR and SOC2 compliant.
  • Flat Infrastructure Cost
    Runs perfectly on a $6/mo VPS. No seat limits. No volume overages.

Design Philosophy & Architecture

Rewind is built around the idea that telemetry should be lightweight, privacy-conscious, and entirely under your control. By dropping a single lightweight <script> tag onto your website, the Rewind Tracker hooks into the underlying browser APIs to record a continuous stream of DOM mutations, network requests, and console events.

Unlike heavy, proprietary scripts that slow down your main thread, the Rewind Tracker is optimized using an IIFE bundle via esbuild, maintaining a tiny footprint (~12 kB gzipped) while relying on WebSockets for high-throughput, low-latency streaming to the ingestion server.

100%
Data Ownership
< 50MB
RAM Footprint
$6/mo
Base Infra Cost
Zero
Network Latency

Why Choose Rewind?

Traditional session replay tools can cost hundreds or thousands of dollars a month, limiting your ability to retain data or record 100% of your user sessions. Rewind allows you to retain total data ownership while offering a beautiful, "Terminal Brutalist" user experience built on the bleeding edge of the Next.js 15 App Router.

Core Use Cases

  • Customer Support: Never ask "can you reproduce this?" again. Support agents can instantly pull up the user's latest session clip to see the exact sequence of clicks, scrolls, and errors that led to a ticket submission.
  • Engineering & Debugging: Stop wasting hours trying to reproduce complex frontend bugs locally. Rewind provides engineers with the exact sequence of DOM events alongside perfectly synchronized network requests and console stack traces.
  • Product & UX Analytics: Discover hidden friction points. Identify "rage clicks", track where users abandon their carts, and watch the exact sessions of users who dropped off to understand why they left.
  • AI-Powered Insights: Query sessions using natural language. Vercel AI SDK integrations allow you to ask "Show me users who got a payment error" and receive a synthesized summary of their journey.

The Stack

Rewind leverages an aggressive, modern, type-safe tooling environment across a Turborepo monorepo structure:

  • Runtime: Node.js 20 + TypeScript 5 (Strict Mode)
  • Monorepo: Turborepo · pnpm workspaces for deterministic dependency management.
  • Dashboard: Next.js 15 (App Router) · React 19 · Tailwind CSS v4 · Framer Motion for liquid-smooth interactions.
  • Backend Ingestion: Express 4 · ws (WebSockets) · BullMQ · ioredis for distributed task processing.
  • Database layer: PostgreSQL 16 · Drizzle ORM for type-safe schema definitions shared across the entire workspace.
  • Recording Engine: rrweb for exact DOM state reconstruction and rrweb-player customized heavily to match our aesthetic.