How icewhaletech/casaos works
CasaOS is the backend for a personal-cloud system: clients call its local HTTP API, which exposes file and system operations and other cloud-management capabilities. The sampled startup code initializes the service repository and HTTP routers; a file route delegates directory operations to the system service. The README also describes app installation, widgets, and drive management, but their detailed implementation paths were not sampled, so those branches are represented only at the subsystem level. Edges are limited to relationships visible in excerpts, the source index, or README statements.
Main entry points: service.go Service repository · main.go CasaOS server · driver.go Drive registry · system.go System operations
Components 23
Runtime and API
- CasaOS server
main.go - Version 1 API
route/v1.go - File API
route/v1/file.go - Version 2 API
route/v2.go
Cloud Services
- Service repository
service/service.go - System operations
service/system.go - Notifications
service/notify.go - Connections
service/connections.go - Shares
service/shares.go - Peer services
service/peer.go - Health checks
service/health.go - Other services
service/other.go - Docker apps
service/other.go - System widgets
service/system.go
Files and Storage
- File operations
service/file.go - File uploads
service/file_upload.go - Mounted storage
service/storage.go - SQLite database
pkg/sqlite/db.go
External Integrations
- Drive registry
internal/op/driver.go - Google Drive
drivers/google_drive/drive.go - Dropbox
drivers/dropbox/drive.go - OneDrive
drivers/onedrive/drive.go
Other components
- CasaOS client
Connections 17
- CasaOS client → CasaOS server: requests
README.md - CasaOS server → Version 1 API: serves
main.go - CasaOS server → Version 2 API: serves
main.go - CasaOS server → Service repository: initializes
main.go - File API → System operations: calls
route/v1/file.go - Service repository → Connections: constructs
service/service.go - Service repository → Notifications: constructs
service/service.go - Service repository → Shares: constructs
service/service.go - Service repository → Peer services: constructs
service/service.go - Service repository → Health checks: constructs
service/service.go - Service repository → System operations: constructs
service/service.go - Service repository → Mounted storage: constructs
service/service.go - Drive registry → Google Drive: registers
- Drive registry → Dropbox: registers
- Drive registry → OneDrive: registers
- CasaOS client → Docker apps: installs apps
README.md - CasaOS client → System widgets: views status
README.md