← Portfolio

Modeler & code generator: open source

I was looking for a lightweight, free, web-based modeling tool that supports modeling across the layers of a medallion architecture and has basic code generation. Building one with AI turned out to be faster than trying to find one. The result is published as open source under the Apache 2.0 license.

Data modelingMedallionKimballSource-to-targetdbtPySparkOpen source

The app

Entities with keys, mapped source columns and relations on a canvas; the panel on the right edits the selected entity, column or relation.

A GOLD star schema in the modeler: facts and dimensions with keys, measures and their aggregations, relations drawn one-to-many

A GOLD star schema in the modeler (demo model).

What it does

One model per medallion layerBRONZE (source and staging tables), SILVER (canonical model), GOLD (Kimball star schemas with facts, dimensions and measures) and CONSUMPTION (flat tables for BI tools, optionally a Unified Star Schema).
Source-to-target mappingEvery layer takes its sources from the layer below, down to column level, with keys, data types and one-to-many relations drawn on the canvas.
Generation in one clickA star schema from a SILVER model, including a conformed time dimension, and flat consumption tables from a GOLD model.
Code generationdbt (snapshots for history, incremental merges, models with joins derived from the relations), ANSI SQL and PySpark.
Import and exportImport CREATE TABLE statements or a JSON model; export the model as JSON or as a PNG image.
LightweightPlain HTML and JavaScript in the browser with a small Python server (standard library only). A container image and Kubernetes manifests are included; views, auto-layout and shared models make larger models workable.

Open source

Published under the Apache 2.0 license: gitlab.com/tigornl/modeler. Free to use, adapt and deploy in your own environment.