AXON

Adaptive eXchange Oriented Notation

A data serialization format built for LLMs. Feed it JSON, XML, or any verbose format. AXON produces compact, typed, validated output that cuts token costs up to 95% while preserving every bit of meaning.

$ npm install @axon-format/core
60–95%
Lower token costs
13
Validated types for data quality
204x
Compression for repeated patterns
342
Tests passing (93% coverage)

See It In Action

Paste JSON or XML and watch AXON compress it in real time.

Conceptual demo - production AXON uses binary encoding for even greater savings

JSON Input
0 tokens
AXON Output
0 tokens
AXON output will appear here...
0% Token Savings
0 tokens saved with AXON

Compression Techniques

Real-World Examples

Two Lines to Ship It

Import, encode, done. AXON works with your existing data structures with no migration required.

Installation
npm install @axon-format/core
basic-usage.ts
import { encode, decode } from '@axon-format/core';

// Your data
const data = {
  users: [
    { name: "Alice", age: 30, active: true },
    { name: "Bob", age: 30, active: true },
    { name: "Carol", age: 30, active: true }
  ]
};

// Encode to AXON (saves 60-95% tokens)
const encoded = encode(data);

// Send to LLM...
const response = await sendToLLM(encoded);

// Decode back to original
const decoded = decode(response);
with-schema.ts
import { encode, decode, type Schema } from '@axon-format/core';

// Define schema as a plain object
const userSchema: Schema = {
  name: 'User',
  fields: [
    { name: 'name', type: 'str' },
    { name: 'age', type: 'u8' },
    { name: 'email', type: 'str' },
    { name: 'verified', type: 'bool' }
  ]
};

// Your data
const userData = {
  name: "Alice",
  age: 30,
  email: "alice@example.com",
  verified: true
};

// Encode with validation
const encoded = encode(userData, { schemas: [userSchema] });

// Type-safe decode
const decoded = decode(encoded, { schemas: [userSchema] });

Multi-Format Input

Accepts JSON, XML, and more data formats

Type Safe

13 validated types with schema support

Battle Tested

93% test coverage, 342 passing tests

Open Source

MIT licensed, community-driven

See What You'll Save

Plug in your numbers. The savings compound fast.

75%

AXON typically achieves 60-95% compression depending on data patterns

With JSON
$125.00
per month
With AXON
$31.25
per month
You Save
$93.75
per month
$1,125 per year

These estimates are conservative. Actual savings may be higher depending on your data patterns.

Built for What Matters

Every feature exists to solve a real problem in LLM data pipelines.

Cut Costs Dramatically

60–95% fewer tokens on every API call. Smaller payloads mean lower bills and more budget for the interactions that matter.

13 Validated Types

u8 through f64, booleans, ISO 8601 dates, UUIDs, and more. Catch malformed data before it reaches your model.

5 Compression Algorithms

RLE, Dictionary, Delta, Bit Packing, and Varint. Automatically selected based on your data, no configuration needed.

6 Encoding Modes

Compact, Nested, Columnar, Stream, Sparse, and JSON. Each mode is optimized for a specific data shape and access pattern.

Battle Tested

342 tests, 93% coverage, zero dependencies. Ship with confidence. AXON won't break your build or bloat your bundle.

MIT Open Source

Free to use, modify, and ship. No vendor lock-in, no license fees, no strings attached. Built by the community, for the community.

Built for Your Stack

LLM API Calls

Encode function calls, structured outputs, and tool-use payloads in a fraction of the tokens. Fits naturally into any OpenAI or Anthropic pipeline.

RAG Pipelines

Pack more retrieved context into your token window. More context means better answers and sharper reasoning from your model.

Multi-Agent Systems

When agents pass structured data between each other, every token counts. AXON keeps inter-agent communication lean and fast.

Conversation Memory

Store more chat history and user context in your token window. Longer conversations with better continuity and stronger recall.

Ready to Dive Deeper?

Type system reference, compression algorithms, schema validation, encoding modes, and real-world examples. All in one place.