SYNX

A modern, lightweight data format.
Simple for humans. Optimized for AI. Built for logic.

GitHub npm i @aperturesyndicate/synx-format pip install synx-format

Clean & Simple

Just key, space, value. No quotes, no commas, no braces. Indentation creates hierarchy — 2 spaces per level, always.

Active by Design

Add !active to unlock logic — read env variables, compute values with :calc, inherit blocks with :inherit, localize with :i18n. All built into the format itself.

How It Works

Two stages. Parsing is always fast — the engine only runs when you need it.

.synx file
Your config in plain text — key, space, value
→
Parser
Builds key-value tree, records markers as metadata
→
Engine
Resolves :env :calc :i18n …
only if !active
→
JS Object
Plain data — ready to use in your app
Auto engine switching — Node.js
Pure TypeScript < 5 KB zero startup overhead
or
Native Rust (NAPI) ≥ 5 KB compiled speed

Token Efficiency

110-key config, GPT-4 tokenizer. Every token costs money when you're talking to an LLM.

JSON
~3 300 chars ~980 tokens
YAML
~2 500 chars ~760 tokens
SYNX ✦
~2 000 chars ~580 tokens
~40% fewer tokens vs same config as JSON (benchmark)

Try It Live

Write SYNX, see JSON instantly. No server — runs entirely in your browser.

SYNX Input
Output


                    
Examples

What makes SYNX different?

SYNX goes beyond simple key-value storage. Its syntax eliminates quotes and commas in favor of clean space-separated structures, drastically accelerating both creation and parsing. Its flagship !active mode unlocks programmable configs — read env variables, compute values, localize strings, and validate data — all from within the format itself. For streaming datasets, the companion SYNXL (.synxl) format applies the same syntax record-by-record — a SYNX-native alternative to JSONL and CSV.

Performance Benchmarks

SYNX 3.8.0 on the same 110-key, 2.5 KB config. Native Rust core, pure TypeScript, Python binding.

Rust core — 110-key config, 2.5 KB

synx-core parse
17.6 µs
parse + JSON
20.7 µs

Python — 10 000 iterations

json.loads
11.1 µs
synx_native
17.6 µs
yaml.safe_load
3 389 µs

Node.js — 50 000 iterations

JSON.parse
5.4 µs
synx-js pure TS
16.8 µs
js-yaml
67.6 µs

3.8.0 against 3.7.4 — times faster

Rust, config
×2.19
Rust, !active
×3.61
TS, !active
×9.56
Python, config
×2.86

Built secure by default

Limits in SYNX 3.8.0, set in the parser and the engine.

No code execution

Static SYNX is plain data: no eval, no scripts, no dynamic imports. Active mode runs a fixed set of built-in markers; third-party WASM markers (!use) run only from packages you install.

Path jail

!include and :watch reject absolute paths and refuse ../ that leaves the base directory.

Size caps

An included or watched file over 10 MB is refused. Input over 16 MiB is cut off at 16 MiB.

Depth limits

Nesting is capped at 128 levels, nested !include at 16.

Calc cap

:calc expressions are limited to 4 096 characters and evaluated by a built-in arithmetic parser, not by eval.

Readable by design

Plain text you can diff and review. .synxb is an optional compiled form of the same document.

Built with SYNX

Real projects running on SYNX in production.

Your project could be listed here. If you built something with SYNX, send us a short description at [email protected].

Link copied to clipboard!