
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@web-reel/recorder
Advanced tools
Lightweight session recording SDK based on rrweb
npm install @web-reel/recorder
That's it! rrweb and idb will be automatically installed as dependencies.
import { WebReelRecorder } from '@web-reel/recorder';
const recorder = new WebReelRecorder({
env: 'test',
appId: 1,
projectName: 'my-app',
deviceId: 'user-123',
});
// Export session data as ZIP file (default, smaller size)
await recorder.exportLog();
// Or export as JSON
await recorder.exportLog(true, 'json');
import { WebReelRecorder } from '@web-reel/recorder';
const recorder = new WebReelRecorder({
env: 'test',
appId: 1,
projectName: 'my-app',
deviceId: 'user-123',
// Upload configuration
uploadEndpoint: '/api/sessions',
platform: 'web',
jiraId: 'ISSUE-123',
});
// Upload session directly to server
await recorder.uploadLog();
When uploadEndpoint is configured, the floating button will automatically switch to upload mode with an upload icon.
// Import session data from file
const fileInput = document.querySelector('input[type="file"]');
fileInput.addEventListener('change', async (e) => {
const file = e.target.files[0];
await recorder.importLog(file);
});
See docs/usage.md for complete documentation.
| Option | Type | Required | Description |
|---|---|---|---|
env | 'test' | 'online' | Yes | Environment identifier |
appId | number | Yes | Application ID |
projectName | string | Yes | Unique project identifier |
deviceId | string | No | Device identifier |
disabledDownLoad | boolean | No | Hide the floating button (default: false) |
recordInterval | number | No | Log retention in days (default: 2) |
enableStats | boolean | No | Enable statistics upload (default: false) |
uploadEndpoint | string | No | API endpoint for upload (e.g. '/api/sessions') |
uploadHeaders | Record<string, string> | No | Custom headers for upload requests |
platform | string | No | Platform identifier for metadata (e.g. 'web', 'mobile') |
jiraId | string | No | Jira ticket ID for metadata |
The recorder can upload sessions directly to your server. Your server should implement the following endpoint:
POST /api/sessions
Request format: multipart/form-data
| Field | Type | Required | Description |
|---|---|---|---|
file | File | Yes | ZIP file containing session data |
platform | String | No | Platform identifier |
device_id | String | No | Device identifier |
jira_id | String | No | Jira ticket ID |
Response format:
{
"success": true,
"session": {
"id": 123,
"created_at": "2024-01-15T10:30:00.000Z"
}
}
See the main project documentation for complete API specification.
MIT
FAQs
Lightweight session recording SDK based on rrweb
We found that @web-reel/recorder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.