π¨ Professional visual database designer for MySQL/MariaDB with modern Mac Terminal-inspired interface.
npm install -g @fiqihbadrian/zxwdbzxwdbThat's it! The server will start automatically and your browser will open.
zxwdbInteractive Menu:
- β Open in Browser
- β View Server Info
- β View Documentation
- β Restart Server
- β Stop & Exit
Local Access:
http://localhost:3001
Network Access (from other devices):
http://[your-ip]:3001
- Click "Connect to Database"
- Enter your database credentials:
- Host (e.g.,
localhost) - Port (e.g.,
3306) - Username
- Password
- Host (e.g.,
- Click "Connect"
- Browse existing databases - Select from dropdown
- Create new database - Click "Create Database"
Import Existing Schema:
- Click "Import Schema" to load tables from your database
- Relationships are auto-detected from foreign keys
Create New Tables:
- Click "+ New Table" or press
Cmd/Ctrl+N - Define columns, primary keys, data types
- Save directly to database
Visual Relationships:
- Drag from one column to another to create relationships
- Choose "Visual Only" or "Create FK Constraint"
- Delete relationships by dragging to empty space
Edit Tables:
- Double-click any table to edit structure
- Add/remove/modify columns
- Changes save automatically to database
Browse Data:
- Click "Browse Data" or press
Cmd/Ctrl+B - View, insert, edit, delete records
- Run queries and test relationships
| Shortcut | Action |
|---|---|
Cmd/Ctrl + N |
New Table |
Cmd/Ctrl + B |
Browse Data |
Cmd/Ctrl + P |
Preview SQL |
Cmd/Ctrl + K |
Quick Search |
Cmd/Ctrl + Z |
Undo |
Cmd/Ctrl + Shift + Z |
Redo |
F |
Fit View |
Delete |
Delete Selected |
ESC |
Close/Cancel |
Hold Cmd/Ctrl |
Show All Shortcuts |
- π¨ Drag-and-drop table designer
- π Auto-detect relationships from foreign keys
- π ERD (Entity Relationship Diagram) view
- π Column-level relationship connections
- β‘ Real-time schema updates
- πΎ Auto-save to database (no manual save needed)
- π Browse and edit table data
- π Run SQL queries
- π Foreign key constraint management
- π View relationship cardinality
- π― Mac Terminal color scheme (dark mode)
- β¨οΈ Professional keyboard shortcuts
- π Toast notifications for all operations
- β©οΈ Undo/Redo support
- π Quick table search
- π Auto-start server
- ποΈ Interactive menu
- π Network accessible
- π Restart without exit
- π Built-in documentation
By default, zxwdb uses port 3001. If the port is already in use, it will automatically find the next available port.
Custom Port:
PORT=3002 zxwdbConnections are session-based and cleared when you close the browser tab (for security).
zxwdb automatically detects and uses an available port. If you see a warning:
β οΈ Port 3001 in use, using port 3002 instead
This is normal! Just use the displayed port number.
-
Check database is running:
mysql -u root -p
-
Verify credentials (host, port, username, password)
-
Ensure MySQL/MariaDB allows remote connections if accessing from network
-
Check Node.js version:
node --version # Should be >= 14.0.0 -
Reinstall package:
npm uninstall -g @fiqihbadrian/zxwdb npm install -g @fiqihbadrian/zxwdb
Check for updates:
npm outdated -gUpdate to latest version:
npm update -g @fiqihbadrian/zxwdbOr reinstall:
npm install -g @fiqihbadrian/zxwdb@latest- Node.js >= 14.0.0
- MySQL >= 5.7 or MariaDB >= 10.2
- Modern web browser (Chrome, Firefox, Safari, Edge)
- Database Design - Visual schema planning
- Reverse Engineering - Import and visualize existing databases
- Documentation - Generate ERD diagrams
- Development - Quick database prototyping
- Learning - Understand database relationships
- Data Management - Browse and edit data
- Connections are session-based (auto-logout on tab close)
- Database credentials not stored permanently
- Local-first design (your data stays on your machine)
- Network binding optional (access from other devices)
MIT Β© Fiqih Badrian
Found a bug or have a feature request?
GitHub Issues: https://github.com/fiqihbadrian/zxwdb/issues
Need help? Have questions?
- π Run
zxwdbβ Choose "View Documentation" - π Report issues on GitHub
- π§ Contact: [your-email@example.com]
# 1. Install
npm install -g @fiqihbadrian/zxwdb
# 2. Run
zxwdb
# 3. Browser opens automatically
# 4. Connect to your MySQL/MariaDB database
# 5. Start designing!Made with β€οΈ by Fiqih Badrian
Enjoy designing databases visually! π