The AI-native SQL Client.
> **The Cursor for Data.** Connect to any database, query with AI, and build live data apps -- all from your browser. Stop wrestling with complex SQL and slow, bloated database tools. Write queries in plain English, get instant results, and turn them into live React apps with scheduled data refresh.  ## 🚀 Why Mako? A modern SQL client built for the AI era, replacing slow desktop tools with a fast, collaborative, AI-powered experience. - **✨ AI Query Generation**: Write queries in natural language. Our schema-aware AI generates optimized SQL instantly. - _Replaces: DataGrip, DBeaver, Postico_ - **🧱 dbt Transforms**: Build, run, and schedule dbt Core projects in-app -- file IDE, jobs, run history, lineage, and GitHub sync. - _Replaces: dbt Cloud_ - **⚛️ React Apps**: Ask the agent to build live React apps wired to your data through secure, credential-free bindings -- scheduled Parquet materialization, queried with DuckDB in the browser. - _Replaces: Metabase, Looker, Lovable, v0, internal-tool builders_ - **🕓 Version History**: Every console save is an immutable snapshot, and apps live in git -- browse and restore either. - _Replaces: Lost SQL files, manual backups_ - **🖥️ Mako Desktop**: Native app that bundles a local agent so `localhost` databases work out of the box. - _Replaces: SSH tunnels and bastion hops for local DBs_ - **👥 Team Collaboration**: Share connections, version-control queries, and work together in real-time. - _Replaces: Passing credentials around, lost SQL files_ - **⚡ Blazing Fast**: No Java or Electron bloat. Opens instantly in your browser and runs smooth. - _Replaces: Slow desktop database tools_ ## 📸 Screenshots **AI-powered console** — ask in plain English, get a verified query and live results.  **Transforms (dbt)** — build, run, and schedule dbt Core projects with a file IDE, jobs, run history, and lineage.  **Apps** — build live React apps wired to your data, rendered in a sandboxed preview.  ## 🔌 Integrations ### Databases | Integration | Status | Description | | --------------------- | ------- | ---------------------------------------------------- | | **PostgreSQL** | ✅ Live | Connect to PostgreSQL for relational data queries | | **MongoDB** | ✅ Live | Connect to MongoDB for flexible document-based data | | **BigQuery** | ✅ Live | Analyze large datasets with Google BigQuery | | **ClickHouse** | ✅ Live | Fast OLAP queries on ClickHouse | | **MySQL** | ✅ Live | Query MySQL databases with natural language | | **Redshift** | ✅ Live | Query Amazon Redshift data warehouses | | **Cloud SQL** | ✅ Live | Connect to Google Cloud SQL (Postgres) | | **Cloudflare D1** | ✅ Live | Query Cloudflare D1 SQLite databases | | **Cloudflare KV** | ✅ Live | Browse and query Cloudflare Workers KV | ### Data Connectors Sync external SaaS data into Mako's data warehouse for querying and apps. | Integration | Status | Description | | -------------- | ------- | ------------------------------------------------ | | **Stripe** | ✅ Live | Track payments, subscriptions, and billing data | | **PostHog** | ✅ Live | Analyze product analytics and user behavior | | **Close.com** | ✅ Live | Sync CRM data (leads, opportunities, activities) | | **Claap** | ✅ Live | Sync recordings and workspace data | | **Calendly** | ✅ Live | Sync events, invitees, and event types | | **GraphQL** | ✅ Live | Query any GraphQL API with custom endpoints | | **REST** | ✅ Live | Query any REST API with custom endpoints | | **BigQuery** | ✅ Live | Sync BigQuery datasets into the warehouse | ## 🏗️ Architecture ``` ┌─────────────────────────────────────────────────────────┐ │ Frontend (React + Vite) │ │ ┌──────────┐ ┌──────────────┐ ┌─────────────────────┐ │ │ │ Console │ │ Apps │ │ AI Chat (Vercel │ │ │ │ (Monaco) │ │ (React + │ │ AI SDK) │ │ │ │ │ │ DuckDB) │ │ │ │ │ └──────────┘ └──────────────┘ └─────────────────────┘ │ │ ▲ ▲ ▲ │ │ │ Parquet/Arrow │ │ │ │ via OPFS cache │ │ └───────────┼──────────┼──────────────────┼──────────────┘ │ │ │ ┌───────────┼──────────┼──────────────────┼──────────────┐ │ API (Hono + Node.js) │ │ ┌──────────────────────────────────────────────────┐ │ │ │ Unified Agent (expertise modes: Query / │ │ │ │ Sync Flow / React App / Transforms / │ │ │ │ Explore, switched via enable_mode) │ │ │ └──────────────────────────────────────────────────┘ │ │ ┌──────────────┐ ┌───────────────┐ ┌──────────────┐ │ │ │ DB Drivers │ │ Connectors │ │ App binding │ │ │ │ (9 drivers) │ │ (8 sources) │ │ engine │ │ │ │ │ │ │ │ (DuckDB │ │ │ │ │ │ │ │ + Parquet) │ │ │ └──────────────┘ └───────────────┘ └──────────────┘ │ │ ▲ │ │ ┌─────┴──────┐ │ │ │ Inngest │ (scheduled refresh, │ │ │ │ incremental sync) │ │ └────────────┘ │ └────────────────────────────────────────────────────────┘ │ │ ┌──────┴──────┐ ┌─────┴──────────┐ │ MongoDB │ │ User DBs │ │ (metadata, │ │ (PG, BQ, CH, │ │ warehouse)│ │ MySQL, etc.) │ └─────────────┘ └────────────────┘ ``` **Key technology choices:** - **DuckDB** (both server-side via `@duckdb/node-api` and browser-side via `@duckdb/duckdb-wasm`): powers Parquet artifact generation for app bindings and in-browser SQL over them - **Apache Arrow / Parquet**: server materializes query results into Parquet, served to browser as Arrow IPC for zero-copy rendering - **Inngest**: event-driven job queues for scheduled app binding refresh and incremental data sync - **Hono**: lightweight, fast HTTP framework for the API - **Monaco Editor**: VS Code's editor for the SQL console - **Vercel AI SDK**: multi-provider LLM abstraction (OpenAI, Anthropic, Google) ## 📦 Artifact Storage App data bindings (and app deployments, dbt outputs, and chat attachments) are materialized into an artifact store on the backend. The configuration names below predate apps -- they come from the since-removed dashboards feature -- and are kept so existing deployments keep working. Three storage backends: - `filesystem` -- default; stores files on local disk - `gcs` -- Google Cloud Storage - `s3` -- S3-compatible bucket ```env DASHBOARD_ARTIFACT_STORE=filesystem # Optional shared settings DASHBOARD_ARTIFACT_PREFIX=dashboards DASHBOARD_ARTIFACT_DIR=/absolute/path/to/artifacts # filesystem only ``` #### Google Cloud Storage ```env DASHBOARD_ARTIFACT_STORE=gcs GCS_DASHBOARD_BUCKET=your-bucket-name DASHBOARD_ARTIFACT_PREFIX=dashboard-artifacts/prod ``` See the [docs](https://docs.mako.ai) for full GCS/S3 provisioning instructions. ## 🛠️ Quick Start 1. **Clone & Install** ```bash git clone https://github.com/mako-ai/mako.git cd mako pnpm install ``` 2. **Configure Environment** Copy `.env.example` (if available) or create `.env`: ```env # Local development connects to the shared `dev` database, an Atlas DB that is # refreshed nightly from production. Grab the `dev` connection string from the # team vault. (`staging` backs non-migration PR previews; never point local at # `production`.) DATABASE_URL=mongodb+srv://Built with ❤️ by the Mako Team. Open Source and self-hostable.