PLOON
Path-Level Object Oriented Notation
The Most Token-Efficient Format for Nested Hierarchical Data
[products#1](id,name,price,colors#(name,hex))
1:1|1|Shirt|29.99
2:1|Red|#FF0000
2:2|Blue|#0000FFGet Started with PLOON
Install the CLI or use it programmatically in your applications
CLI Tool
npm install -g ploon-cli
ploon data.json --minifyNPM Package
npm install ploon
import {stringify} from 'ploon'Token Efficiency Comparison
Lower is better. PLOON dramatically reduces token consumption for LLM contexts.
Scaling Benefits
| Dataset Size | PLOON Compact | TOON | JSON Compact | Savings |
|---|---|---|---|---|
| 2 products | 1,544 | 2,008 | 3,130 | 50.7% |
| 100 products | 73,770 | 96,490 | 156,500 | 52.9% |
| 1,000 products | 737,070 | 963,070 | 1,565,000 | 52.9% |
| 10,000 products | 7,370,070 | 9,630,070 | 15,650,000 | 52.9% |
| 100,000 products | 73,700,070 | 96,300,070 | 156,500,000 | 52.9% |
PLOON maintains consistent ~53% savings vs JSON by eliminating field name repetition
Format Comparison
See the difference for yourself with real e-commerce data
[products#2](id,name,price,colors#(name,hex,sizes#(size,sku,stock)));;1:1|1|Shirt|29.99;2:1|Red|#FF0000;3:1|S|SH-R-S|50;3:2|M|SH-R-M|30;3:3|L|SH-R-L|20;2:2|Blue|#0000FF;3:1|S|SH-B-S|40;3:2|M|SH-B-M|25;3:3|L|SH-B-L|10;1:2|2|Pants|49.99;2:1|Black|#000000;3:1|30|PT-B-30|15;3:2|32|PT-B-32|20;3:3|34|PT-B-34|12;2:2|Gray|#808080;3:1|30|PT-G-30|18;3:2|32|PT-G-32|22;3:3|34|PT-G-34|14Zero Indentation
Path-based hierarchy eliminates all indentation overhead
Single Schema
Declared once for entire hierarchy, not repeated per level
Query-Friendly
Path notation enables O(1) regex filtering and queries
How PLOON Works
Three simple concepts make PLOON the most efficient format
Dual Path Notation
depth:index for arrays, depth for objects:
1:1 ← Order (array element) 2 ← Customer (object) 3 ← Address (nested object) 2:1 ← Item 1 (array element) 2:2 ← Item 2 (array element)
Explicit relationships with zero indentation overhead
Single Schema Declaration
The entire structure is declared once at the top:
[orders#1](
id,
customer{
name,
address{city,zip}
},
items#(id,name,price)
)No key repetition across records - declared once!
Dual Format Strategy
Two formats for different needs:
Simple conversion: replace newlines with semicolons
PLOON Grammar
Schema Syntax
[root#count](field1,nested#(...),object{...})- •
[ ]- Root container with count - •
( )- Field list - •
,- Field separator - •
#( )- Nested array - •
{ }- Nested object
Data Syntax
Arrays: depth:index | Objects: depth
- •
depth:index- Array path (e.g., 1:1, 2:3) - •
depth- Object path (e.g., 2 , 3 ) - •
|- Field delimiter - •
\n- Record separator (Standard) - •
;- Record separator (Compact) - •
\- Escape character
Real-World Cost Savings
Calculate your savings with PLOON based on your usage
Your Parameters
Monthly Token Usage
Multi-Language Support
PLOON implementations across all major programming languages
Available Now
JavaScript/TypeScript
ploon-js
npm install ploonComing Soon
.NET
Ploon.NET
C++
ploon-cpp
Crystal
ploon-crystal
Dart
ploon
Elixir
ploon
Gleam
ploon
Go
ploon-go
Java
ploon
Lua/Neovim
ploon.nvim
OCaml
ploon
PHP
ploon-php
Python
ploon
Ruby
ploon
Swift
SwiftPloon
Get Started with PLOON
Install the CLI or use it programmatically in your applications
CLI Tool
npm install -g ploon-cli
ploon data.json --minifyNPM Package
npm install ploon
import {stringify} from 'ploon'