How ajayteotia/storit works
Main System Components
A. Client Layer
• Next.js Frontend (src/app directory)
• UI Components (src/components)
• Client-side Hooks (src/hooks)
B. Server Layer
• Next.js Server Components
• Server Actions (src/lib/actions)
C. External Services Layer
• Appwrite Services
• Authentication
• Storage
• Database
Component Relationships
a) Frontend Architecture:
(Root Layout) → (Auth Layout) → (Sign In/Sign Up Pages)
• ↘ (Root Layout) → (Type-specific Pages)
b) Component Interactions:
UI Components ↔ Server Actions ↔ Appwrite Services
Specific Implementation Details
A. Authentication Flow:
• AuthForm component → User Actions → Appwrite Auth
• OTP verification system
• Protected routes structure
B. File Management System:
• File upload flow
• File actions (rename, delete, share)
• Storage management
• Search and sort functionality
Technical Stack Representation
Specific technology badges:
• Next.js 15
• React 19
• TypeScript
• Tailwind CSS
• Appwrite SDK
• ShadCN UI
Data Flow Visualization
Following flows:
User → Authentication → File Operations → Storage
↑ ↓
• Data Retrieval ────────────┘
Key Integration Points
Highlight:
• Appwrite configuration (src/lib/appwrite)
• Server actions integration
• File handling utilities
• State management
Architectural Patterns
Emphasize:
• Route groups ((auth) and (root))
• Component composition
• Server/Client component separation
• API integration patterns
External service integration
• User authentication
• File uploads and management
• Storage tracking
• Search and sort functionality
• File sharing capabilities
• Dashboard analytics
This will provide a complete picture of the system's architecture while maintaining clarity and readability.