How peak-brosmao/camhost.space-open-soucre works
CamHost.space is a browser-based personal cloud drive backed by a PHP API, SQLite metadata and Telegram file storage. The main workflow is account access, file selection and chunked browser upload, API processing and Telegram storage, then browsing or sharing files and downloading them. The graph also includes folder management, public pages and the admin control center. Some links and subsystems are based on the README or SOURCE INDEX rather than inspected implementation; those evidence limits are reflected in the citations and omitted details.
Main entry points: index.php API router · App.jsx App routes · client.js API client · db.php SQLite metadata
Components 24
Browser application
- App routes
src/App.jsx - Public pages
src/pages/LandingPage.jsx
Account lifecycle
- Login and signup
src/pages/RegisterPage.jsx - Auth context
src/context/AuthContext.jsx - Authentication API
api/auth.php - Signup handler
api/signup.php - SMTP mailer
api/mailer.php
Drive and transfers
- File explorer
src/pages/FilesPage.jsx - Folder manager
src/pages/FoldersPage.jsx - Upload page
src/pages/UploadPage.jsx - Share experience
src/pages/SharePage.jsx - File operations
api/files.php - Folder operations
api/folders.php - Chunk processor
api/upload-chunk.php - Upload finalizer
api/upload-finalize.php
API and persistence
- API client
src/api/client.js - API router
api/index.php - WAF and rate limits
api/security.php - SQLite metadata
api/db.php
Administration
- Admin control center
src/pages/admin - Admin API
api/admin.php
Other components
- User
- Telegram storage
- Hostinger SMTP
Connections 35
- User → App routes: uses
- App routes → Public pages: routes to
src/App.jsx - App routes → Login and signup: routes to
src/App.jsx - App routes → File explorer: routes to
src/App.jsx - App routes → Folder manager: routes to
src/App.jsx - App routes → Upload page: routes to
src/App.jsx - App routes → Share experience: routes to
src/App.jsx - App routes → Admin control center: routes to
src/App.jsx - Login and signup → Auth context: uses
- Auth context → API client: calls
src/context/AuthContext.jsx - File explorer → API client: calls
src/pages/FilesPage.jsx - Folder manager → API client: calls
src/pages/FoldersPage.jsx - Upload page → API client: uploads through
src/pages/UploadPage.jsx - Share experience → API client: calls
src/pages/SharePage.jsx - API client → API router: HTTP requests
README.md - API router → WAF and rate limits: applies checks
api/index.php - API router → Authentication API: dispatches auth
api/index.php - API router → Signup handler: dispatches signup
api/index.php - API router → File operations: dispatches files
api/index.php - API router → Folder operations: dispatches folders
api/index.php - API router → Chunk processor: dispatches chunks
api/index.php - API router → Upload finalizer: dispatches finalize
api/index.php - API router → Admin API: dispatches admin
api/index.php - Authentication API → SQLite metadata: reads and writes
api/auth.php - File operations → SQLite metadata: reads and writes
api/files.php - Folder operations → SQLite metadata: accesses metadata
- Chunk processor → SQLite metadata: records chunks
api/upload-chunk.php - Chunk processor → Upload finalizer: completes upload
README.md - Upload finalizer → Telegram storage: stores file parts
README.md - File operations → Telegram storage: retrieves file data
README.md - Authentication API → SMTP mailer: sends account mail
api/auth.php - SMTP mailer → Hostinger SMTP: dispatches mail
README.md - Admin control center → API client: calls
src/pages/admin/AdminSettings.jsx - Admin control center → Admin API: manages platform
- Admin API → SQLite metadata: reads and writes
api/admin.php