@lunardinos/recorder
v0.1.2
Published
Core session recording engine for [Lunar Dinos](https://lunardinos.com) — the session replay and product analytics platform for B2B SaaS.
Readme
@lunardinos/recorder
Core session recording engine for Lunar Dinos — the session replay and product analytics platform for B2B SaaS.
This is a low-level package. Most users should install a framework-specific SDK instead:
- TanStack Router —
@lunardinos/recorder-tanstack-router - Next.js —
@lunardinos/recorder-next
Installation
npm install @lunardinos/recorderUsage
import { createRecorder } from "@lunardinos/recorder"
const recorder = createRecorder({
apiKey: "your-api-key",
endpoint: "https://ingest.lunardinos.com", // default
})
recorder.start()
// Identify the current user/account
recorder.identify({
user: { id: "user-123", email: "[email protected]" },
account: { id: "acme", name: "Acme Inc" },
})
// Emit page navigation events
recorder.emitPageEvent({
url: window.location.href,
title: document.title,
routePattern: "/settings/:tab",
params: { tab: "billing" },
})Learn more
Visit lunardinos.com to get started.
