How awadhdhoot23/veltrix-ui works
Veltrix UI is a full-stack React component catalog: visitors browse and filter components, open a detail page, preview or copy source, and optionally bookmark items. Administrators authenticate and manage catalog entries through the API. The README documents the live sandbox, landing-page showcase, progressive catalog loading, and cloud-backed API; sampled source confirms several frontend calls and backend route/controller/model relationships. Some feature wiring is only documented, so those links cite the README rather than implying unsampled implementation details.
Main entry points: ComponentDetailPage.jsx Component detail · App.jsx Route shell · api.js HTTP client · HomePage.jsx Landing page
Components 26
Platform experience
- Route shell
src/App.jsx - Landing page
src/pages/HomePage.jsx - ShapeGrid engine
src/components/ShapeGrid.jsx - Bento showcase
src/components/BentoShowcase.jsx
Catalog and previews
- Catalog browser
src/pages/ComponentsPage.jsx - Component cards
src/components/CardComponent.jsx - Component detail
src/pages/ComponentDetailPage.jsx - Live compiler preview
src/components/LivePreview.jsx - Dependency list
src/components/DependenciesDropdown.jsx - Favorites storage
src/hooks/useFavorites.js - Catalog state
src/context/ComponentsContext.jsx
Admin and identity
- Session state
src/context/AuthContext.jsx - Admin console
src/pages/AdminPage.jsx
API and persistence
- HTTP client
src/utils/api.js - Express application
server/src/index.js - Catalog routes
server/src/routes/component.routes.js - Auth routes
server/src/routes/auth.routes.js - Catalog operations
server/src/controller/component.controller.js - Login and session
server/src/controller/auth.controller.js - JWT guard
server/src/middleware/auth.middleware.js - Component records
server/src/models/Component.models.js - User records
server/src/models/User.models.js - Database connection
server/src/config/db.js
Other components
- Developer visitor
- Administrator
- MongoDB Atlas
Connections 32
- Developer visitor → Route shell: opens
README.md - Administrator → Route shell: opens admin
README.md - Route shell → Landing page: routes to
src/App.jsx - Route shell → Catalog browser: routes to
src/App.jsx - Route shell → Component detail: routes to
src/App.jsx - Route shell → Admin console: routes to
src/App.jsx - Landing page → ShapeGrid engine: renders
src/pages/HomePage.jsx - Landing page → Bento showcase: renders
src/pages/HomePage.jsx - Landing page → Catalog state: reads catalog
src/pages/HomePage.jsx - Catalog browser → Catalog state: reads catalog
src/pages/ComponentsPage.jsx - Catalog browser → Component cards: renders cards
src/pages/ComponentsPage.jsx - Catalog browser → Favorites storage: reads bookmarks
src/pages/ComponentsPage.jsx - Component detail → Catalog state: reads catalog
src/pages/ComponentDetailPage.jsx - Component detail → Live compiler preview: renders preview
src/pages/ComponentDetailPage.jsx - Component detail → Dependency list: shows dependencies
src/pages/ComponentDetailPage.jsx - Component detail → Favorites storage: tracks bookmarks
src/pages/ComponentDetailPage.jsx - Catalog state → HTTP client: fetches catalog
src/context/ComponentsContext.jsx - Component detail → HTTP client: fetches detail
src/pages/ComponentDetailPage.jsx - Session state → HTTP client: authenticates
src/context/AuthContext.jsx - Admin console → Session state: uses session
src/pages/AdminPage.jsx - Admin console → HTTP client: manages entries
src/pages/AdminPage.jsx - HTTP client → Express application: calls REST API
README.md - Express application → Database connection: connects database
server/src/index.js - Express application → Catalog routes: mounts routes
server/src/index.js - Express application → Auth routes: mounts routes
server/src/index.js - Catalog routes → Catalog operations: dispatches
server/src/routes/component.routes.js - Catalog routes → JWT guard: guards writes
server/src/routes/component.routes.js - Auth routes → Login and session: dispatches
server/src/routes/auth.routes.js - Auth routes → JWT guard: guards session
server/src/routes/auth.routes.js - Catalog operations → Component records: reads and writes
server/src/controller/component.controller.js - Login and session → User records: checks users
server/src/controller/auth.controller.js - Database connection → MongoDB Atlas: connects
README.md