Qianliyan (千里眼)

Dual-Target Architecture

The SQLite engine, type serialization, and connection pool live in pure Zig. macOS calls it over native C-ABI, while the web viewer executes the identical core in WebAssembly (WASI).

architecture.txt
macOS GUI (SwiftUI) ──[C-ABI]─┐
                              ├──> Zig Core (stdgo.database.sql) ────> SQLite Engine
Web Browser (HTML/JS) ─[Wasm]─┘

Key Features

Native macOS Performance

Pure SwiftUI interface with sub-second startup, low memory footprint, system dark mode integration, and zero Electron overhead.

100% Client-Side Privacy

The Web viewer executes entirely inside browser Wasm memory with zero uploads. The macOS app opens local files directly with zero telemetry.

Multi-Tab SQL Editor

Run multiple concurrent query tabs with sub-millisecond timing metrics, query history, and thread-safe cancellation (⌘.).

Schema & DDL Inspector

Hierarchical navigation for tables, column types, primary and foreign keys, and indexes, plus one-click inspection of raw CREATE TABLE DDL.

Smooth Grid & Export

Two-way scrollable result grid with adaptive column sizing, cell and row copying, and instant export to CSV or formatted JSON.

Instant Sample Database

Launch an in-memory e-commerce database with one click to test schema browsing, multi-table JOINs, and query timings immediately.