How saintpepsi/openjam works
OpenJam is a local-first Chrome extension for recording a bug reproduction and exporting it as an offline HTML report. The user starts and stops a recording from the popup; the background worker selects CDP or reduced page-probe capture, gathers timeline events and session replay, then opens the report viewer or exports a self-contained file. The viewer supports replay, filtering/search, screenshots, device details, and opt-in narration. The README documents these capabilities; unsampled source limits the precise wiring shown for popup, audio, and report handoff.
Main entry points: background.js Capture coordinator · cdp.js CDP capture lane · inject.js Inject capture lane · page-probe.js Page probe
Components 23
Capture
- Extension popup
popup.js - Popup UI
openjam-popup.js - Capture coordinator
background.js - CDP capture lane
src/lanes/cdp.js - Inject capture lane
src/lanes/inject.js - Page probe
src/page-probe.js - Fetch/XHR capture
src/page-probe/network.js - Console serialization
src/page-probe/serialize.js - Device snapshot
src/device-info.js - Capture limits
src/capture-limits.js
Recording
- Event schema
event-kinds.js - Session recorder
src/rrweb-recorder.js - Page relay
src/rrweb-relay.js - World messaging
src/wire.js
Report generation
- HTML report builder
report-builder.js - AI report manifest
manifest.js
Report viewing
- Report viewer
viewer.js - Timeline and replay UI
renderer.js
Audio narration
- Mic capture
offscreen.js - Narration playback
audio-sync.js
Other components
- User
- Chromium browser
- Chrome extension APIs
Connections 28
- User → Extension popup: starts recording
README.md - Extension popup → Popup UI: renders controls
- Extension popup → Capture coordinator: requests capture
README.md - Capture coordinator → CDP capture lane: selects lane
background.js - Capture coordinator → Inject capture lane: selects lane
background.js - Inject capture lane → Page probe: injects probe
src/lanes/inject.js - Page probe → Fetch/XHR capture: captures requests
src/page-probe.js - Page probe → Console serialization: formats console
src/page-probe.js - CDP capture lane → Capture limits: checks bodies
src/lanes/cdp.js - Fetch/XHR capture → Capture limits: checks bodies
src/page-probe/network.js - CDP capture lane → Device snapshot: collects snapshot
src/lanes/cdp.js - Capture coordinator → Event schema: emits event kinds
background.js - CDP capture lane → Event schema: normalizes events
src/lanes/cdp.js - Inject capture lane → Event schema: normalizes events
src/lanes/inject.js - Session recorder → World messaging: posts batches
src/rrweb-recorder.js - Page relay → World messaging: shares message tags
src/rrweb-relay.js - Page probe → World messaging: uses message tags
src/page-probe.js - Capture coordinator → HTML report builder: builds report
README.md - HTML report builder → AI report manifest: builds manifest
report-builder.js - HTML report builder → Timeline and replay UI: embeds renderer
report-builder.js - User → Mic capture: opts into narration
- Capture coordinator → Mic capture: coordinates narration
- Report viewer → Timeline and replay UI: renders report
viewer.js - Report viewer → HTML report builder: exports HTML
viewer.js - Timeline and replay UI → Narration playback: plays narration
- Capture coordinator → Chrome extension APIs: uses extension APIs
- CDP capture lane → Chrome extension APIs: uses debugger
README.md - Inject capture lane → Chrome extension APIs: captures screenshots
src/lanes/inject.js