Skip to content

readmin: admin panels declared in code

Krishan Marco Madan2 min readEngineering

Short answer

readmin is an admin panel library. The backend declares widgets in TypeScript (tables, forms, actions, charts, files) and mounts one Express router; readmin serves a ready-built React app that renders them for each user, with permissions checked on the server and an AI assistant that works through the same actions.

Every product needs an admin panel, and nobody wants to build one. The usual choice is between a generic tool that knows nothing about your data and a custom React app that turns into a second product to maintain. readmin takes a third way: the backend declares the panel, and readmin draws it.

Declared where the data lives

An admin screen is a set of widgets declared in the backend, next to the code that reads and writes the data: a paginated table, a form built from a schema, a button that runs an action, a detail view, a chart, a file upload. Each widget's path says where it sits in the menu and how much of the screen it takes. The backend mounts one Express router, and readmin serves a ready-built React app that renders whatever the backend declared. There is no frontend to build, and the backend takes on no React dependency.

Permissions on the server

Every widget has an authorisation check that runs on the server, twice: once when the screen is built, so a user never sees what they are not allowed to use, and again every time one of its actions runs, so a hidden button cannot be called directly. Each user gets a layout built just for them.

Lists that stay in sync

When an action creates, updates or deletes something, it reports the change, and every table and view showing that object updates on its own. No reload, no refresh button.

An assistant with the same tools

Each app is configured with one AI assistant, and its tools are the panel's own actions. Reading tools run as the current user, under the same permissions; writing tools turn into a card the operator has to confirm. The same assistant turns a filter typed in plain words into a real query on a table.

A new admin screen is a few lines in the backend, and it comes with permissions, live updates and an assistant from the first day.

Share