Universal Admin GitHub
Open source · MIT

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.

Universal Admin showing a list of tasks: project and assignee by name, state, hours and dates, with search, a sort menu, filters and a Columns menu

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 saysPeople mean
outlet_id = 3"Downtown"
Forty columnsThe 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

The filters panel: assignee and title, and the state choices with how many rows each has
Filters by name, not idEach choice shows how many rows it has.
An owner field: typing 'a' lists people by name
Links show namesPick a row by its name, as you type.
A project's page: its form, and below it, marked, tabs of its tasks and its people with their counts
Linked rows in tabsWith counts, and Add fills the link in.
A list with one title being changed in its cell
Change a cell in placeDouble-click, type, Enter.
Three projects selected, and the bar that appears, marked: Change and Delete for all three
Many rows at onceSet one value on all of them, or delete them.
A grouped view: tasks, sum and average of hours per state
Views with totalsJoins and sums, named in the config.
The login page, asking for a database account
Your database's accountsIts rights decide who sees what.
The query page: two tabs, a query and its result
SQL in tabsRead-only unless you allow changes.
The home page's search box with 'kiki' typed, and matches from several tables, each under its table's name
Search everythingOne box, every table, by name.

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 keyA dropdown showing the linked row's name, and a tab on the linked record
user_id with no foreign key, and a users tableThe same link, guessed from the name
created_at, updated_atFilled in on save, read-only in forms
password_digest, reset_password_tokenHidden
orders_countRead-only: your app keeps that count
schema_migrations, Laravel's migrations, Django's tablesHidden
A status, a link or a yes/noCan be set on many rows at once
A table with 44 columnsA 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
PostgreSQLpostgres://ana:secret@localhost/shop
MySQL, MariaDBmysql://ana:secret@localhost:3306/shop
SQLitesqlite:./app.db

In 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.