{"id":44820306,"url":"https://github.com/zoon-format/zoon","last_synced_at":"2026-02-16T19:54:09.393Z","repository":{"id":330892686,"uuid":"1124334692","full_name":"zoon-format/zoon","owner":"zoon-format","description":"ZOON - Zero Overhead Object Notation, token-optimized data format to maximize LLM context window efficiency.","archived":false,"fork":false,"pushed_at":"2025-12-29T05:46:50.000Z","size":30130,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-31T13:39:05.156Z","etag":null,"topics":["ai","format","json","llm","notation","optimization","token","toon","zon","zoon"],"latest_commit_sha":null,"homepage":"https://zoonformat.org","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoon-format.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-28T20:37:16.000Z","updated_at":"2025-12-29T05:20:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/zoon-format/zoon","commit_stats":null,"previous_names":["zoon-format/zoon"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/zoon-format/zoon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoon-format%2Fzoon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoon-format%2Fzoon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoon-format%2Fzoon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoon-format%2Fzoon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoon-format","download_url":"https://codeload.github.com/zoon-format/zoon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoon-format%2Fzoon/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29510711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T09:05:14.864Z","status":"ssl_error","status_checked_at":"2026-02-16T08:55:59.364Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","format","json","llm","notation","optimization","token","toon","zon","zoon"],"created_at":"2026-02-16T19:54:08.853Z","updated_at":"2026-02-16T19:54:09.384Z","avatar_url":"https://github.com/zoon-format.png","language":"TypeScript","readme":"# Zero Overhead Object Notation (ZOON)\n\n[![ZOON Version](https://img.shields.io/badge/SPEC-v1.0.3-blueviolet)](./SPEC.md) ![License](https://img.shields.io/badge/License-MIT-green)\n\n**Zero Overhead Object Notation (ZOON)** is a token-optimized data format designed to maximize **LLM Context Window efficiency**. It removes all redundancy from your data, achieving token compression rates superior to JSON, TOON, ZON, and CSV. Written by Carsen Klock.\n\n![ZOON Logo](zoon.svg)\n\n## Why ZOON?\n\nLLM Context Tokens cost money. Standard JSON is verbose. ZOON is **optimal**.\n\n### Token Benchmarks (GPT-5 Tokenizer)\n\n| Format   |    Tokens | Savings vs JSON |\n| :------- | --------: | --------------: |\n| **ZOON** | **6,274** |         **60%** |\n| ZON      |     7,840 |             50% |\n| TOON     |     8,630 |             45% |\n| JSON     |    15,685 |               — |\n\n### Key Features\n\n| Feature               | Description                                                |\n| --------------------- | ---------------------------------------------------------- |\n| **Indexed Enums**     | `field!opt1\\|opt2` uses numeric indices for compact output |\n| **Header Aliasing**   | `%a=long.prefix` reduces nested redundancy                 |\n| **Constant Hoisting** | `@field=value` moves repeated values to header             |\n| **Auto-Increment**    | `i+` type or `+N` count for implicit rows                  |\n| **Boolean Shorthand** | `1`/`0` (tabular) or `y`/`n` (inline)                      |\n| **Space Delimiters**  | More token-efficient than commas or pipes                  |\n| **Dual Format**       | Tabular (arrays) and Inline (objects)                      |\n\n### ZOON vs TOON\n\n| Feature        | TOON                | ZOON                       |\n| -------------- | ------------------- | -------------------------- |\n| Delimiter      | Pipes `\\|` / Commas | Spaces                     |\n| Nested Data    | ❌ Flattened only   | ✅ Aliasing \u0026 Unflattening |\n| Auto-increment | ❌ Must include IDs | ✅ `i+` or `+N`            |\n| Single objects | ❌ Arrays only      | ✅ Inline `{...}`          |\n| Type Safety    | ❌ None             | ✅ Header validated        |\n\n## Installation\n\n```bash\nbun add @zoon-format/zoon\n```\n\n### CLI\n\n```bash\nnpm install -g @zoon-format/cli\nzoon input.json -o output.zoon --stats\n```\n\n## Quick Start\n\n```typescript\nimport { encode, decode } from \"@zoon-format/zoon\";\n\n// Arrays → Tabular format\nconst users = [\n  { id: 1, role: \"Admin\", active: true },\n  { id: 2, role: \"User\", active: true },\n  { id: 3, role: \"User\", active: false },\n];\n\nconsole.log(encode(users));\n// # id:i+ role=Admin|User active:b\n// Admin 1\n// User 1\n// User 0\n\n// Objects → Inline format\nconst config = {\n  server: { host: \"localhost\", port: 3000, ssl: true },\n  features: { darkMode: true, analytics: false },\n};\n\nconsole.log(encode(config));\n// server:{host=localhost port:3000 ssl:y} features:{darkMode:y analytics:n}\n```\n\n## Format Overview\n\n### Tabular Format (Arrays)\n\n```\n# id:i+ name:s role=Admin|User active:b\nAlice Admin 1\nBob User 1\nCarol User 0\n```\n\n**Types:**\n| Code | Type | Description |\n|------|------|-------------|\n| `s` | String | Spaces → `_` |\n| `i` | Integer | Whole numbers |\n| `b` | Boolean | `1`/`0` |\n| `i+` | Auto-Increment | Omitted from body |\n| `a` | Array | `[a,b,c]` |\n\n**Compression:**\n| Marker | Meaning |\n|--------|---------|\n| `\"` | Same as row above |\n| `\u003e` | Previous + 1 |\n| `~` | Null |\n\n### Inline Format (Objects)\n\n```\nserver:{host=localhost port:3000 ssl:y} db:{driver=postgres port:5432}\n```\n\n| Pattern           | Type          |\n| ----------------- | ------------- |\n| `key=val`         | String        |\n| `key:123`         | Number        |\n| `key:y` / `key:n` | Boolean       |\n| `key:~`           | Null          |\n| `key:{...}`       | Nested Object |\n| `key:[a,b]`       | Array         |\n\n## CLI Usage\n\n```bash\n# Encode JSON to ZOON\nzoon input.json -o output.zoon\n\n# Decode ZOON to JSON\nzoon data.zoon -o output.json\n\n# Show token savings\nzoon data.json --stats\n```\n\n## Packages\n\n| Package             | Description                | Link                                               |\n| ------------------- | -------------------------- | -------------------------------------------------- |\n| `@zoon-format/zoon` | Core encode/decode library | [npm](https://npmjs.com/package/@zoon-format/zoon) |\n| `@zoon-format/cli`  | Command-line interface     | [npm](https://npmjs.com/package/@zoon-format/cli)  |\n| `zoon-format`       | Python bindings            | [PyPI](https://pypi.org/project/zoon-format/)      |\n| `zoon-go`           | Go module                  | [GitHub](https://github.com/zoon-format/zoon-go)   |\n| `zoon-format`       | Rust Crate                 | [crates.io](https://crates.io/crates/zoon-format)  |\n\n## Links\n\n- [Full Specification](./SPEC.md)\n- [Playground](https://zoonformat.org)\n\n## License\n\nMIT © 2025-PRESENT Carsen Klock\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoon-format%2Fzoon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoon-format%2Fzoon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoon-format%2Fzoon/lists"}