Para desarrolladores
Cartografía como salida estructurada.
Genera y edita el documento DSL de forma determinista, luego renderiza a PNG o SVG. Por HTTP, MCP o CLI — para integrar en tus pipelines y agentes.
Abrir el Studio →ejemplo · MCP
> validate_gesta_map(doc)
{ "valid": true, "errors": [] }
> render_gesta_map(doc, format="svg")
{ "image_base64": "PD94…",
"mime": "image/svg+xml" }Tres superficies, un motor.
HTTP API
Endpoints REST
POST /api/generate → DSL + PNG/SVG POST /api/edit → typed ops POST /api/apply-ops → deterministic patch POST /api/rerender → re-render POST /api/render-svg → SVG, id-tagged layers POST /api/geocode → names → coordinates
MCP
Herramientas para agentes
render_gesta_map(doc, format, dpi)
validate_gesta_map(doc) → {valid, errors}
extract_draft_from_prose(prose)
how_to(feature) → self-explain
engine_version()CLI
Línea de comandos
$ gesta validate map.gesta.yaml $ gesta render map.gesta.yaml -o out.svg $ gesta geocode map.gesta.yaml --apply $ gesta resolve map.gesta.yaml $ gesta-serve # HTTP · gesta-mcp
Edición determinista
Diez operaciones tipadas sobre el documento.
Las ediciones son operaciones sobre el AST, no regeneraciones — sin regresiones, y los cambios manuales persisten.
create_layermodify_layerdelete_layeradd_memberremove_membermodify_arrowmodify_annotationchange_viewapply_classset_disambiguation
- Determinista
- Mismo documento → mismo mapa, al píxel. El geocodificador en línea se captura.
- Validado
- Todo documento se valida contra el JSON Schema del formato V1.
- Salida
- PNG, SVG (con un <g> por capa), PDF, JPG. SVG editable después.
- Un motor
- API, MCP y CLI son envolturas finas sobre el mismo pipeline de renderizado.
Open source
The engine is open.
The renderer — the deterministic core that turns a document into a map — is open source. Read it, audit it, run it yourself, self-host. Geographic accuracy comes from the engine and its data, not from a black box.
Renderer on GitHub ↗AGPL-3.0 · commercial licence available
install
# clone the deterministic engine git clone https://github.com/giacomocavalcabo/gesta-renderer cd gesta-renderer pip install -e "renderer[simplify]" # render a document → SVG gesta render map.gesta.yaml -o out.svg
Las otras puertas