Skip to content

adawolfa/dbml-view

Repository files navigation

dbml-view

Read-only viewer for .dbml files. Three panels — Structure (tree), Detail (selected table/enum), Diagram (ER). Runs as a browser SPA or as a Tauri desktop app with .dbml file-association on Windows.

dbml-view showing the showcase sample with the catalog.artists table detail open

Diagram rendering is meh, on par with all the other diagram software. But it lets you navigate the structure, which is what I was after, so there you go.

Usage

Develop

pnpm install
pnpm dev                             # web app
pnpm --filter @dbml-view/desktop dev # desktop shell

pnpm build, pnpm typecheck, pnpm lint, pnpm test:e2e.

Layout

pnpm workspace, ESM, TypeScript strict.

  • packages/parser@dbml/parse wrapper + id/lookup helpers
  • packages/layout — ELK-based table placement + custom orthogonal edge router
  • packages/components — framework-free Custom Elements (<dbml-structure>, <dbml-detail>, <dbml-diagram>)
  • packages/i18nen / cs
  • apps/web — Vite SPA shell
  • apps/desktop — Tauri 2 shell (Windows)
  • samples/.dbml fixtures

License

MIT — see LICENSE.

About

Read-only viewer for .dbml files

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors