An admin panel for your database, in one file.
Point it at SQLite, MySQL or PostgreSQL. Get lists, filters, forms and links between tables in a calm web UI that works on a phone. No PHP, no web server, no Node, no database of its own.
Inspired by Adminer, made for people.
Adminer is brilliant: one file, any database, nothing to set up. Universal Admin keeps that spirit and adds what the database alone can't tell you.
| The database says | People mean |
|---|---|
outlet_id = 3 | "Downtown" |
| Forty columns | The five that matter |
orders.customer_id = 7 | "Ana's orders, on Ana's page" |
Good enough for you, clear enough to hand to your team.
What you get
It reads your database like a person would
Measured on a real 176-table Rails app. Every guess is only a default; your config wins.
| It sees | It does |
|---|---|
| A foreign key | A dropdown showing the linked row's name, and a tab on the linked record |
user_id with no foreign key, and a users table | The same link, guessed from the name |
created_at, updated_at | Filled in on save, read-only in forms |
password_digest, reset_password_token | Hidden |
orders_count | Read-only: your app keeps that count |
schema_migrations, Laravel's migrations, Django's tables | Hidden |
| A status, a link or a yes/no | Can be set on many rows at once |
| A table with 44 columns | A list of the 8 that tell rows apart (anyone can show more from the Columns menu); the record shows them all |
dob, api_key | "Date of birth", "API key" |
A config you edit, not write
You don't need one at all. When you want one, init writes it from your database: one line per column, with what the database says beside it. Change a label, hide a column, name a status's choices.
Editors like VS Code check the file and complete settings as you type, and AI tools given the same schema write valid configs.
$ universal-admin init --db postgres://ana:secret@localhost/shop
Wrote config.yaml: 12 tables, 15 links between them.
connect: postgres://ana:secret@localhost/shop
databases:
shop:
tables:
users:
label: Users
list_columns: [id, email, created_at, first_name, last_name, phone_number]
columns:
email: {label: Email} # string, required
password_digest: {hidden: true} # looks like a secret, hidden by guess
company_id: {label: Company} # int, link to companies, shows name
status: {label: Status, type: enum, options: [active, banned]}
created_at: {label: Created at} # datetime, filled in on create
Get started
1. Get it
Downloads for Linux, macOS and Windows are coming. Until then, build it from source, with Go and Node installed:
git clone https://github.com/technoprodev/universal-admin
cd universal-admin
go generate ./web # builds the web app that goes inside the binary
go build ./cmd/universal-admin
2. Run it with your database's address
./universal-admin --db postgres://ana:secret@localhost/shop
postgres://ana:secret@localhost/shopmysql://ana:secret@localhost:3306/shopsqlite:./app.dbIn place of ana, secret, localhost and shop: your database account, its password, the server and the database. Leave the account out and the page asks for it at login.
3. Open the address it prints
Every table is there. When you want to change labels or hide columns, run ./universal-admin init with the same --db: it writes a config file from your database for you to edit.
Every setting, the guesses and how to undo them, and running it on a server: the README.