How sriya226/developer-vault works
Developer Vault is a full-stack bookmark and resource manager. Users register or log in, then browse, search, filter, organize, create, edit, favorite, export, and inspect saved resources; URL metadata can prefill resource details. The API authenticates requests, applies user-scoped operations and plan limits, and persists accounts, bookmarks, and payments. Separate product branches cover categories, dashboard metrics, settings, and premium billing. Edges reflect the sampled source index, excerpts, and README; unsampled page and controller internals are represented at subsystem level.
Main entry points: routes REST route dispatch · billingController.js Plan and payment operations · User.js User records · App.jsx Route shell
Components 25
Client application
- Route shell
client/src/App.jsx - Landing page
client/src/pages/Landing.jsx - Dashboard views
client/src/pages - Resource browsing and forms
client/src/components - Vault state and modals
client/src/context/VaultContext.jsx - Bookmark data hook
client/src/hooks/useBookmarks.js - Authentication pages and state
client/src/context/AuthContext.jsx - Bookmark API client
client/src/services/bookmarkService.js - Auth API client
client/src/services/authService.js - HTTP client
client/src/services/api.js
Identity and accounts
- JWT authentication
server/middleware/authMiddleware.js - Account operations
server/controllers/authController.js - Profile operations
server/controllers/userController.js - User records
server/models/User.js
Resource management
- Bookmark operations
server/controllers/bookmarkController.js - URL metadata fetcher
server/services/metadataService.js - Bookmark records
server/models/Bookmark.js
Categories and billing
- Category operations
server/controllers/categoryController.js - Plan and payment operations
server/controllers/billingController.js - Payment records
server/models/Payment.js
API and persistence
- REST route dispatch
server/routes - Express API
server/server.js - MongoDB connection
server/config/db.js
Other components
- Developer
- Razorpay
Connections 30
- Developer → Route shell: uses
- Route shell → Landing page: routes to
client/src/App.jsx - Route shell → Dashboard views: routes to
client/src/App.jsx - Developer → Resource browsing and forms: manages resources
- Resource browsing and forms → Vault state and modals: opens dialogs
client/src/context/VaultContext.jsx - Bookmark data hook → Bookmark API client: requests data
client/src/hooks/useBookmarks.js - Vault state and modals → Bookmark API client: invokes operations
client/src/context/VaultContext.jsx - Developer → Authentication pages and state: registers or logs in
- Authentication pages and state → Auth API client: uses
client/src/services/authService.js - Bookmark API client → HTTP client: sends requests
client/src/services/bookmarkService.js - Auth API client → HTTP client: sends requests
client/src/services/authService.js - HTTP client → Express API: calls REST API
- Express API → REST route dispatch: dispatches
server/server.js - REST route dispatch → JWT authentication: protects routes
server/routes/bookmarkRoutes.js - REST route dispatch → Account operations: dispatches
server/routes/authRoutes.js - REST route dispatch → Profile operations: dispatches
server/routes/userRoutes.js - REST route dispatch → Bookmark operations: dispatches
server/routes/bookmarkRoutes.js - REST route dispatch → Category operations: dispatches
server/routes/categoryRoutes.js - REST route dispatch → Plan and payment operations: dispatches
server/routes/billingRoutes.js - JWT authentication → User records: loads account
server/middleware/authMiddleware.js - Account operations → User records: reads and writes
server/controllers/authController.js - Profile operations → User records: updates
server/controllers/userController.js - Bookmark operations → Bookmark records: queries and writes
server/controllers/bookmarkController.js - Bookmark operations → URL metadata fetcher: fetches URL metadata
server/controllers/bookmarkController.js - Category operations → Bookmark records: counts and reassigns
server/controllers/categoryController.js - Plan and payment operations → Bookmark records: counts usage
server/controllers/billingController.js - Plan and payment operations → Payment records: records payments
server/controllers/billingController.js - Plan and payment operations → User records: activates plan
server/controllers/billingController.js - Plan and payment operations → Razorpay: creates orders
server/controllers/billingController.js - Express API → MongoDB connection: connects database
server/server.js