Baseular

SQL vault with AI-powered query generation. Obsidian-style interface for database work.

Quick Start (Mac Studio)

  1. Clone/pull the repo to your Mac Studio
  2. Run the build script:
    ./build-mac.sh
  3. Install the app from src-tauri/target/aarch64-apple-darwin/release/bundle/

Ollama Setup

Make sure Ollama is running on your Mac Studio:

ollama serve

Verify models are available:

curl http://localhost:11434/api/tags

Default model: qwen-coder-next:32k

Features

  • Vault file system — Organize SQL files with YAML frontmatter
  • Monaco editor — Full SQL syntax highlighting
  • Query runner — Execute against PostgreSQL, MySQL, SQLite
  • Schema introspection — Auto-discover table structures
  • AI assistant — Dual-model routing:
    • Local (Ollama) — Full database access, can query actual data
    • Cloud (OpenAI/Anthropic) — Schema-only, no sensitive data leaves your machine

Architecture

  • Frontend: React + TypeScript + Tailwind + Monaco Editor
  • Backend: Tauri (Rust) with native DB drivers
  • AI: Local Ollama at http://192.168.4.49:11434 or cloud APIs

Development

# Web-only (no Tauri APIs)
npm run dev

# Full Tauri dev (needs display)
npm run tauri dev

# Build
npm run build