---
title: "XRON — open source"
description: "An open-source, lossless data serialization format built in TypeScript that cuts JSON LLM token consumption by up to 80%."
canonical: "https://gordongeraghty.com/work/xron"
type: "work"
---



# XRON — open source

**Gordon Geraghty** — XRON — open source, Empire Amplify. An open-source, lossless data serialization format built in TypeScript that cuts JSON LLM token consumption by up to 80%. Result: Up to 80% fewer LLM tokens.

**Empire Amplify · marketing**

## Results — XRON — open source

Up to 80% fewer LLM tokens

XRON is a lossless data serialisation format that reduces JSON LLM token consumption by up to 80 per cent. It's open source and written entirely in TypeScript.

### The problem

JSON was designed for parsers and people, not per-token pricing. Every repeated key, brace, and quote mark costs tokens that carry zero new information for the model. In agent systems that pass structured data through a model many times per task, that overhead compounds into real cost and exhausted context windows.

### The format

XRON keeps every byte of information--lossless is the operative word--while stripping the redundancy. It's lightweight and fast, built to optimise context-window usage and slash GPT and Claude costs for agents operating over long conversations.

The repository is public on GitHub. For anyone running multi-step LLM workflows over structured data, the maths is simple: the exact same information, at a fraction of the token cost.

## FAQ

### Where can I find and install XRON?

The XRON format is open source and published on NPM. You can install it via npm i xron-format. The source code is available at https://github.com/gordongeraghty/XRON.

### Is XRON lossless?

Yes, XRON is built to be lossless. The format accurately serializes and deserializes data structures while reducing LLM token cost.

**Tags:** TypeScript, Open source, LLM

[External link](https://github.com/gordongeraghty/XRON)
