Declarative Amsterdam

Presentations and tutorials

Active filters:

CEM-ML declarative document lifecycle engine

What if the languages and tools in a web application were not a tower of fixed, unrelated standards, but an architecture able to evolve from shared declarative contracts?

CEM-ML is the foundation of an open-source evolutionary architecture platform for declarative web applications. It treats a language, its schema, its transformations, and its presentation rules as related parts of one document lifecycle. Instead of adding another hard-coded converter for every pair of formats, CEM-ML lets schema packages describe how structured content is read, validated, queried, transformed, formatted, and rendered.

The language is deliberately small and visual. Structure uses braces, attributes use @, and | separates a node's header from its content:

@doc cem-ml 1
@ns cem = "https://cem.dev/ns/core/1"
@ns html = "http://www.w3.org/1999/xhtml"
@default html

{main @cem:screen=login |
    {h1 | Sign in}
    {form @cem:form=sign-in @method=post |
        {label @for=email | Email}
        {input @id=email @name=email @type=email @required}
        {button @type=submit | Sign in}
}   }

This is recognizable as a web document, but its meaning is not trapped in one browser rendering step. During the tutorial, participants will change this document, introduce and repair a validation error, inspect the resulting typed structure and source-linked diagnostic, convert a second input format into the same model, and transform the result into a working web view. One source stays visible while its lifecycle expands.

That lifecycle is the platform's common semantic spine. CEM-ML currently reads canonical CEM-ML and schema-packaged formats including CSV, JSON, YAML, CSS, SCSS, Markdown, and the HTML/XML family. The same engine provides parsing, validation, inspection, conversion, reporting, and transformation-graph execution. Source mappings remain attached to the content, allowing a diagnostic or generated result to be traced back to the bytes and transformation that produced it.

The platform already applies this model beyond a command-line demonstration:

  • The Rust cem_ml engine and its schema packages define the shared document lifecycle and compile to native and WebAssembly runtimes.
  • CEM-QL supplies declarative queries, expressions, and templates over the same typed content rather than introducing an application-specific data model.
  • The native CLI and synchronized browser/Node deployment projects expose the same operations to terminals, build systems, workers, and browser hosts.
  • <cem-element> uses the browser runtime as a declarative, light-DOM component substrate: data, events, queries, and templates remain markup while the reusable runtime owns the necessary imperative machinery.
  • Consumer Semantic Theme, CEM Components, CEM Studio, and CEM Site demonstrate how tokens, controls, a local-first workbench, and a static application can grow from that substrate rather than from framework-local UI behavior.

The architecture is evolutionary because those contracts are its DNA. A new content type, schema version, query vocabulary, formatter, transform, component, or host can join the lifecycle without redefining the whole stack. The platform does not claim that every layer is finished: public CLI distribution is being prepared, and the component catalog is actively migrating from compatibility code to CEM-ML declarations. Those migrations are themselves useful evidence for the central idea — the architecture is designed to replace and evolve its parts while preserving shared semantics, diagnostics, and source identity.

Tutorial, 12 November 2026

Sasha Firsov is a software architect and open-source developer focused on declarative web architecture. For more than a decade, he has been pursuing the change of web stack towards evolutionary architecture, beginning with JavaScript application containers and Declarative Custom Elements, continuing with CEM-ML, and moving toward Embeddable Progressive Applications. As part of this work, he participates in the W3C Web Components Community Group and the XQuery and XSLT Extensions Community Group, and contributes to WHATWG HTML discussions.

background Layer 1 jbe-platform.quadraat-sans-bold jbe-platform.quadraat-sans-bold-dark jbe-platform.quadraat-sans-bold-light jbe-platform.quadraat-sans-bold prag Twitter_Logo_Blue