How smaug6739/alexandrie works
Alexandrie is a self-hosted team knowledge base. Users organize and edit Markdown documents, search and share them, manage workspace access, and import or restore data; the frontend communicates with a Go API backed by repositories and external storage. The excerpts show application initialization and selected authentication, OIDC, node, and resource paths. Other documented product capabilities are represented as product areas, but their runtime wiring is not established by the sampled source.
Main entry points: router.go HTTP router · manager.go Repository layer · resource.service.go Resource service · backup.service.go Backup service
Components 25
Web application
- Web client
frontend/app/App.vue - Markdown editor
frontend/app/components/MarkdownEditor/MarkdownEditor.vue - Search and navigation
frontend/app/components/CommandCenter/index.vue - Workspace and Kanban
frontend/app/pages/dashboard/teams/[id]/nodes.vue - Media previews
frontend/app/pages/dashboard/cdn/[id]/preview.vue - Import and backup UI
frontend/app/pages/dashboard/import/backup.vue
Backend API
- HTTP router
backend/router/router.go - Authentication endpoints
backend/controllers/authentication.controller.go - OIDC endpoints
backend/controllers/oidc.controller.go - Node endpoints
backend/controllers/nodes.controller.go - Permission endpoints
backend/controllers/nodes.permissions.controller.go - Resource endpoints
backend/controllers/resources.controller.go - User endpoints
backend/controllers/users.controller.go - Backup endpoints
backend/controllers/backup.controller.go
Domain services
- Authentication service
backend/services/auth.service.go - OIDC service
backend/services/oidc.service.go - Node service
backend/services/node.service.go - Access control
backend/permissions/service.go - Resource service
backend/services/resource.service.go - Backup service
backend/services/backup.service.go - User service
backend/services/user.service.go
Persistence and storage
- Repository layer
backend/repositories/manager.go - SQL database
backend/app/database.go - S3-compatible storage
backend/app/minio.go
Other components
- User
Connections 30
- User → Web client: uses
README.md - Web client → HTTP router: calls API
- User → Markdown editor: writes notes
- User → Search and navigation: searches
- User → Workspace and Kanban: organizes
- User → Media previews: previews assets
- User → Import and backup UI: imports backups
- HTTP router → Authentication endpoints: routes
- HTTP router → OIDC endpoints: routes
- HTTP router → Node endpoints: routes
- HTTP router → Permission endpoints: routes
- HTTP router → Resource endpoints: routes
- HTTP router → User endpoints: routes
- HTTP router → Backup endpoints: routes
- Authentication endpoints → Authentication service: delegates
backend/controllers/authentication.controller.go - OIDC endpoints → OIDC service: delegates
backend/controllers/oidc.controller.go - Node endpoints → Node service: delegates
- Permission endpoints → Access control: delegates
- Resource endpoints → Resource service: delegates
- Backup endpoints → Backup service: delegates
- User endpoints → User service: delegates
- Authentication service → Repository layer: uses repositories
- OIDC service → Repository layer: uses repositories
- Node service → Repository layer: uses repositories
- Resource service → Repository layer: uses repositories
- Backup service → Repository layer: uses repositories
- User service → Repository layer: uses repositories
- Repository layer → SQL database: queries
- Resource service → S3-compatible storage: stores media
- Backup service → S3-compatible storage: stores archives