ECSON
ECMAScript Object Notation: JSON with the JavaScript types JSON cannot express, written as $-prefixed typed values.
LingoData is a family of open specifications for moving data between systems without losing meaning. A date stays a date, a filter means the same thing in MongoDB and PostgreSQL, and a client talks to every data source through one protocol.
ECSON
ECMAScript Object Notation: JSON with the JavaScript types JSON cannot express, written as $-prefixed typed values.
ESType
ECMAScript types for JSON Schema: one estype keyword declares a value’s type and accepts both its ECSON and plain JSON forms.
UnQuery
Universal query string filters: write a search filter once, in JSON or SQL-like text, and run it on any data source.
CRUD API
A protocol-independent API for reading and writing data: the Base specification, optional extensions and the HTTP and MCP protocols.
Each example below is copied from the specification it illustrates.
A map with a date, a set and an escaped key (ECSON section 1):
{ "$map": [ ["createdAt", { "$date": "2024-01-15T00:00:00.000Z" }], ["tags", { "$set": ["a", "b"] }], ["meta", { "$$source": "import" }] ]}A JSON Schema that accepts a date as a plain string or as an ECSON $date (ESType section 0):
{ "type": "string", "format": "date-time", "estype": "date" }A filter in the JSON syntax, with an ECSON date as operand (UnQuery section 2):
{ "status": { "@in": ["paid", "shipped"] }, "total": { "@gte": 100, "@lt": 1000 }, "createdAt": { "@gte": { "$date": "2024-01-01T00:00:00.000Z" } }, "address.city": "Recife", "@or": [ { "coupon": { "@exists": true } }, { "customer.vip": true } ]}Listing paid orders over 100, newest first, two fields, second page (HTTP section 3):
GET /orders?status=paid&total=>100&@sort=-createdAt&@fields=_id,total&@page=2&@limit=20The same kind of search as an MCP tool call (MCP section 2):
{ "jsonrpc": "2.0", "id": 7, "method": "tools/call", "params": { "name": "crud.list", "arguments": { "collection": "orders", "query": { "status": "paid", "total": { "@gte": 100 } }, "sort": "-createdAt", "limit": 2 } } }Reference implementations in TypeScript live with each specification. They are not published on npm yet, and their repositories stay private until they are.
The specifications are also published in formats for tools and language models:
| Spec | Version | Status | Source |
|---|---|---|---|
| ECSON: ECMAScript Object Notation | 0.2.0 | draft | lingodata/ecson@fe27835 · Markdown |
| Spec | Version | Status | Source |
|---|---|---|---|
| ESType: ECMAScript types for JSON Schema | 0.1.0 | draft | lingodata/estype@0cbfb46 · Markdown |
| Spec | Version | Status | Source |
|---|---|---|---|
| UnQuery: Universal Query String Filter Specification | 0.1.0 | draft | lingodata/unquery@865de91 · Markdown |
| Spec | Version | Status | Source |
|---|---|---|---|
| CRUD API Base Specification | 0.2.0 | draft | lingodata/crud@bc225ba · Markdown |
| Spec | Version | Status | Source |
|---|---|---|---|
| CRUD API Asynchronous Operations Extension | 0.1.0 | draft | lingodata/crud@bc225ba · Markdown |
| CRUD API Resource Metadata Extension | 0.1.0 | draft | lingodata/crud@bc225ba · Markdown |
| CRUD API Relationships Extension | 0.1.0 | draft | lingodata/crud@bc225ba · Markdown |
| CRUD API Schema Extension | 0.1.0 | draft | lingodata/crud@bc225ba · Markdown |
| CRUD API Views Extension | 0.1.0 | draft | lingodata/crud@bc225ba · Markdown |
| Spec | Version | Status | Source |
|---|---|---|---|
| CRUD API HTTP Protocol | 0.2.0 | draft | lingodata/crud@bc225ba · Markdown |
| CRUD API MCP Protocol | 0.2.0 (MCP revision 2026-07-28) | draft | lingodata/crud@bc225ba · Markdown |
All LingoData specifications, reference implementations and this site are licensed under the Apache License 2.0. Copyright 2026 Gustavo Gondim.
LingoData specifications, reference implementations and this site are licensed under the Apache License 2.0. Copyright 2026 Gustavo Gondim.