How barun-work04/vaulted-cloud-storage works
Vaulted is a Next.js file-storage application backed by Appwrite. Users sign in or register by email, verify with an OTP, then browse a dashboard or categorized file lists, search and sort files, and manage them through upload and file actions. Server actions coordinate identity, file metadata, and binary storage; Appwrite supplies authentication, database, and storage services. The README documents download and permission-based access, but sampled excerpts do not establish every UI-to-action connection, so those links are left unverified.
Main entry points: file.action.ts File Actions API · page.tsx Dashboard · index.ts Appwrite Clients · user.actions.ts Account Actions
Components 21
Authentication
- Sign-in / Sign-up
app/(auth)/sign-in/page.tsx - Authentication Form
components/AuthForm.tsx - OTP Verification
components/OTPModal.tsx - Account Actions
lib/actions/user.actions.ts
File Experience
- Dashboard
app/(root)/page.tsx - Usage Summary
components/Dashboard/StorageUsageCard.tsx - Category Summary
components/Dashboard/CategoryCard.tsx - Recent Files
components/Dashboard/RecentFiles.tsx - Category Browser
app/(root)/[type]/page.tsx - Global Search
components/Search.tsx - File Card
components/Card.tsx
File Operations
- File Uploader
components/FileUploader.tsx - File Actions
components/ActionDropdown.tsx - Action Dialogs
components/ActionModalContent.tsx - File Actions API
lib/actions/file.action.ts
Appwrite Backend
- Appwrite Clients
lib/appwrite/index.ts - Appwrite Config
lib/appwrite/config.ts - Appwrite Auth
- Metadata Database
- File Storage
Other components
- User
Connections 28
- User → Sign-in / Sign-up: opens
- Sign-in / Sign-up → Authentication Form: renders
app/(auth)/sign-in/page.tsx - Authentication Form → Account Actions: requests account
components/AuthForm.tsx - Authentication Form → OTP Verification: opens verification
components/AuthForm.tsx - OTP Verification → Account Actions: verifies code
components/OTPModal.tsx - Account Actions → Appwrite Clients: creates sessions
lib/actions/user.actions.ts - Appwrite Clients → Appwrite Config: configures
lib/appwrite/index.ts - Appwrite Clients → Appwrite Auth: provides client
lib/appwrite/index.ts - Appwrite Clients → Metadata Database: provides client
lib/appwrite/index.ts - User → Dashboard: opens
- Dashboard → Account Actions: loads user
app/(root)/page.tsx - Dashboard → File Actions API: loads usage and files
app/(root)/page.tsx - Dashboard → Usage Summary: renders
app/(root)/page.tsx - Dashboard → Category Summary: renders
app/(root)/page.tsx - Dashboard → Recent Files: renders
app/(root)/page.tsx - User → Category Browser: browses files
- Category Browser → File Actions API: queries files
app/(root)/[type]/page.tsx - Category Browser → File Card: renders results
app/(root)/[type]/page.tsx - User → Global Search: searches files
- Global Search → File Actions API: queries matches
components/Search.tsx - Global Search → File Card: shows file preview
components/Search.tsx - User → File Uploader: uploads file
- File Uploader → File Actions API: submits upload
- File Actions → Action Dialogs: opens actions
- File Actions → File Actions API: requests file changes
- File Actions API → Appwrite Clients: uses clients
lib/actions/file.action.ts - File Actions API → Metadata Database: reads and writes metadata
lib/actions/file.action.ts - File Actions API → File Storage: stores and deletes files
lib/actions/file.action.ts