How gotify/server works
Gotify is a self-hosted server for sending messages over REST and receiving them in real time over WebSocket, with user, client, application, and plugin management. The main runtime starts from configuration, initializes persistence, and creates the HTTP router; callers then use the API to manage resources or submit messages, which the server can deliver to connected clients. The Web UI provides corresponding management and message views. The README documents these product capabilities; unsampled routes and UI stores limit evidence for some internal links, which are omitted or marked unverified.
Main entry points: router.go HTTP router · index.tsx UI bootstrap · stores.tsx UI stores · app.go Server startup
Components 24
Server runtime
- Configuration
config/config.go - Server startup
app.go - HTTP router
router/router.go - Authentication
auth/authentication.go
API and data
- Message API
api/message.go - Application API
api/application.go - Client API
api/client.go - User API
api/user.go - OIDC login
api/oidc.go - Database
database/database.go - Application persistence
database/application.go - Domain models
model/message.go
Realtime and plugins
- WebSocket delivery
api/stream/stream.go - Plugin manager
plugin/manager.go - Plugin handlers
plugin/messagehandler.go
Web interface
- UI bootstrap
ui/src/index.tsx - UI stores
ui/src/stores.tsx - User session
ui/src/CurrentUser.ts - Application management
ui/src/application/Applications.tsx - Client management
ui/src/client/Clients.tsx - Message views
ui/src/message/MessagesStore.ts - Plugin management
ui/src/plugin/PluginStore.ts
Other components
- Server operator
- Web UI user
Connections 25
- Server operator → Server startup: starts server
app.go - Server startup → Configuration: loads settings
app.go - Server startup → Database: initializes
app.go - Server startup → HTTP router: creates router
app.go - HTTP router → Authentication: configures auth
router/router.go - HTTP router → Message API: routes requests
router/router.go - HTTP router → Application API: routes requests
router/router.go - HTTP router → Client API: routes requests
router/router.go - HTTP router → User API: routes requests
router/router.go - HTTP router → OIDC login: routes login
router/router.go - Application API → Application persistence: reads and writes
api/application.go - Application persistence → Database: queries
database/application.go - Application persistence → Domain models: persists
database/application.go - HTTP router → WebSocket delivery: sets notifier
router/router.go - Web UI user → UI bootstrap: opens interface
README.md - UI bootstrap → UI stores: initializes stores
ui/src/index.tsx - UI bootstrap → User session: initializes session
ui/src/index.tsx - UI bootstrap → Application management: loads interface
- UI bootstrap → Client management: loads interface
- UI bootstrap → Message views: initializes store
ui/src/index.tsx - UI bootstrap → Plugin management: initializes store
ui/src/index.tsx - UI stores → Message views: provides store
ui/src/stores.tsx - UI stores → Application management: provides store
ui/src/application/Applications.tsx - UI stores → Client management: provides store
ui/src/client/Clients.tsx - UI stores → Plugin management: provides store
ui/src/stores.tsx