Isomorphic edge tokenizer + lazy detokenizer for the Codec binary transport protocol. Works in browsers, Node 18+, and edge runtimes.
Optional client-side safety layer for the Codec binary transport — prefilter (secrets / PII / high-entropy detection) and classifier registry. Pairs with @codecai/web; ships zero classifier weights of its own.
Codec-aware browser LLM runtime. Wraps the patched wdunn001/web-llm fork (`stream_format: "raw"`) so a local WebGPU engine emits raw token-ID CodecFrames byte-identically to what vLLM / sglang / llama.cpp produce over HTTP. Host does no tokenize/detokeniz
Generate Codec tokenizer dialect maps from HuggingFace tokenizer.json files. The 'tsc --declaration' for LLM token vocabularies.
Array manipulation, ordering, searching, summarizing, etc.
Web Streams, based on the WHATWG spec reference implementation
JWA, JWS, JWE, JWT, JWK, JWKS for Node.js, Browser, Cloudflare Workers, Deno, Bun, and other Web-interoperable runtimes
AWS credential provider that calls STS assumeRole for temporary AWS credentials
Stringify JS values
Implements the WebIDL algorithms for converting to and from JavaScript values
Provides functions for detecting if the host environment supports the WebCrypto API
Easily measure performance metrics in JavaScript
AWS SDK for JavaScript Secrets Manager Client for Node.js, Browser and React Native
Map of web namespaces
Converts a Web-API readable-stream into a Node.js readable-stream.
A shim for the setImmediate efficient script yielding API
Pick the right Content-Encoding for streaming responses based on client support and payload size. Measured thresholds, framework-agnostic, zero deps. Companion to the @codecai/* client packages.
A native "Headers" class polyfill.
OpenTelemetry Collector Logs Exporter allows user to send collected logs to the OpenTelemetry Collector
OpenTelemetry Collector Metrics Exporter allows user to send collected metrics to the OpenTelemetry Collector
OpenTelemetry Collector Trace Exporter allows user to send collected traces to the OpenTelemetry Collector
A service worker helper library that expires cached responses based on age or maximum number of entries.
WhatWG/W3C compliant EventSource client for Node.js and browsers
This library creates a new Response, given a source Response and a Range header value.