Baseular
SQL vault with AI-powered query generation. Obsidian-style interface for database work.
Quick Start (Mac Studio)
- Clone/pull the repo to your Mac Studio
- Run the build script:
./build-mac.sh - Install the app from
src-tauri/target/aarch64-apple-darwin/release/bundle/
Ollama Setup
Make sure Ollama is running on your Mac Studio:
ollama serveVerify models are available:
curl http://localhost:11434/api/tagsDefault 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:11434or cloud APIs
Development
# Web-only (no Tauri APIs)
npm run dev
# Full Tauri dev (needs display)
npm run tauri dev
# Build
npm run build