How trunkrecorder/trunk-recorder-pro works
Trunk Recorder Pro is a radio-call recorder with a built-in browser interface and a browser-only runtime. The documented workflow is to configure radios and systems, receive and decode control/voice channels, record calls and metadata, then expose or send recordings through the interface and plugins. The graph includes the protocol-specific decoding, storage, access, and plugin branches, plus the browser UI and its WebAssembly recorder. Some source was only sampled; edges without direct excerpt evidence rely on README workflow statements.
Main entry points: runtime.rs Runtime · mod.rs SDR sources · session.rs Recording session · App.tsx Browser dashboard
Components 25
Configuration and control
- Recorder config
crates/trunk-app/src/config.rs - Runtime
crates/trunk-pro/src/runtime.rs
Radio and decoding
- SDR sources
crates/trunk-pro/src/radio/mod.rs - Airspy driver
crates/libairspy-rs/src/stream.rs - RTL-SDR driver
crates/rtlsdr-nusb/src/session.rs - Signal and call engine
crates/trunk-core/src/trunk/engine.rs - Call tracking
crates/trunk-core/src/trunk/calls.rs - Trunking messages
crates/trunk-core/src/trunk/message.rs
Recording and storage
- Recording session
crates/trunk-app/src/session.rs - Session protocol
crates/trunk-app/src/protocol.rs - Call index
crates/trunk-pro/src/db/store.rs
Service and integrations
- Upload and stream plugins
crates/trunk-pro/src/plugins/mod.rs - HTTP and WebSocket server
crates/trunk-pro/src/server.rs - Access control
crates/trunk-pro/src/access.rs - Passkey sign-in
crates/trunk-pro/src/access/passkey.rs - Clock monitoring
crates/trunk-pro/src/clock.rs - Radio and decode tools
crates/trunk-pro/src/toolkit.rs
User interfaces
- Browser dashboard
web/src/App.tsx - UI state and actions
web/src/controller.ts - Web configuration
web/src/config.ts - Web message types
web/src/protocol.ts - Web recording rules
web/src/rules.ts - Browser recorder
web/src/web/engine.worker.ts - Browser call storage
web/src/web/opfs.ts
Other components
- Operator
Connections 29
- Operator → Browser dashboard: configures and starts
README.md - Browser dashboard → UI state and actions: dispatches actions
web/src/App.tsx - UI state and actions → HTTP and WebSocket server: sends commands
- UI state and actions → Web message types: uses message types
web/src/controller.ts - Browser dashboard → Web configuration: reads configuration
web/src/App.tsx - Web configuration → Web recording rules: uses rule definitions
web/src/config.ts - Operator → Recorder config: sets up radios and systems
README.md - Recorder config → Runtime: configures runtime
- Runtime → SDR sources: opens radio sources
- SDR sources → Airspy driver: uses Airspy driver
- SDR sources → RTL-SDR driver: uses RTL-SDR driver
- SDR sources → Signal and call engine: supplies IQ samples
- Signal and call engine → Trunking messages: parses control traffic
crates/trunk-core/src/trunk/engine.rs - Signal and call engine → Call tracking: tracks calls
crates/trunk-core/src/trunk/engine.rs - Trunking messages → Call tracking: reports call events
crates/trunk-core/src/trunk/message.rs - Runtime → Recording session: runs recording session
- Recording session → Signal and call engine: feeds radio samples
crates/trunk-app/src/session.rs - Recording session → Session protocol: emits session outputs
crates/trunk-app/src/session.rs - Recording session → Call index: records call index
- Runtime → Upload and stream plugins: hosts plugins
- Upload and stream plugins → Operator: uploads or streams calls
README.md - Runtime → HTTP and WebSocket server: serves interface
crates/trunk-pro/src/server.rs - HTTP and WebSocket server → Access control: checks access
crates/trunk-pro/src/server.rs - HTTP and WebSocket server → Passkey sign-in: routes passkey requests
crates/trunk-pro/src/server.rs - Runtime → Clock monitoring: monitors clock
- Operator → Radio and decode tools: runs diagnostic tools
- Browser recorder → Browser call storage: saves recorded calls
web/src/web/engine.worker.ts - Browser recorder → Web message types: speaks shared protocol
web/src/web/engine.worker.ts - Browser dashboard → Browser recorder: controls browser recorder