How requarks/wiki works
Wiki.js is a web-based wiki for creating, editing, organizing, and managing pages and related content. A typical user workflow starts in the web interface, reaches the server API, and operates on page and tree models backed by the database; storage targets can also synchronize page and asset files. The repository additionally includes authentication, collaboration, notifications, administration, extensions, and MCP tooling. Arrows are limited to relationships visible in excerpts or the source index; several frontend-to-server and unsampled feature links are therefore omitted or marked unverified.
Main entry points: index.ts HTTP server · storage.ts Storage targets · App.vue Wiki interface · pages.ts Page endpoints
Components 22
Web client
- Wiki interface
frontend/src/App.vue - File manager
frontend/src/components/FileManager.vue - Page graph
frontend/src/graph/engine.js
Server and API
- HTTP server
backend/index.ts - API routes
backend/api/index.ts - Page endpoints
backend/api/pages.ts - Storage endpoints
backend/api/storage.ts
Wiki content
- Page model
backend/models/pages.ts - Content tree
backend/models/tree.ts - Assets
backend/models/assets.ts - Storage targets
backend/models/storage.ts - Page file mapping
backend/helpers/storageFiles.ts - Object storage
backend/helpers/storageObjects.ts - Git storage target
backend/modules/storage/git/storage.ts
Platform services
- Database schema
backend/db/schema.ts - Job scheduler
backend/core/scheduler.ts - Live collaboration
backend/core/collab.ts - Notifications
backend/notifications/index.ts - Authentication providers
backend/modules/authentication
Extensions
- MCP tools
backend/mcp/tools/index.ts - Content blocks
blocks/block-gallery/component.js
Other components
- Wiki user
Connections 21
- Wiki user → Wiki interface: uses
- Wiki interface → HTTP server: requests
- File manager → HTTP server: requests
- Wiki interface → Page graph: renders
- HTTP server → API routes: registers
backend/index.ts - API routes → Page endpoints: registers
backend/api/index.ts - Page endpoints → Page model: calls
backend/api/pages.ts - Page model → Database schema: queries
backend/models/pages.ts - Storage endpoints → Storage targets: calls
backend/api/storage.ts - Storage targets → Database schema: uses
backend/models/storage.ts - Assets → Storage targets: uses
backend/models/assets.ts - Assets → Content tree: uses
backend/models/assets.ts - Storage targets → Page file mapping: uses
backend/helpers/storageFiles.ts - Object storage → Page file mapping: uses
backend/helpers/storageObjects.ts - Git storage target → Page file mapping: uses
backend/modules/storage/git/storage.ts - Git storage target → Storage targets: reads and writes
backend/modules/storage/git/storage.ts - Job scheduler → Database schema: uses
backend/core/scheduler.ts - Live collaboration → HTTP server: registers routes
backend/index.ts - Notifications → HTTP server: dispatches
- MCP tools → Page endpoints: accesses
- Authentication providers → HTTP server: provides login