Introduction

Welcome to Realanalytics documentation

Realanalytics is a codebase-native analytics platform. Define your dashboards in TypeScript, deploy them with your app, and get granular analytics without leaving your IDE.

Why Realanalytics?

  • Codebase-native - Your analytics config lives in your repo, version-controlled and type-safe
  • AI-friendly - Tell your AI what to track, it generates the config
  • Deploy like Convex - Push your config, dashboards update instantly
  • Lightweight SDK - Under 5KB with full autocapture

Quick Example

Install the SDK:

npm install @realanalytics/sdk

Define a dashboard:

import { defineDashboard } from '@realanalytics/sdk'

export const dashboard = defineDashboard({
  id: 'overview',
  title: 'Product Analytics',
  widgets: [
    { type: 'metric', event: '$pageview', label: 'Visitors' },
    { type: 'timeSeries', event: 'signup', title: 'Signups' },
    { type: 'funnel', steps: ['visit', 'signup', 'purchase'] }
  ]
})

That's it. Deploy your app and your dashboard is live.

Next Steps