How sq-2026-c/opencloud works
OpenCloud is a filesystem-backed Go server composed of independently runnable services. The documented operator workflow initializes configuration and then starts the server; users authenticate through OpenID Connect and use its APIs and storage services. The graph highlights identity, content, collaboration, and event-history capabilities plus service startup and shared runtime layers. Relationships are limited to README statements and SOURCE INDEX references; unsampled implementation details and cross-service wiring are not inferred.
Main entry points: runner.go Service runner · main.go OpenCloud CLI · storage.go Storage abstraction · server.go Collaboration service
Components 23
Startup and runtime
- OpenCloud CLI
opencloud/cmd/opencloud/main.go - Service runner
pkg/runner/runner.go - Configuration
pkg/config/config.go
Identity and access
- Embedded identity provider
services/idp/src/Routes.jsx - OIDC support
pkg/oidc/client.go - Application auth
services/auth-app/pkg/command/server.go - Identity management
services/idm/pkg/command/server.go
Content and APIs
- Graph API
services/graph/pkg/command/server.go - User directory
services/users/pkg/command/server.go - User storage
services/storage-users/pkg/command/server.go - System storage
services/storage-system/pkg/command/server.go - Storage abstraction
pkg/storage/storage.go
Collaboration
- Collaboration service
services/collaboration/pkg/command/server.go - Content connectors
services/collaboration/pkg/connector/connector.go
Events and history
- Activity log
services/activitylog/pkg/command/server.go - Activity persistence
services/activitylog/pkg/service/activitylog/activitylog.go - User event log
services/userlog/pkg/command/server.go - Event history
services/eventhistory/pkg/command/server.go - Notifications
services/notifications/pkg/command/server.go - NATS messaging
services/nats/pkg/command/server.go
Other components
- Operator
- Filesystem
- OIDC provider
Connections 20
- Operator → OpenCloud CLI: initializes and starts
- OpenCloud CLI → Service runner: starts services
- OpenCloud CLI → Configuration: loads configuration
- OIDC provider → OIDC support: authenticates users
- Application auth → Service runner: registers service
services/auth-app/pkg/command/server.go - Identity management → Service runner: runs service
services/idm/pkg/command/server.go - Graph API → Service runner: runs service
services/graph/pkg/command/server.go - User directory → Service runner: registers service
services/users/pkg/command/server.go - User storage → Storage abstraction: uses storage
services/storage-users/pkg/command/server.go - System storage → Storage abstraction: uses storage
services/storage-system/pkg/command/server.go - Storage abstraction → Filesystem: stores data
- Collaboration service → Content connectors: uses connectors
services/collaboration/pkg/command/server.go - Collaboration service → Service runner: runs servers
services/collaboration/pkg/command/server.go - Activity log → Activity persistence: creates activity log
services/activitylog/pkg/command/server.go - Activity log → Service runner: runs service
services/activitylog/pkg/command/server.go - User event log → Service runner: runs service
services/userlog/pkg/command/server.go - Event history → Service runner: runs service
services/eventhistory/pkg/command/server.go - Notifications → Event history: creates history client
services/notifications/pkg/command/server.go - Notifications → Service runner: runs service
services/notifications/pkg/command/server.go - NATS messaging → Service runner: runs service
services/nats/pkg/command/server.go