Back to Hub
NETWORK ARCHITECTURE • MAY 2026

90% Smaller Payloads via Shared Dictionaries.

When NitroIDE communicates with a remote Language Server or syncs a massive JSON configuration file across a collaborative session, standard HTTP compression algorithms like Gzip or Brotli struggle. These algorithms compress data in isolation, meaning they cannot learn from previous requests. If you request the same massive JSON schema 10 times with minor changes, Brotli compresses it from scratch 10 times.

We shattered this network bottleneck using the experimental Shared Dictionary Compression API. This allows the browser and the server to share a pre-agreed-upon "dictionary" of common strings, shrinking network payloads by up to 90%.

The Dictionary Handshake

When a developer boots NitroIDE, the browser downloads a highly optimized, 500KB binary dictionary containing the most common AST syntax tokens, TypeScript definitions, and React boilerplate. We register this dictionary with the browser's network layer using an HTTP header.

// Registering a shared compression dictionary via HTTP headers
// HTTP Response from the server for the dictionary file:
Use-As-Dictionary: match="/api/ast-sync"

// Future requests to /api/ast-sync will now include:
// Available-Dictionary: <hash-of-the-dictionary>

// The server detects the hash and uses it to compress the JSON
const compressedPayload = brotli.compress(rawJson, {
  dictionary: preLoadedBuffer
});

Delta Compression: Because the Brotli algorithm now has the shared dictionary loaded in memory, it doesn't need to transmit the string "FunctionDeclaration". It just sends a tiny pointer that says "use word #402 from the dictionary." This effectively turns standard HTTP compression into a hyper-efficient delta-sync algorithm.

The Edge Computing Advantage

By distributing these shared dictionaries to edge CDN nodes worldwide, collaborative typing updates that used to require 15KB of JSON overhead are reduced to a few hundred bytes. This is the secret sauce that allows NitroIDE to synchronize massive projects over 3G cellular connections flawlessly.

Feel the Network Speed.

Throttle your network to 3G in DevTools and watch our engine keep up effortlessly.

Launch Collaborative IDE