Sutr-dev999/bytepack-js
Fixed-size binary encoding for AI agents (JavaScript). 20x more compact than JSON.
Platform-specific configuration:
{
"mcpServers": {
"bytepack-js": {
"command": "npx",
"args": [
"-y",
"bytepack-js"
]
}
}
}Add the config above to .claude/settings.json under the mcpServers key.
Fixed-size binary encoding for AI agent communication. 20x more compact than JSON.
[](https://www.npmjs.com/package/bytepack-encode) [](https://opensource.org/licenses/MIT)
npm install bytepack-encodeconst { 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);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.
url — Override service URL (default: BYTEPACK_URL env or https://sutr.lol)timeout — Request timeout in ms (default: 10000)| Metric | JSON | bytepack | |--------|------|----------| | Size | 5,000-50,000 bytes | 2,556 bytes | | Fixed size? | No | Yes | | Transport | Text | Any |
MIT
Loading reviews...