Terminal UI (TUI)

An interactive terminal dashboard for browsing the corpus and running the engine.

The TUI is an interactive terminal dashboard for developers working with the regulation corpus and engine.

Overview

  • Language: Rust (Ratatui + Crossterm)
  • Location: packages/tui/
  • Binary: rrtui

What it does

A full-screen terminal application that lets you browse the corpus, run the execution engine, execute BDD tests, validate regulations, inspect execution traces, view pipeline status, and monitor logs. Uses the engine crate directly for execution.

Screens

There are ten tabs, in the order the tab bar shows them:

ScreenPurpose
DashboardOverview of corpus and pipeline status
BDDRun and view BDD test results
EngineExecute laws with custom parameters
CorpusBrowse and search law files
PipelineMonitor harvest/enrich job status
ValidationRun schema validation
TraceInspect execution trace trees
DependenciesWhich laws reference which, both ways, plus declared and implemented open terms
LogsView log output
ActionsRun the just quality targets (format, lint, and the rest) and watch their output

Running

cargo run -p regelrecht-tui

No configuration needed. Reads the corpus from local filesystem paths.

Further reading

RegelRecht

An exploration by Bureau Architectuur of the Dutch Ministry of Economic Affairs and Climate Policy into the possibilities of transparent, executable legislation.

Links

GitHub repository
How it works
Stay informed
Roadmap (Dutch)
Documentation
Research

Contact

regelrecht@minbzk.nl

Part of

Bureau Architectuur
Ministry of Economic Affairs and Climate Policy