@b0xs/recorder
v1.0.15
Published
CLI tool for recording terminal sessions to BOXS platform
Downloads
1,735
Maintainers
Readme
@b0xs/recorder
CLI tool for recording terminal sessions to the BOXS platform.
Installation
npm install -g @b0xs/recorderUsage
First-time Setup
# Authenticate with your API key
boxs login
# Initialize config (optional)
boxs initRecording a Session
# Start recording
boxs record
# Record with a specific title
boxs record --title "My pentesting session"
# Record and run a specific command
boxs record "nmap -sV scanme.nmap.org"Options
--title- Session title--description- Session description--visibility- Session visibility (public, private, unlisted)
Features
- Real-time upload - Chunks uploaded every 60 seconds
- Offline mode - Continue recording without network, auto-upload when reconnected
- Command detection - Automatically detect and mark commands in timeline
- Crash recovery - Resume incomplete sessions after crashes
- Secure auth - API keys stored in OS keychain
Configuration
Config file: ~/.boxs/config.json
{
"apiUrl": "https://boxs.sh",
"defaults": {
"visibility": "private",
"chunkDuration": 60000
},
"recorder": {
"promptPatterns": ["\\\\$\\\\s$", "#\\\\s$"],
"maxBufferedChunks": 10,
"uploadRetries": 5
}
}How It Works
- Captures terminal - Uses PTY to capture all terminal I/O
- Encodes with BoxsBinary - Compresses data using custom binary format
- Uploads chunks - Sends 60-second chunks to BOXS platform
- Detects commands - Marks command execution for timeline
License
MIT
Related Packages
@b0xs/binary- Binary format encoder/decoder@b0xs/termbox- React player component
