Skip to content

zexahq/dbdesk-studio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

19 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

dbdesk-studio

A modern database management studio with a beautiful web interface. Manage PostgreSQL, MySQL, and other databases with ease.

Installation

Via NPM (recommended)

npm install -g dbdesk-studio
dbdesk-studio

Or run directly without installation:

npx dbdesk-studio

Via PNPM (local development)

git clone https://github.com/zexahq/dbdesk-studio.git
cd dbdesk-studio
pnpm install
pnpm build
pnpm start

Features

  • 🎨 Modern Web Interface - Built with React and TanStack Router
  • πŸ—„οΈ Multi-Database Support - PostgreSQL, MySQL, and more
  • πŸ“ Query Editor - Full-featured SQL editor with syntax highlighting
  • πŸ“Š Table Browser - Browse and edit data directly
  • πŸ’Ύ Saved Queries - Save and organize your queries
  • πŸ“ˆ Export Data - Export tables as CSV or SQL
  • 🎯 Type-Safe - Built entirely in TypeScript
  • πŸš€ Fast - Powered by Vite and Express

Quick Start

Default Configuration

dbdesk-studio

Custom Ports

dbdesk-studio --backend-port 4000 --frontend-port 8080

External Backend

dbdesk-studio --backend-url http://api.example.com:6789

Options

Usage: dbdesk-studio [options]

Options:
  --backend-port <port>     Backend server port (default: 6789)
  --frontend-port <port>    Frontend server port (default: 9876)
  --backend-url <url>       Backend URL for frontend (default: http://localhost:6789)
  --help, -h               Show this help message

Development

Prerequisites

  • Node.js >=20
  • pnpm >=10.13.1

Setup

git clone https://github.com/zexahq/dbdesk-studio.git
cd dbdesk-studio
pnpm install

Development Mode

pnpm run dev

This starts:

Build

pnpm run build

Type Checking

pnpm run typecheck

Project Structure

dbdesk-studio/
β”œβ”€β”€ apps/
β”‚   β”œβ”€β”€ web/              # Frontend (React + TanStack Router + Vite)
β”‚   └── server/           # Backend API (Express)
β”œβ”€β”€ packages/
β”‚   β”œβ”€β”€ common/           # Shared types and utilities
β”‚   β”œβ”€β”€ config/           # Shared configuration
β”‚   β”œβ”€β”€ env/              # Environment variables
β”‚   └── cli/              # CLI entry point
└── turbo.json            # Monorepo configuration

Features in Detail

Connections

  • Save and manage multiple database connections
  • Support for PostgreSQL and MySQL
  • Connection profiles with credentials

Query Editor

  • Full-featured SQL editor with Monaco Editor
  • Syntax highlighting for SQL
  • Query history and saved queries
  • Execute queries and view results

Data Browser

  • Browse tables and schemas
  • View and edit table data inline
  • Filter and sort data
  • Delete rows and export data

Workspace

  • Save your workspace configuration
  • Auto-save workspace state
  • Quick access to saved queries

Troubleshooting

Port Already in Use

Use different ports:

dbdesk-studio --backend-port 4000 --frontend-port 8080

CORS Errors

If frontend can't connect to backend, ensure the backend URL is correct:

dbdesk-studio --backend-url http://localhost:6789

Build Issues

Clean and rebuild:

pnpm clean
pnpm install
pnpm build

License

MIT

About

Database management studio on web

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 2

  •  
  •  

Languages