How paridhijhabak/sourcebox works
SourceBox is a self-hosted file vault. Users register, clone, or create projects; SourceBox indexes their files, then supports browsing, plain-language search, previews, colour extraction, and file history. Users can also manage accounts, stars, themes, and folder shares. Background watchers and git polling keep projects current. The graph follows documented product capabilities and visible module references; some server routes and UI-to-API wiring were not sampled, so those links are omitted where their ownership cannot be established.
Main entry points: server.js HTTP API · sync.js Folder and git sync · indexer.js File indexer · git.js Git operations
Components 20
Projects and indexing
- Vault configuration
lib/config.js - Project management
server.js - File indexer
lib/indexer.js
Sync and git
- Folder and git sync
lib/sync.js - Git operations
lib/git.js
Find and preview
- Plain-language search
public/search.js - File browsing and history
server.js - Thumbnail generation
lib/thumbs.js - Image colours
lib/palette.js
Access and sharing
- Local accounts
lib/users.js - Authentication
lib/auth.js - Folder shares
lib/shares.js - Starred files
lib/stars.js - Vault theme
lib/theme.js
Vault interface
- Vault interface
public/app.js - Search interface
public/search.js - HTTP API
server.js
Other components
- Vault user
- Project folders
- Git remote
Connections 19
- Vault user → Vault interface: uses
README.md - Vault interface → HTTP API: requests
- Search interface → HTTP API: searches
- HTTP API → Vault configuration: reads settings
server.js - HTTP API → File indexer: rebuilds index
server.js - File indexer → Project folders: scans files
lib/indexer.js - HTTP API → Folder and git sync: manages sync
README.md - Folder and git sync → File indexer: re-indexes
lib/sync.js - Folder and git sync → Git operations: polls and pulls
lib/sync.js - Git operations → Git remote: fetches commits
README.md - HTTP API → Plain-language search: serves search
- HTTP API → File browsing and history: serves files
server.js - HTTP API → Thumbnail generation: requests thumbnails
server.js - HTTP API → Image colours: extracts colours
server.js - HTTP API → Authentication: applies access control
server.js - Authentication → Local accounts: checks accounts
lib/auth.js - HTTP API → Folder shares: manages links
server.js - HTTP API → Starred files: manages stars
server.js - HTTP API → Vault theme: manages settings
server.js