π¦
Bytepack Js
Fixed-size binary encoding for AI agents (JavaScript). 20x more compact than JSON.
0 installs
Trust: 34 β Low
Devtools
Ask AI about Bytepack Js
Powered by Claude Β· Grounded in docs
I know everything about Bytepack Js. Ask me about installation, configuration, usage, or troubleshooting.
0/500
Loading tools...
Reviews
Documentation
bytepack-encode
Fixed-size binary encoding for AI agent communication. 20x more compact than JSON.
Install
npm install bytepack-encode
Usage
const { encode, decode, health } = require('bytepack-encode');
// Encode any structured data β fixed 2,556 bytes
const result = await encode({
action: 'observe',
domain: 'market',
asset: 'BTC',
confidence: 'high',
});
console.log(`${result.s} bytes`); // 2556
// Decode back
const data = await decode(result.b64);
API
encode(data, options?)
Encode structured data into fixed-size binary.
decode(binaryB64, options?)
Decode base64 binary back to structured data.
health(options?)
Check service status.
Options
urlβ Override service URL (default:BYTEPACK_URLenv orhttps://sutr.lol)timeoutβ Request timeout in ms (default: 10000)
Benchmarks
| Metric | JSON | bytepack |
|---|---|---|
| Size | 5,000-50,000 bytes | 2,556 bytes |
| Fixed size? | No | Yes |
| Transport | Text | Any |
License
MIT
