How laptop-iq/savelink works
This is a link-saving and link-management application with a React frontend and Express backend. Users can sign up, verify accounts, log in, recover passwords, then save and organize links; the vault also supports sharing, visits, search, statistics, and import/export through backend routes. The frontend includes a local-cache fallback and reusable vault UI. The README is empty, and several frontend/backend modules are indexed but not excerpted, so their internal connections are shown only where the available excerpts support them.
Main entry points: App.jsx App routing · LinkVault-refactored.jsx Link vault · server.js API server · userController.js Account operations
Components 27
Frontend
- App routing
frontend/src/App.jsx - Navigation
frontend/src/components/Navbar.jsx - Link vault
frontend/src/components/LinkVault-refactored.jsx - Vault API and cache
frontend/src/components/db-and-api.js - Vault widgets
frontend/src/components/components.jsx - Link dialogs
frontend/src/components/modal-components.jsx - Link cards
frontend/src/components/link-card.jsx - Filters and empty state
frontend/src/components/empty-and-header.jsx - Form widgets
frontend/src/components/form-components.jsx
Account access
- Login
frontend/src/Context/Login.jsx - Signup
frontend/src/Context/Signup.jsx - OTP verification
frontend/src/Context/VerifyOtp.jsx - Password recovery
frontend/src/Context/ForgotPassword.jsx - Auth state
frontend/src/Context/AuthContext.jsx
Backend API
- API server
backend/server.js - User routes
backend/routes/userRoute.js - Link routes
backend/routes/linkRoutes.js - JWT authentication
backend/middleware/auth.js - Account operations
backend/controllers/userController.js - Link operations
backend/controllers/linkController.js
Data and email
- User records
backend/models/userModel.js - Link records
backend/models/linkModel.js - Database connection
backend/config/db.js - OTP email delivery
backend/emailVerify/sendOtpMail.js - Verification email
backend/emailVerify/verifyOtpMail.js
Other components
- User
- Email transport
Connections 27
- User → App routing: uses
- App routing → Navigation: renders
frontend/src/App.jsx - App routing → Login: routes to
frontend/src/App.jsx - App routing → Signup: routes to
frontend/src/App.jsx - App routing → OTP verification: routes to
frontend/src/App.jsx - App routing → Password recovery: routes to
frontend/src/App.jsx - App routing → Link vault: renders
frontend/src/App.jsx - App routing → API server: requests profile
frontend/src/App.jsx - Link vault → Vault API and cache: calls
frontend/src/components/LinkVault-refactored.jsx - Link vault → Vault widgets: renders
frontend/src/components/LinkVault-refactored.jsx - Link vault → Link dialogs: renders
frontend/src/components/LinkVault-refactored.jsx - Link vault → Link cards: renders
frontend/src/components/LinkVault-refactored.jsx - Link vault → Filters and empty state: renders
frontend/src/components/LinkVault-refactored.jsx - Link dialogs → Form widgets: uses
frontend/src/components/modal-components.jsx - API server → Database connection: connects
backend/server.js - API server → User routes: mounts
backend/server.js - API server → Link routes: mounts
backend/server.js - User routes → Account operations: routes to
backend/routes/userRoute.js - User routes → JWT authentication: protects routes
backend/routes/userRoute.js - Link routes → Link operations: routes to
backend/routes/linkRoutes.js - Link routes → JWT authentication: protects routes
backend/routes/linkRoutes.js - JWT authentication → User records: loads user
backend/middleware/auth.js - Account operations → User records: reads and writes
backend/controllers/userController.js - Link operations → Link records: reads and writes
backend/controllers/linkController.js - Account operations → OTP email delivery: sends OTP
backend/controllers/userController.js - Account operations → Verification email: sends verification
backend/controllers/userController.js - OTP email delivery → Email transport: sends email
backend/emailVerify/sendOtpMail.js