Skip to content

Latest commit

Β 

History

286 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

image

TABLEGRID

License: AGPL v3 Contributor Covenant Tauri Rust React TypeScript

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.

image

TABLEGRID is a fast, cross-platform database workspace built with Tauri v2 + Rust and React 19 + TypeScript.

It combines database management, Redis tooling, SQL editing, AI assistance, migrations, monitoring, and security in one modern desktop app.


✨ Key Features

πŸ—„οΈ Multi-Database & Redis

  • PostgreSQL, MySQL, MariaDB, SQLite, and Redis.
  • Redis key browser, CLI console, Streams, SlowLog, metrics, TTL editing, and DB switching.

πŸ€– Built-In MCP Server

  • Expose database schema and safe read queries to AI clients such as Claude Desktop, Cursor, Windsurf, and Antigravity.
  • Secure Bearer Token authentication and Origin/Host validation.

🧠 AI SQL Copilot

  • Supports Ollama, Gemini, OpenAI, Claude, and OpenRouter.
  • Schema-aware SQL generation with streaming responses and one-click execution.

πŸ“ Monaco SQL Editor

  • Schema-aware autocomplete.
  • Query parameter detection.
  • Split editor views.
  • SQL Beautify & Minify.

πŸ“Š Visual EXPLAIN

  • Interactive query plan flowcharts.
  • Cost highlighting, Tree View, Raw View, and EXPLAIN ANALYZE.

⚑ Data Tools

  • Virtualized data grid with inline editing, filtering, sorting, and pagination.
  • Mock data generator.
  • Database Compare & Sync.
  • Schema migrations.
  • Backup & Restore with .sql.gz.

πŸ”’ Security & Transactions

  • Read-Only Safe Mode.
  • Transaction isolation controls.
  • OS Keyring credential storage.
  • SSH tunneling with pure-Rust russh.

🎨 Modern UI

  • Liquid Glass-inspired Dark & Light themes.
  • English & Vietnamese.
  • Multi-connection DbRail with environment color tags.

Database Client Β· Redis Browser Β· SQL IDE Β· AI Copilot Β· MCP Server Β· Query Analyzer Β· Migration Tool

All in one fast, native desktop app.


πŸ› οΈ Tech Stack

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

πŸš€ Getting Started

Prerequisites

  • Node.js: >= 18.x
  • Rust: >= 1.75 (Rust 2024 Edition)
  • Package Manager: npm, pnpm, or yarn

Installation & Development

  1. Clone the repository:

    git clone https://github.com/Phamthang1997/tablegrid.git
    cd tablegrid
  2. Install frontend dependencies:

    npm install
  3. Start in Development Mode:

    npm run dev
  4. Run Unit Tests & Linting:

    npm test          # Run Vitest test suites
    npx oxlint src    # Run Oxlint code analysis
  5. Build Desktop App for Production:

    npm run build     # Compile frontend bundle & build native desktop executable

⚠️ macOS Gatekeeper Troubleshooting ("App is damaged and can't be opened")

If you download a .dmg release built from GitHub Actions, macOS Gatekeeper may block unsigned binaries downloaded via web browsers. To resolve this:

  1. Drag TableGrid.app into your /Applications folder.
  2. Open Terminal and run:
    sudo xattr -rd com.apple.quarantine /Applications/TableGrid.app

πŸ“ Project Structure

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

πŸ“„ License & Code of Conduct

About

A free, open-source, blazing-fast, and beautifully crafted database client and SQL editor for everyone, with native support for PostgreSQL, MySQL, SQLite, and Redis.

Topics

Resources

Code of conduct

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages