How fairuzbaru43-blip/filemanager works
DriveBox is a shared, role-based file manager backed by Google Drive. Users sign in, browse folders and manage files through the web interface; API handlers enforce sessions and folder access before performing Drive operations. The README documents UI features beyond the sampled handlers. Dashed UI/API links indicate the workflow, but the browser request calls were not shown in the excerpts; other links are supported by excerpts, the SOURCE INDEX, or README. E.g. storage and session relationships are represented without assuming unsampled handler internals.
Main entry points: auth.js Session and password auth · app.js File manager UI · drive.js Drive client and access checks · drive-error-response.js Drive error responses
Components 19
Web interface
- File manager UI
public/app.js
Identity and sessions
- Login and throttling
api/login.js - Session and password auth
lib/auth.js - Auth configuration
lib/configuration.js - Upstash Redis
- Session endpoints
api/logout.js - Current user endpoint
api/me.js
File operations
- Browse files
api/files.js - Create folders
api/folders.js - Upload files
api/upload.js - Download files
api/download.js - Move and rename
api/move.js - Copy items
api/copy.js - Trash items
api/delete.js - Folder privacy
api/visibility.js
Drive access
- Drive client and access checks
lib/drive.js - Drive error responses
lib/drive-error-response.js - Google Drive
Other components
- Admin or user
Connections 41
- Admin or user → File manager UI: uses
README.md - File manager UI → Login and throttling: signs in
- File manager UI → Browse files: browses
- File manager UI → Create folders: creates folders
- File manager UI → Upload files: uploads
- File manager UI → Download files: downloads
- File manager UI → Move and rename: organizes
- File manager UI → Copy items: copies
- File manager UI → Trash items: trashes
- File manager UI → Folder privacy: sets privacy
- Login and throttling → Session and password auth: verifies and sets
api/login.js - Login and throttling → Upstash Redis: rate limits
api/login.js - Session and password auth → Upstash Redis: checks sessions
lib/auth.js - Session and password auth → Auth configuration: validates configuration
lib/auth.js - Session endpoints → Session and password auth: clears session
api/logout.js - Current user endpoint → Session and password auth: requires authentication
api/me.js - Browse files → Session and password auth: requires authentication
api/files.js - Create folders → Session and password auth: requires authentication
api/folders.js - Upload files → Session and password auth: requires authentication
api/upload.js - Download files → Session and password auth: requires authentication
api/download.js - Move and rename → Session and password auth: requires authentication
api/move.js - Copy items → Session and password auth: requires authentication
api/copy.js - Trash items → Session and password auth: requires authentication
api/delete.js - Folder privacy → Session and password auth: requires authentication
api/visibility.js - Browse files → Drive client and access checks: checks folder access
api/files.js - Create folders → Drive client and access checks: checks folder access
api/folders.js - Upload files → Drive client and access checks: checks parent access
api/upload.js - Download files → Drive client and access checks: checks item access
api/download.js - Move and rename → Drive client and access checks: checks item and destination
api/move.js - Copy items → Drive client and access checks: checks item and destination
api/copy.js - Trash items → Drive client and access checks: checks item access
api/delete.js - Folder privacy → Drive client and access checks: checks item access
api/visibility.js - Browse files → Drive error responses: formats Drive errors
api/files.js - Create folders → Drive error responses: formats Drive errors
api/folders.js - Upload files → Drive error responses: formats Drive errors
api/upload.js - Download files → Drive error responses: formats Drive errors
api/download.js - Move and rename → Drive error responses: formats Drive errors
api/move.js - Copy items → Drive error responses: formats Drive errors
api/copy.js - Trash items → Drive error responses: formats Drive errors
api/delete.js - Folder privacy → Drive error responses: formats Drive errors
api/visibility.js - Drive client and access checks → Google Drive: reads and writes
lib/drive.js