How maxethan2/nextjs-appwrite works
This is a Next.js user-account app with profile management, personal to-do lists, email verification, and a camera-based sign-language feature. The primary workflow is account creation or login, then viewing a profile and using its account and to-do features; the camera is a separate capability. The graph includes sampled API-to-Appwrite calls and documented UI/module references. Some route and camera internals were not excerpted, so uncertain links are omitted or marked unverified.
Main entry points: appwrite.ts Appwrite clients · profile/page.tsx Profile page · todo/page.tsx To-do page · route.ts Email verification
Components 26
User experience
- Landing page
src/app/page.tsx - Navigation
src/app/components/MyNavBar.tsx - Theme switcher
src/app/components/ThemeSwitcher.tsx
Identity and profile
- Sign up page
src/app/signup/page.tsx - Login page
src/app/login/page.tsx - Signup endpoint
src/app/api/users/signup/route.ts - Login endpoint
src/app/api/users/login/route.ts - Session endpoints
src/app/api/users/loggedInUser/route.ts - Signout endpoint
src/app/api/users/signout/route.ts - Profile page
src/app/profile/page.tsx - Profile editor
src/app/profile/components/EditProfile.tsx - Profile actions
src/app/actions/profile.ts - Photo endpoint
src/app/api/users/profilePhoto/route.ts - Email verification
src/app/api/users/verifyEmail/route.ts - Verification page
src/app/profile/verifyEmail/page.tsx
Personal tasks
- To-do page
src/app/profile/todo/page.tsx - To-do item UI
src/app/profile/todo/components/Todo.tsx - To-do endpoints
src/app/api/users/todoList/route.ts - Create to-do endpoint
src/app/api/users/todoList/create/route.ts
Sign recognition
- Camera page
src/app/camera/page.tsx - Camera actions
src/app/actions/Camera.ts - ASL prediction model
src/app/actions/CNN_MODEL/ASL_CNN_Single_Prediction.py
Server platform
- Client state
src/lib/server/state-management/state.ts - Appwrite clients
src/lib/server/appwrite.ts
Other components
- Visitor
- Appwrite
Connections 26
- Visitor → Landing page: visits
- Visitor → Sign up page: opens
- Visitor → Login page: opens
- Signup endpoint → Appwrite clients: creates account
src/app/api/users/signup/route.ts - Login endpoint → Appwrite clients: starts session
src/app/api/users/login/route.ts - Session endpoints → Appwrite clients: gets account
src/app/api/users/loggedInUser/route.ts - Signout endpoint → Appwrite clients: deletes session
src/app/api/users/signout/route.ts - Photo endpoint → Appwrite clients: gets account
src/app/api/users/profilePhoto/route.ts - Email verification → Appwrite clients: verifies email
src/app/api/users/verifyEmail/route.ts - Appwrite clients → Appwrite: configures access
src/lib/server/appwrite.ts - Profile page → Profile editor: renders
src/app/profile/page.tsx - Profile editor → Profile actions: uses actions
src/app/profile/components/EditProfile.tsx - Profile actions → Appwrite clients: updates account
src/app/actions/profile.ts - Profile page → Client state: reads and updates
src/app/profile/page.tsx - To-do page → To-do item UI: renders
src/app/profile/todo/page.tsx - To-do page → Client state: uses state
src/app/profile/todo/page.tsx - To-do page → To-do endpoints: loads tasks
- To-do page → Create to-do endpoint: creates tasks
- Verification page → Email verification: submits verification
- Profile page → Session endpoints: fetches user
src/app/profile/page.tsx - Profile page → Photo endpoint: fetches photo
src/app/profile/page.tsx - Profile page → Email verification: requests email
src/app/profile/page.tsx - Camera page → Camera actions: uses actions
src/app/camera/page.tsx - Camera actions → ASL prediction model: predicts signs
- Navigation → Theme switcher: renders
src/app/components/MyNavBar.tsx - Landing page → Visitor: presents content