Skip to content

rrweb-cloud/rrwebcloud-example-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rrwebCloud Example Project

This is a simple example project demonstrating how to integrate the @rrwebcloud/js-client into a Vite application.

Prerequisites

  • Bun (v1.0.0 or higher recommended)

Getting Started

  1. Install dependencies:

    bun install

    Note: This project uses resolutions in package.json to manage specific versions of @rrweb packages required by the alpha client.

  2. Start the development server:

    bun run dev
  3. Open the application:

    Navigate to http://localhost:5173 (or the URL shown in your terminal).

Features

  • rrwebCloud Integration: Demonstrates how to import and configure the rrwebCloud client.
  • Recording: Automatically starts recording when the page loads.
  • Console Output: Logs the recording ID and retrieval URL to the browser console.

Configuration

The rrwebCloud configuration can be found in src/rrwebcloud-init.js. It includes examples of:

  • IMPORTANT: You must add your publicAPIKey in this file.
  • Setting a custom serverUrl
  • Configuring blockSelector
  • Managing captureAssets settings
  • Adding custom metadata (user ID, session ID, etc.)

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published