TensLab is under active internal research & closed beta testing. Intercept raw JSON vector payloads before LLM APIs, stripping syntax bloat into high-density Contex Compact format with zero reasoning loss.
[ { "id": 1, "title": "Login page unresponsive", "priority": "critical", "assignee": "alice" }, { "id": 2, "title": "API rate limiting bug", "priority": "high", "assignee": "bob" } ]
@dict 0:critical 1:alice 2:bob @schema id title priority assignee 1 Login page unresponsive @0 @1 2 API rate limiting bug high @2
Encode the same context in a fraction of the tokens — without losing semantic meaning.
Spend less on every API call. The savings compound across millions of user requests.
WASM-powered Rust encoding runs in microseconds — completely invisible to your end users.
See how much TensLab cuts from your monthly OpenAI, Anthropic, and Gemini API bills.
TensLab's TENS format strips AI context down to its semantic core — giving models exactly what they need, nothing more.
Binary token-level compression that preserves semantic fidelity while slashing byte overhead by up to 10×.
Intelligent context management that selects, prioritizes, and deduplicates information before it reaches the model.
Works transparently with OpenAI, Anthropic, and Gemini APIs. One line of code change. Immediate savings.
Deduplicates repeated context across multi-turn sessions, cutting redundant tokens on every turn.
Real-time dashboards showing exactly how much you're saving per model, per endpoint, per day.
All compression runs locally inside your process via WASM. Your prompts never leave your environment.
TensLab converts verbose JSON payloads into TENS Compact Text Format before sending to LLM APIs — stripping structural syntax noise to slash token spend by 80% while retaining 100% semantic fidelity.
One import. Same API surface. Immediate token savings — no refactoring required.
@tens-lab/middleware to any Node.js or Python project.// Before ───────────────────────────── import OpenAI from 'openai' const client = new OpenAI() // After ────────────────────────────── import createClient from '@tens-lab/middleware' const client = createClient({ provider: 'openai', apiKey: process.env.OPENAI_API_KEY, compress: true }) // Identical API. 80% fewer tokens. ── const res = await client.chat.completions.create({ model: 'gpt-4o', messages })
Works with every major AI provider & framework
TENS is a high-density text format built with WebAssembly (`@tens-lab/core`). It strips redundant JSON keys, structural quotes, and syntax whitespace into compact schemas, encoding prompts with up to 80% fewer tokens in under 1ms.
No. TensLab compression runs 100% locally inside your Node.js or browser process via WASM (`@tens-lab/wasm`). Your raw prompts never touch any external TensLab servers.
TensLab middleware (`@tens-lab/middleware`) supports OpenAI, Anthropic Claude, Google Gemini, LangChain, LlamaIndex, and Vercel AI SDK out of the box with zero model retraining.
No. TENS protocol is 100% semantic lossless. Our needle-in-a-haystack passkey benchmarks confirm identical reasoning performance across 8K, 32K, and 128K token contexts.
Join the waitlist. Be first to experience token intelligence at scale.
No spam. Unsubscribe anytime.