schemalens
v0.0.5
Published
A local-first developer tool that generates living architecture diagrams from your database schema. Point it at a database, and SchemaLens visualizes tables, columns, and foreign-key relationships on an interactive canvas.
Readme
SchemaLens
A local-first developer tool that generates living architecture diagrams from your database schema. Point it at a database, and SchemaLens visualizes tables, columns, and foreign-key relationships on an interactive canvas.
Supports PostgreSQL, MySQL, SQL Server, Oracle, and SQLite.
Features
- BFS crawl from any table to explore related tables up to a configurable depth
- Ghost nodes for references beyond the crawl boundary, expandable with a click
- Schema-aware navigation with cross-schema relationship tracking
- Schema diffing to see what changed between refreshes
- Workspace persistence so you can save and restore canvas layouts
- Runs entirely on your machine — no data leaves localhost
Install
npm install -g schemalensUsage
schemalensThis starts a local server and opens the UI in your browser. Connect to a database from the interface.
Set a custom port with the SCHEMALENS_PORT environment variable:
SCHEMALENS_PORT=4000 schemalensDevelopment
SchemaLens is a TypeScript monorepo using npm workspaces.
npm install
npm run devThis starts the backend (port 3100) and Vite dev server (port 5173) concurrently.
License
MIT
