What you stop building
// Typical DIY — 30–60 lines per service
const compressed = zlib.brotliCompressSync(data, opts);
const iv = crypto.randomBytes(12);
const cipher = crypto.createCipheriv('aes-256-gcm', key, iv);
const encrypted = Buffer.concat([
cipher.update(compressed), cipher.final()
]);
const tag = cipher.getAuthTag();
// + wire format, streams, decrypt path…
const stickcode = require('stickcode');
await stickcode.initFromFile(); // *.lic in project
const packed = stickcode.encrypt(data, { quality: 6 });
const restored = stickcode.decrypt(packed);
Text data compresses strongly · Binary/video encrypts with minimal overhead
Ship in minutes
Install
Prebuilt native binaries — no compiler needed. Updates: npm update stickcode (guide).
Activate license
One-time online activation per machine. Key derived via HKDF — never hard-coded.
Encrypt
→ report.json.scnp
CLI or programmatic API — same pipeline.
Programmatic API
await stickcode.initFromFile();
const packed = stickcode.encrypt(input, { quality: 6 });
// Large files — constant memory
await stickcode.pipeEncrypt(
fs.createReadStream('backup.sql'),
fs.createWriteStream('backup.sql.scnp')
);
Command line
# Encrypt any file → .scnp
node node_modules/stickcode/stick.js enc report.json
# Decrypt (auto-detects format)
node node_modules/stickcode/stick.js dec report.json.scnp
# JSON, SQL, logs, MP4, SQLite…
One native pipeline
C++ · Brotli · AES-256-GCM · N-API
Built-in version support
No guesswork on decrypt. The engine reads format metadata from the binary itself.
Encrypt → always latest
Every encrypt() writes wire version 0x05. You only choose Brotli quality (default 6).
Decrypt → auto-detect
Reads version byte (0x05/0x00) and Brotli level from the payload. No quality param needed.
Upgrade SDK safely
6.x .scnp archives open after npm upgrade — no re-encryption required.
Wire layouts, CLI auto-detect, legacy format notes: full versioning guide →
Why teams choose StickCode
One call
Compress + encrypt + frame — no glue between modules.
Stream 100MB+
Constant RAM. No OOM on backups or dumps.
Tamper-proof
Modified data fails decrypt — catch corruption early.
Version-aware decrypt
Reads wire version byte + Brotli level from the payload. Upgrade SDK without re-encrypting 6.x archives. How it works →
Native C++
Predictable speed — not hot-path JavaScript.
Brotli ratios
Comparable compression on text — plus encryption.
Real workloads
StickCode = compress + encrypt. Brotli/Gzip = compress only. Compare what you actually ship.
Small payloads may be slower than raw Brotli — you get authenticated encryption in the same call. Large files and full pipelines are where StickCode saves the most engineering time.
| Workload | Size | StickCode | Brotli | Gzip |
|---|---|---|---|---|
| JSON API | 1.5 MB | 75ms | 37ms | 27ms |
| Server logs | 1.6 MB | 23ms | 24ms | 20ms |
| Enterprise logs | 152 MB | 5.3s | 6.1s | 3.8s |
| Mixed payload | 30 MB | 409ms | 491ms | 1.1s |
| DB / JSON dump | 254 MB | 6.8s | 6.2s | 8.6s |
Q4 · Node.js v22 · macOS · May 2026 · StickCode includes encryption
Payload encryption
~70–80ms on 1.5 MB JSON. One call replaces compress → encrypt → validate.
stickcode.encrypt(data, { quality: 6 })
100–300 MB files
254 MB stress test: 5 rounds, all STABLE. No memory spikes.
pipeEncrypt(source, dest)
SQL & log archives
152 MB logs: 5.3s with auth built in. Output as .scnp.
stick.js enc backup.sql
Edge cases & notes
- JPEG, MP4, ZIP — encrypt with minimal size change.
- High-entropy data — secure wrap, little compression gain.
- Full raw benchmark report available on request.
Built on proven standards
Live Engine Demo
Paste JSON, logs, or text — see real compression + encryption.
Select Your License
Tried the demo? Choose a plan — includes npm package + signed .lic file.
Evaluation
30-day trial license
Create an account, sign in, and submit a trial request from your account page.
Individual
- • 1 Dedicated Machine
- • RSA-2048 Signed License
- • 1 Commercial Product
- • Standard Support
Small Business
Single key · 10 devices
- • Dynamic License Tracking
- • Up to 10 Machine IDs
- • Feature Flagging
- • Priority Support
Enterprise
- • Unlimited License Nodes
- • Custom Features
- • 24/7 Support & SLAs
- • Integration Docs
Terms apply · All sales final.