How kanishka373/schemalens works
SchemaLens connects to a MySQL database, reads schema metadata, and presents it through an interactive browser-based explorer. The graph preserves the documented overview, diagram, table and relationship views, settings, and PDF export. Backend wiring is shown from the excerpts; some frontend feature internals were not sampled, so documented UI relationships cite the README.
Main entry points: app.jsx App state and navigation · api.js API client · SchemaGraph.jsx Schema graph · ConnectForm.jsx Connect form
Components 22
Schema browser
- Connect form
frontend/src/components/ConnectForm.jsx - API client
frontend/src/services/api.js - App state and navigation
frontend/src/app.jsx - Connection screen
frontend/src/components/LoadingScreen.jsx - Navigation
frontend/src/components/Sidebar.jsx - Overview metrics
frontend/src/components/Dashboard.jsx - Schema insights
frontend/src/components/Insights.jsx - Table search
frontend/src/components/SearchBar.jsx - Schema graph
frontend/src/components/SchemaGraph.jsx - Graph table cards
frontend/src/components/TableNode.jsx - Selected table details
frontend/src/components/TablePanel.jsx - Table explorer
frontend/src/components/TablesView.jsx - Relationships view
frontend/src/app.jsx - Connection settings
frontend/src/components/Settings.jsx - PDF export
frontend/src/components/SchemaGraph.jsx - Toast notifications
frontend/src/components/toast.jsx
Schema API
- Express server
backend/index.js - Schema routes
backend/routes/schema.js - Request handlers
backend/controllers/schemaController.js - Metadata scanner
backend/services/schemaScanner.js
Metadata source
- MySQL information_schema
Other components
- Database user
Connections 21
- Database user → Connect form: enters credentials
Readme.md - Connect form → API client: submits connection
frontend/src/components/ConnectForm.jsx - API client → Express server: sends API requests
Readme.md - Express server → Schema routes: mounts routes
backend/index.js - Schema routes → Request handlers: dispatches requests
backend/routes/schema.js - Request handlers → Metadata scanner: calls scans
backend/controllers/schemaController.js - Metadata scanner → MySQL information_schema: reads metadata
backend/services/schemaScanner.js - API client → App state and navigation: returns schema data
frontend/src/services/api.js - App state and navigation → Connection screen: shows connection state
frontend/src/app.jsx - App state and navigation → Navigation: renders navigation
frontend/src/app.jsx - App state and navigation → Overview metrics: renders overview
frontend/src/app.jsx - App state and navigation → Schema insights: renders insights
frontend/src/app.jsx - App state and navigation → Table search: renders table search
frontend/src/app.jsx - App state and navigation → Schema graph: renders diagram
frontend/src/app.jsx - Schema graph → Graph table cards: renders table cards
frontend/src/components/SchemaGraph.jsx - App state and navigation → Selected table details: shows selection details
frontend/src/app.jsx - App state and navigation → Table explorer: renders explorer
frontend/src/app.jsx - App state and navigation → Relationships view: renders relationships
frontend/src/app.jsx - App state and navigation → Connection settings: renders settings
frontend/src/app.jsx - Schema graph → PDF export: exports diagram
Readme.md - App state and navigation → Toast notifications: shows connection notices
frontend/src/app.jsx