Open source · MPL-2.0v0.4.1Angular 22 · NG-ZORRO

Quadrava CE

Business and admin front ends, described in JSON.

Describe what a screen shows and which API each button calls: Quadrava turns it into a working web application, with sign-in, permissions, tracing and errors already handled in one place. Without writing a line of Angular.

screens/order-list.json { "screen": "order-list", "title": "Orders", "components": [ { "type": "filterBar", "fields": [{ "name": "status", "type": "select" }] }, { "type": "table", "source": "orders", "columns": [ "number", "customer", "status" ], "rowActions": [{ "label": "Approve", "visibleIf": "{{ can(…) }}" }] } ]} Acme Office SR Orders Row actions by permission Status: all NUMBER CUSTOMER STATUS ORD-1042Smith LtdSentApproveORD-1041Baker IncApprovedOpenORD-1039Walker & Co.DraftOpenORD-1036Nolan GroupSentApprove 4 of 128 orders 1 2 3

The idea

Like a recipe: you write the ingredients, the kitchen cooks the dish

Business applications are full of screens that look alike: a list with filters, a form to fill in, a detail page with a few buttons. Building them by hand every time costs time and multiplies mistakes. With Quadrava a screen is a document: you write it, you check it, and a single engine puts it on stage the same way every time, secure and accessible.

Describe

Components, data sources and actions in readable JSON, with a JSON Schema that suggests every property in your editor.

Check

The quadrava validate CLI finds broken references, wrong expressions and missing translation keys before release.

Publish

The runtime reads the documents and draws the app: changes are immediate, no build, no generated code to maintain.

How it works

Four steps, one engine

The runtime interprets the JSON, it does not generate code: that is why the preview is faithful and a change shows up at once. Security comes from validation and from expressions that run in a sandbox: if a rule cannot be evaluated, the button stays hidden (fail-closed).

1DescribeScreens, data sources,actions, theme and menuin JSON documents2ValidateJSON Schema (Ajv)and the Quadrava CLI:errors before release3InterpretThe Angular runtimedraws the NG-ZORROcomponents, no code4ConnectThe BFF keepstokens and session andcalls your servicesInside the runtime• sandboxed CEL expressions• permissions, fail-closed• OpenTelemetry tracesBehind the BFF• OIDC sign-in (e.g. Keycloak)• authorization service• your REST back ends1DescribeScreens, data, actions,theme and menu in JSON2ValidateJSON Schema and CLI:errors before release3InterpretThe Angular runtime drawsthe components, no code4ConnectThe BFF keeps the sessionand calls your services

From document to screen: the services at the bottom right (identity and back ends) stay yours.

A practical example

An order list with an «Approve» button, in two documents

datasources/orders.jsonjson
{
  "datasources": "orders",
  "sources": {
    "list": {
      "method": "GET",
      "url": "/api/orders",
      "paging": "server"
    },
    "approve": {
      "method": "POST",
      "url": "/api/orders/{{id}}/approve"
    }
  }
}
screens/order-list.json — excerptjson
{ "type": "table",
  "source": "orders",
  "columns": [ { "field": "number" },
               { "field": "customer" } ],
  "rowActions": [{
    "label": "Approve",
    "visibleIf": "{{ can('orders.order.approve') }}",
    "onClick": [
      { "call": "approveOrder" },
      { "toast": "Order approved" },
      { "refresh": "orders" } ]
  }] }
  1. The data source says where the data is. A name (orders/list) instead of a URL scattered across screens: if the API changes, you fix it in one place.
  2. The table says what to show. Columns, sorting, server-side paging: the component already knows how to behave.
  3. The button appears only to those who may use it. can(…) asks the authorization service; without an answer, the button stays hidden.
  4. The click is a sequence of steps. Call the API, show a message, reload the list. If the service answers with an error, the runtime shows it the standard way.

The result is the screen at the top of this page: try it in the live demo.

What's inside

Everything a real business application needs

The features usually rewritten in every project are already in the catalogue, tested and documented.

26 ready-made components

Tables with filters, totals and bulk actions, forms, wizards, kanban, calendar, tree, charts, timeline, comments with mentions.

15 field types

From text to lookup, from file upload to Markdown rich text; fields suggested and generated from a data source.

Declarative validation

Rules per field and across fields, non-blocking warnings, remote checks, national formats with check digits (IT, DE, FR, ES…).

Security at the core

A BFF that keeps the tokens (OIDC), CSRF, domain.resource.action permissions, multi-tenancy, fail-closed expressions.

Live data

Live sources over Server-Sent Events: a card moved by a colleague shows up on your board at once.

Observability

Every screen, action and HTTP call becomes an OpenTelemetry trace, linked to the back end through traceparent.

13 accessible themes

Light, dark and high-contrast, all within WCAG AA; the application logo lives in the theme.

Multilingual

Texts in translation catalogues, date and number formats per language; the CLI flags missing keys.

CLI for your CI

quadrava validate and quadrava publish to any registry that follows the contract.

Measured quality

Numbers, not promises

automated front-end tests
0
components in the catalogue
0
themes within WCAG AA
0
transferred on first load
0 kB
Angular libraries and apps (741)Javareal browsercomponents243core200runtime113schema95expressions46services44Java (BFF, authz, telemetry)28end-to-end Playwright19

Automated tests per module, all green (release 0.4.1).

Every release goes through the same checks

Unit tests for every library, end-to-end tests in a real browser with automatic accessibility checks (axe), conformance kits that test the BFF and services against the OpenAPI contracts, and a size budget: the runtime stays under 2.5 MB.

In plain words: if one of your services honours the contract, the kit tells you before a user does.

Open core

Complete on its own, open by choice

Quadrava CE holds the language, the runtime, the libraries, the CLI and the contracts: a project is written by hand or with any editor, checked with the CLI and run from the file system or from any registry that follows the contract.

Quadrava Studio, the commercial edition, adds the visual editor, the desktop app and a production-ready registry, and it is built on the same CE packages.

Runtime

The Angular app that loads, validates and draws the screens; also as a Docker image.

Libraries

schema, expressions, core, components, services: npm packages to build your own runtime.

Contracts

OpenAPI 3.1 for BFF, authorization, telemetry and registry, with conformance kits.

Reference services

BFF, authorization and telemetry in Spring Boot, for development and as examples.

Quadrava CE open source · MPL-2.0 · complete on its own JSON language and schemasCEL expressionsRuntime and Docker imageComponent catalogueCLI: validate, publishOpenAPI contracts and kitsReference servicesnpm libraries packages at a fixed version Quadrava Studio commercial edition, built on CE Visual editorDesktop appProduction registry

The commercial edition depends on CE, never the other way round.

Technology

A current stack, sober choices

Standalone components and signals, a light and governable expression language instead of a rules engine, open standards for identity, contracts and telemetry.

Angular 22.2TypeScript 6.0NG-ZORRO 22CELJSON Schema · AjvSpring Boot 4.1Java 21Keycloak 26.8OpenTelemetryOpenAPI 3.1Docker · ghcr.ioPlaywright

Get started

From curiosity to your first screen in minutes

Step 1

Start the demo

The runtime with the sample applications, in a container.

terminalbash
docker run -p 8080:8080 \
  ghcr.io/sramaccini/\
  quadrava-runtime:0.4.1

Step 2

Write your screen

Copy a screen from the examples and change it: the schema guides you in your editor.

screens/hello.jsonjson
{ "screen": "hello",
  "title": "Hello",
  "components": [ … ] }

Step 3

Check it in CI

The CLI reads the project the way the runtime does and stops at the first problem.

terminalbash
npm i -D @sramaccini/quadrava-cli
npx quadrava validate

MPL-2.0 licence, commercial products included

You can use Quadrava CE inside closed products and services; only changes to Quadrava's own files stay open. The name and logo are not covered by the code licence.

Contributions welcome

Issues, ideas and pull requests on the GitHub repository, with a lightweight CLA. The roadmap and the changelog show where the project is heading.

Describe your next screen instead of rewriting it

Open the demo, read the code, change a JSON document and reload the page.

Scroll to Top