A modern, blazingly fast, and elegant database management client & SQL editor for PostgreSQL, MySQL, MariaDB, SQLite, and Redis with built-in MCP Server & AI Copilot.
TABLEGRID is a high-performance, cross-platform desktop application built with Tauri v2 + Rust on the backend and React 19 + TypeScript + Vite + Monaco Editor on the frontend. It provides a fluid, intuitive, and feature-packed experience designed for developers, data engineers, and database administrators.
- PostgreSQL: Native async driver support for advanced data types (
UUID,JSONB,NUMERIC,TIMESTAMPTZ, Arrays, Composite types). - MySQL & MariaDB: Native protocol integration for MySQL 8+ and MariaDB (including Sequence management).
- SQLite: Fast local SQLite file inspection, schema editing, and query execution.
- Redis Key-Value & Stream Browser:
- Tree and flat key views with prefix filtering, TTL editor, and real-time type inspection (
String,Hash,List,Set,ZSet,Stream). - Redis CLI Console: Embedded interactive command console with syntax highlighting and auto-completion.
- Redis Stream Panel: Field/Value inspector with range loading and live entries.
- SlowLog & Metrics Dashboard: Server latency monitor,
INFOstatistics, and client transfer tools. - Database index switching (
db0βdb15).
- Tree and flat key views with prefix filtering, TTL editor, and real-time type inspection (
- Built-in Local MCP Server: Exposes database metadata, schema catalogs, and safe read queries to external AI clients (Claude Desktop, Cursor, Windsurf, Antigravity).
- Enterprise Security: Constant-time SHA-256 Bearer Token verification and strict HTTP Origin/Host filtering against DNS rebinding.
- Multi-Provider AI Integration: Direct support for Ollama (Local LLMs), Google Gemini, OpenAI, Anthropic Claude, and OpenRouter.
- Context-Aware SQL Generation: Automatically injects current database schema and active table structures into the prompt context for accurate query generation.
- Live Streaming & 1-Click Execution: Real-time markdown chat streaming with instant "Run in Editor" or "Insert into Script" actions.
- Schema-Aware Autocomplete: Context-aware completion for table names, columns, SQL keywords, and stored functions.
- Query Parameters Modal: Automatically detects
:param,$1, and?placeholders and prompts with typed input dialogs. - Visual Split Views: Single pane, Vertical split, or Horizontal split with drag-to-resize.
- 1-Click SQL Formatting: Built-in Beautify and Minify formatters.
- Plan Diagram Flowchart: Interactive visual node flowchart with color-coded cost severity (Green / Amber / Red).
- Tree & Raw Views: Expandable/collapsible hierarchy showing node cost, startup cost, estimated rows, and index conditions.
- Multiple Modes: Supports
EXPLAIN (Estimated),EXPLAIN ANALYZE (Actual Execution), andJSONformat inspection.
- High-Performance Data Grid: Virtualized row rendering, inline cell editing, sorting, column filters, and smart pagination.
- Data Generator (Mocking): Generates realistic mock data (Names, Emails, Dates, Regex patterns, Foreign Key constraints).
- Database Compare & Sync: Visual structure and data comparison between two databases with auto-generated sync DDL/DML scripts.
- Schema Migration: Create snapshot checkpoints, track structural changes, and export migration scripts.
- Dump Backup & Restore: Full database backup and restore supporting compressed
.sql.gzfiles.
- Transaction Isolation Panel: Switch isolation levels (
Read Committed,Repeatable Read,Serializable) with live elapsed time tracking and uncommitted close protection. - Safe Mode: Read-Only lock mode to prevent accidental mutations on Production databases.
- OS Keyring Integration: Credentials safely encrypted in Windows Credential Manager, macOS Keychain, or Linux Secret Service.
- SSH Tunneling (Russh): Connect to private databases via bastion hosts with pure-Rust SSH port forwarding.
- Liquid Glass Theme: Modern UI aesthetics inspired by macOS Sequoia and VisionOS with Dark and Light mode support.
- Multi-Language (i18n): English and Vietnamese language support with instant switching.
- Multi-Connection Rail (DbRail): Sidebar rail for managing multiple open connections concurrently with environment color tags.
| Layer | Technologies |
|---|---|
| Desktop Shell | Tauri v2 (Rust) |
| Backend Runtime | Tokio Β· SQLx Β· Rusqlite Β· Redis-rs |
| Protocols & Security | rmcp (MCP SDK) Β· Axum Β· Russh Β· Keyring-rs |
| Frontend Framework | React 19 Β· TypeScript Β· Vite 8 |
| Editor & Terminal | Monaco Editor Β· @xterm/xterm |
| Styling & Icons | Vanilla CSS (Liquid Glass Design Tokens) Β· Lucide Icons |
| Testing & Linting | Vitest Β· Oxlint |
- Node.js:
>= 18.x - Rust:
>= 1.75(Rust 2024 Edition) - Package Manager:
npm,pnpm, oryarn
-
Clone the repository:
git clone https://github.com/Phamthang1997/tablegrid.git cd tablegrid -
Install frontend dependencies:
npm install
-
Start in Development Mode:
npm run dev
-
Run Unit Tests & Linting:
npm test # Run Vitest test suites npx oxlint src # Run Oxlint code analysis
-
Build Desktop App for Production:
npm run build # Compile frontend bundle & build native desktop executable
If you download a .dmg release built from GitHub Actions, macOS Gatekeeper may block unsigned binaries downloaded via web browsers. To resolve this:
- Drag
TableGrid.appinto your/Applicationsfolder. - Open Terminal and run:
sudo xattr -rd com.apple.quarantine /Applications/TableGrid.app
table/
βββ src/ # Frontend Source Code (React 19 + TypeScript)
β βββ components/ # UI Components
β β βββ ai/ # AI Assistant & Chatbot Panels
β β βββ redis/ # Redis Key Browser, Stream, Console & SlowLog
β β βββ ConnectionManager.tsx # Database Connections & Credential Dialogs
β β βββ DataGrid.tsx # Virtualized Data Grid Table & In-cell Editor
β β βββ SqlEditor.tsx # Monaco Editor SQL Workspace & Split Panes
β β βββ ExplainViewer.tsx # Visual EXPLAIN Flowchart & Plan Analyzer
β β βββ DbRail.tsx # Multi-Connection Sidebar Switcher Rail
β β βββ TxControl.tsx # Transaction Isolation & Safety Toolbar
β β βββ TerminalPanel.tsx # Embedded Local & Remote SSH Terminal
β βββ sql/ # Monaco SQL Language Service & Result Formatters
β βββ utils/ # Tauri IPC Bridge & Helper Utilities
β βββ i18n/ # Internationalization (EN / VI Locales)
β βββ App.tsx # Main Workspace Container Component
β βββ index.css # Liquid Glass Design System Tokens
βββ src-tauri/ # Backend Source Code (Rust + Tauri v2)
β βββ src/
β β βββ app/ # Tauri Handlers Registration & Run Entry
β β βββ database/ # PostgreSQL / MySQL / SQLite Drivers & Catalog
β β βββ redis_db/ # Redis Connection Session & Command Engine
β β βββ mcp/ # Built-in Streamable HTTP MCP Server & Security
β β βββ state/ # Connection Pool Registry & App State
β β βββ ssh/ # Russh Secure Port Forwarding Tunnel
β β βββ terminal/ # Local PTY & SSH Remote Shell Streamer
β β βββ credentials/ # OS Keyring Secure Storage
β β βββ datagen/ # Schema-Aware Mock Data Generator
β β βββ compare/ # Database Schema & Data Comparison
β β βββ stats/ # Database Server Performance Statistics
β β βββ tx/ # Transaction Isolation & Safe Mode Handlers
β βββ Cargo.toml # Rust Dependencies Manifest
β βββ tauri.conf.json # Tauri Desktop Configuration
βββ package.json
βββ README.md
- Author & Creator: Pham Thang
- π§ Email: pthang888@gmail.com
- πΌ LinkedIn: thangpx
- Copyright: Β© 2026 Pham Thang and TableGrid Contributors
- License: Released under the GNU Affero General Public License v3.0 (AGPL-3.0).
- Code of Conduct: Please follow our Contributor Covenant Code of Conduct.