A modern, open-source database studio for developers. Explore schemas, browse data, and run queries across multiple databases with a beautiful, intuitive interface.
# Clone and run with Docker
git clone https://github.com/rutvikraut2001/dbpilot.git
cd db-studio
docker compose up -dOpen http://localhost:3030 in your browser.
With sample databases for testing:
docker compose --profile with-db up -dThen connect to:
- PostgreSQL:
postgresql://postgres:postgres@postgres:5432/testdb - MongoDB:
mongodb://mongo:mongo@mongodb:27017
git clone https://github.com/rutvikraut2001/dbpilot.git
cd db-studio
npm install
npm run dev- Multi-Database Support - Connect to PostgreSQL and MongoDB (more coming soon)
- Schema Visualization - Interactive ER diagrams powered by React Flow
- Data Browser - Browse, search, and paginate through your data
- Query Editor - Monaco-powered SQL/NoSQL editor with syntax highlighting
- Dark/Light Theme - Beautiful UI that adapts to your preference
- Read-Only Mode - Production-safe mode to prevent accidental writes
- Connection Management - Save and manage multiple database connections
- Resizable Sidebar - Adjust sidebar width to your preference
- Docker Support - Easy deployment with Docker and docker-compose
View Screenshots
Connect to your databases with a simple, intuitive interface.
Browse tables and collections with pagination, search, and filtering.
Visualize your database schema with interactive ER diagrams.
Write and execute queries with syntax highlighting and results view.
- Framework: Next.js 16 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS
- UI Components: shadcn/ui
- State Management: Zustand
- Schema Visualization: React Flow
- Query Editor: Monaco Editor
- Database Drivers: node-postgres, MongoDB Node Driver
- Node.js 18+
- npm, yarn, or pnpm
- PostgreSQL and/or MongoDB instance to connect to
-
Clone the repository
git clone https://github.com/rutvikraut2001/dbpilot.git cd dbpilot -
Install dependencies
npm install
-
Run the development server
npm run dev
-
Open your browser
Navigate to http://localhost:3000
npm run build
npm start- Open the application in your browser
- Select your database type (PostgreSQL or MongoDB)
- Enter a connection name (for your reference)
- Enter the connection string:
- PostgreSQL:
postgresql://user:password@host:port/database - MongoDB:
mongodb://user:password@host:port/database
- PostgreSQL:
- Click "Connect"
PostgreSQL
postgresql://postgres:password@localhost:5432/mydb
postgresql://user:pass@localhost:5432/mydb?schema=public
MongoDB
mongodb://localhost:27017/mydb
mongodb://user:pass@localhost:27017/mydb?authSource=admin
| Feature | Description |
|---|---|
| Data Tab | Browse table/collection data with pagination |
| Query Tab | Write and execute raw SQL or MongoDB queries |
| Schema Tab | Visualize database schema with ER diagrams |
| Read-Only Toggle | Enable to prevent write operations |
| Theme Toggle | Switch between light, dark, or system theme |
After making changes to your code, here's how to update your Docker Hub image:
1. Rebuild the image:
docker build -t 30rutvik/db-studio:latest .2. Push to Docker Hub:
docker push 30rutvik/db-studio:latest3. (Optional) Tag with version:
docker tag 30rutvik/db-studio:latest 30rutvik/db-studio:v1.1
docker push 30rutvik/db-studio:v1.1For users pulling your updated image:
docker pull 30rutvik/db-studio:latest
docker compose down
docker compose up -dThe :latest tag will always point to your most recent push. Users need to explicitly pull the new image since Docker caches images locally.
- MySQL support
- SQLite support
- Oracle Database support
- DynamoDB support
- Query history
- Export data (CSV, JSON)
- Table structure editing
- Index management
- Saved queries
- SSH tunneling
- Docker image
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Prisma Studio - Inspiration for the project
- shadcn/ui - Beautiful UI components
- React Flow - Schema visualization
- Monaco Editor - Query editor
Rutvik - Creator & Maintainer
- GitHub: @rutvikraut2001
- Docker Hub: 30rutvik/db-studio
Made with ❤️ by Rutvik
© 2025 DB Studio. MIT License.