In progress

refdata: every category is data, not code

Why the statuses, types and categories of my applications live in the database, not in the program.

18 November 2026

PyTech library · in progress

The need

In many applications, the list of a quote's statuses or of file types is written into the program. Adding "Waiting for the client" then needs a developer and an update, the translations are scattered, and the reports don't agree from one screen to the next.

What I built

refdata is a library in which every status, type, category, priority, unit or role is a value filed in a domain. Values have an order, a hierarchy, translations, properties (a colour, an icon) and links between them; each client can have its own labels. The starting vocabulary is delivered in files, versioned with the application.

The rule is the same in all my applications: a list value is data, unless there is a real technical reason to make it code, and that reason is written next to it.

A quote's status is a value of a domain, translated and coloured.

A quote's status is a value of a domain, translated and coloured.

What it brings

Your business vocabulary belongs to you: you add, rename or retire a value yourself, in every language, without breaking the history. Reports group and filter on the same values everywhere.

For your business

File statuses, types of service, cancellation reasons, sales units: everything your team classifies every day. It is often what makes a business application age, and it is what stays flexible here.

Under the hood

A specification written once, two implementations: Rust (SeaORM 2.0, finished, 390 tests) and Django 5.2 (planned). Each category is a foreign key to a value constrained to its domain; a list fixed in the code is only allowed with its reason written down.

A similar need? Let's talk.

Book a slot Send a message

← All projects