AI-powered database visualization and query tool. Connect to any database, explore schemas, run queries, and generate AI-assisted insights — all from a single web interface.
- Multi-Database Support — PostgreSQL, MySQL, MariaDB, SQLite, MongoDB, MSSQL, Oracle, Redis, DynamoDB, Firebase, Prisma
- Schema Exploration — Browse tables, columns, indexes, and relationships visually
- AI-Powered Insights — Natural language queries and smart suggestions
- Query Runner — Run SQL/NoSQL queries directly from the web interface
- Connection Management — Encrypted credential storage with master password
- Vault & Settings — Secure persistence of connections and AI cache
# Zero-install (no setup required)
npx visuradb studio
# Or install globally
npm install -g visuradb
visuradb studioOpen http://localhost:3001 in your browser, set your master password, then add a database connection.
Global install (recommended)
npm install -g visuradbZero-install (no setup required)
npx visuradb studio| Command | Description |
|---|---|
visuradb init |
Interactive setup — configure port and data directory |
visuradb studio |
Start the web interface |
visuradb studio --port 4000 |
Override port without re-running init |
visuradb studio --no-open |
Start without auto-opening the browser |
visuradb --version |
Print version |
visuradb --help |
Show help |
visuradb init writes to ~/.visuradb/config.json:
{
"port": 3001,
"host": "127.0.0.1",
"dataDir": "~/.visuradb/data"
}The dataDir holds the SQLite database that stores your encrypted connection credentials, vault, settings, and AI cache.
| Layer | Technology |
|---|---|
| Frontend | React 18, Vite 6, Astro, Tailwind CSS |
| Backend | Express 4, TypeScript 5 |
| Database | PostgreSQL, SQLite, MySQL, MariaDB, MongoDB, MSSQL, Oracle, Redis, DynamoDB, Firebase |
| ORM | Prisma |
| Auth | Master password with encrypted storage |
| Runtime | Node.js 18+ |
This is an npm workspaces monorepo.
visuradb/
packages/
client/ React + Vite frontend (@visuradb/client)
server/ Express API server (@visuradb/server)
cli/ CLI wrapper (visuradb — the published package)
scripts/
copy-client-dist.js
copy-server-dist.js
git clone https://github.com/MinnKhantZ/visuradb.git
cd visuradb
npm installOpen two terminals:
Terminal 1 — API server (hot-reloads on save):
npm run dev:server
# Server starts at http://localhost:3001Terminal 2 — React client (Vite HMR):
npm run dev:client
# Client starts at http://localhost:5173The client automatically proxies API calls to http://localhost:3001 in dev mode. Open http://localhost:5173 in your browser.
The dev server uses
./data/in the server package directory for SQLite storage, not~/.visuradb/.
npm run buildThis runs all five steps in sequence:
- Build the React client →
packages/client/dist/ - Copy client dist →
packages/cli/client-dist/ - Compile server TypeScript + copy SQL migrations →
packages/server/dist/ - Copy server dist →
packages/cli/server-dist/ - Compile CLI TypeScript →
packages/cli/dist/
After building you can test the CLI locally:
node packages/cli/bin/visuradb.js studioThe packages/client and packages/server directories were added via git subtree and preserve the full commit history from their source repositories. To pull in new upstream changes:
# Pull latest client changes
git subtree pull --prefix=packages/client client master
# Pull latest server changes
git subtree pull --prefix=packages/server server master# From the monorepo root — builds everything, then publishes the CLI
npm run build
cd packages/cli
npm version patch # or minor / major
npm publishOnly packages/cli (the visuradb package) is published to npm. The client and server packages are internal build artifacts bundled inside the CLI tarball.