
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@jam.dev/recording-links
Advanced tools
Capture bug reports from your users with the Jam recording links SDK
A TypeScript SDK for loading & initializing Jam Recording Links scripts across browser tabs and windows.
This SDK provides a lightweight interface for coordinating Jam recording sessions across multiple browser contexts. It handles dynamic script loading, cross-tab state synchronization, and recording lifecycle management.
npm install @jam.dev/recording-links
import * as jam from "@jam.dev/recording-links/sdk";
// Initialize the SDK
jam.initialize();
// Load the recorder when needed
const Recorder = await jam.loadRecorder();
Recorder.open("recording-id");
The SDK automatically detects jam-recording
and jam-title
URL parameters and loads the recorder:
// On a page with URL: https://example.com?jam-recording=abc123&jam-title=My%20Recording
jam.initialize(); // Automatically loads recorder and opens recording "abc123"
jam.initialize({
teamId: "team-123,team-456", // Manually provide team ID(s); default: reads `<meta name="jam:team">` from the page
openImmediately: false, // Don't auto-open recorder from URL params
parseJamData: (href) => {
// Custom logic to extract recording data from URL
const url = new URL(href);
return {
recordingId: url.searchParams.get("jam-recording"),
jamTitle: url.searchParams.get("jam-title")
};
},
applyJamData: (data) => {
// Custom logic to apply recording data to URL
const url = new URL(window.location.href);
url.searchParams.set("jam-recording", data.recordingId);
url.searchParams.set("jam-title", data.jamTitle);
return url.href;
}
});
// Listen for SDK events
jam.addEventListener("loaded", (event) => {
console.log(`Script loaded: ${event.detail.name}`); // "capture" or "recorder"
});
initialize(options?)
Initializes the SDK with optional configuration.
Parameters:
options.teamId?: string
- Team ID for recording validationoptions.openImmediately?: boolean
- Whether to auto-open from URL (default: true
)options.parseJamData?: (input: string) => SerializableJamData | null
- Custom URL parseroptions.applyJamData?: (data: SerializableJamData) => string
- Custom URL applieroptions.recorderRefCounter?: RefCounter
- Custom reference counter (advanced)Throws:
loadRecorder(options?)
Loads the Jam recorder module and returns a promise that resolves to the recorder interface.
Parameters:
options.recordingId?: string
- Recording ID to open immediatelyInitializeOptions
Returns:
Promise<RecorderSingleton>
- The Recorder singletonThrows:
addEventListener(type, listener, options?)
Add an event listener for SDK events.
Parameters:
type: "loaded"
- Event typelistener: (event: CustomEvent) => void
- Event handleroptions?: AddEventListenerOptions
- Standard event listener optionsremoveEventListener(type, listener, options?)
Remove an event listener for SDK events.
Recorder
The loaded recorder singleton (null until loadRecorder()
is called).
Methods:
open(recordingId, params?)
- Open recorder for specific recording
recordingId: string
- The recording ID to openparams.jamTitle?: string
- Optional title for the recordingparams.removeOnEscape?: boolean
- Whether to close recorder on Escape (default: true)The SDK exports several TypeScript types:
ScriptName
type ScriptName = "capture" | "recorder";
SerializableJamData
type SerializableJamData = {
recordingId: string | null;
jamTitle: string | null;
};
InitializeOptions
type InitializeOptions = {
teamId?: string;
openImmediately?: boolean;
parseJamData?(input: string): SerializableJamData | null;
applyJamData?(data: SerializableJamData): string;
recorderRefCounter?: RefCounter;
};
RecorderSingleton
type RecorderSingleton = {
open(recordingId: string, params?: {
jamTitle?: string | null;
removeOnEscape?: boolean;
}): unknown;
};
See CONTRIBUTING.md for development setup, build commands, and release process.
FAQs
Capture bug reports from your users with the Jam recording links SDK
The npm package @jam.dev/recording-links receives a total of 266 weekly downloads. As such, @jam.dev/recording-links popularity was classified as not popular.
We found that @jam.dev/recording-links demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.