The Requestly Decompressor is a tool designed for compressing, decompressing, and processing Requestly session files. This project helps convert compressed session files into easily readable JSON formats, facilitating analysis and further processing.
- Compression and decompression of events within Requestly sessions.
- Export sessions to well-structured JSON.
- User-friendly CLI operation and easy integration into existing Node.js projects.
- Configurable with custom-defined source and target directories.
- Optional detailed CLI output (
--verbose). - Exclude RRWEB data from exported JSON outputs (
--unset-rrweb). - Exclude network activity data from exported JSON outputs (
--unset-network).
Ensure your system meets the following prerequisites:
- Node.js (Version 18.x or higher recommended)
- npm (pre-installed with Node.js)
Would you like to use the tool globally, system-wide?
npm install -g @time-to-dev/requestly-decompressor .npx requestly-decompressorThe CLI provides the following options:
requestly-decompressornpx requestly-decompressorBy default, the following directories are used:
- Input directory (
input):./source - Output directory (
output):./outputwill be automatically created if it does not exist.
If you want to set custom paths:
npx requestly-decompressor --source ./my-files --output ./my-resultsTo get additional details during processing:
npx requestly-decompressor --verboseUse the tool directly within your Node.js code as a module:
import { processFiles } from 'requestly-decompressor';
// Default directories (./source as input and ./output as output)
processFiles();
// Or with custom paths and verbose logging:
processFiles('./my-input-folder', './my-output-folder', true);Responsible for efficient compression and decompression of events within session files.
Handles structured generation and export of session data into JSON format with metadata and events.
The central workflow for reading, processing, and writing session files.
A comfortable command line interface (CLI) for easy management and configuration of all available features.
| Option | Description | Default |
|---|---|---|
-s, --source <path> |
Path to source directory | ./source |
-o, --output <path> |
Path to output directory | ./output |
-v, --verbose |
Activate detailed output | false |
-r, --unset-rrweb |
Exclude RRWEB data from the exported JSON file. Use this parameter if you do not need RRWEB recordings in your output. | false |
-n, --unset-network |
Exclude network data from the exported JSON file. Use this parameter if you do not need network activities in your output. | false |
Example Call:
npx requestly-decompressor -s ./input-folder -o ./output-folder -vThe program clearly handles errors with detailed logs when necessary, especially in "verbose mode", quickly pinpointing potential issues.
Found a bug, have questions or suggestions? Please create an issue on the corresponding GitHub Repository, or send a Pull Request with your improvement.
This project is licensed under the MIT-License. See LICENSE for more information.