SuperAPIAI Directory

geml

github.com · Other AI tools

GEML (General Expressive Markup Language) is a lightweight markup language designed to address the structural problems that arise when large language models (LLMs) and humans collaboratively edit documents. It uses a unified design of addressable blocks and standard verbs, making documents both easy for humans to read and safe for AI agents to modify. By giving each block a name and coordinates, GEML allows programs or models to precisely read, write, or delete specific blocks without processing the entire file, thereby significantly reducing context token consumption and avoiding format drift. It supports a variety of content types such as tables, charts, mathematical formulas, code, and data, and can extend domain vocabulary through the Profile mechanism. GEML can coexist with existing Markdown files, providing commands such as list, find, and get to operate directly on Markdown, and can also project output via --to md|html. The project is an open-source specification that provides a command-line tool and a browser extension, suitable for scenarios such as agent-driven development and knowledge work.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
Platforms浏览器扩展

About this tool

GEML (General Expressive Markup Language) is a lightweight markup language whose core design goal is to make plain-text documents both human-readable and machine-operable. In scenarios where AI agents participate in development and knowledge work, traditional plain text and Markdown lack deterministic block boundaries, causing programs or models to exchange entire files, with token costs growing with document length, and format and semantic drift easily occurring after multiple rounds of rewriting. GEML solves these problems through unified, addressable blocks and standard verbs.

Main capabilities include:

  • Block-level addressing: each block has a name and internal coordinates (such as table cells, data block leaves, and metadata keys), supporting precise get and set operations.
  • Low-token reading and writing: only the target block enters the context, while the rest does not participate, reducing token consumption.
  • Deterministic parsing: the syntax maps to an AST, supporting programs and LLMs in creating, reading, updating, and deleting block by block; writes are performed by byte splicing and validated as a whole, with untouched bytes remaining unchanged.
  • Single source of truth and references: supports cross-document and cross-fragment references; modify the source once and all references follow; embeds are dynamic lookups, and deleting the source causes the build to fail.
  • Bidirectional read/write robustness: unified block shapes, and a strict validator provides precise error locations and repair feedback.
  • Profile domain extension: declaring a profile in meta adds domain vocabulary (such as design styles, forms, code diagrams, and media timelines) without new syntax, and unknown environments safely fall back to standard blocks.

Usage:

  • Commands such as geml list, geml find, and geml get can be used directly on existing Markdown files without conversion, and .md files remain unchanged.
  • Use geml <file> --to md|html to project .geml into Markdown or HTML deliverables (projection is lossy; block IDs and table-bound charts are not preserved).
  • An online Playground is provided for trying it out without installation.
  • A browser extension is provided to view embeds and projection effects.

Format essentials: block syntax is === type [attributes] … ===, with three or more equals signs opening a block and an equal-length run of equals signs closing it; blocks with #id can be closed with === #id. The type determines how the body is read: raw (code, charts, math, tables), flow (parsed prose), data (key=val per line), embed (no body, src= specifies the target). Tables support visual authoring or numericdata authoring, can compute columns and summary rows, and can also pull data from external CSV. Charts can host a DSL or bind to a table view. Data blocks support json, jsonl, and a yaml subset.

Applicable scenarios: agent-driven development, multi-agent collaboration, knowledge management, and document workflows that require precise block-level editing.

Limitations: GEML is a relatively new format, and maturity and version information are not yet available; projection to Markdown is lossy; some features (such as code diagrams) are still being explored.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools