How gimanh/taskview-community works
Purpose and topology
TaskView is a self-hosted project-management platform: projects/goals, lists, tasks and dependencies, Kanban, collaboration, time tracking, analytics, automation, and enterprise identity. It is a pnpm monorepo with a Node/Bun API, Vue/Capacitor client, shared TypeScript packages, and Docker deployment.
Runtime entry points
• Backend starts at api/server.ts, assembling the Express application in api/src/App.ts and route registry in api/src/routes/index.ts.
• Browser/mobile client boots from web/src/main.ts into web/src/App.vue; SPA pages live under web/src/pages/user/.
• AI clients invoke the stdio MCP server at taskview-packages/taskview-mcp/src/index.ts / taskview-packages/taskview-mcp/src/server.ts.
• Docker builds are coordinated by build-dockers.sh; API, web, and migration images are separately defined under api/dockerfile, web/dockerfile, and api/postgresql/dockerfile.
HTTP API and module boundary
The API is organized by vertical modules. A typical request flows Routes → permission/auth middleware → Controller → Manager → Repository → PostgreSQL, with client-shaped DTOs where needed. Core task/project behavior is concentrated in:
• api/src/tv-modules/tasks/TasksRoutes.ts, api/src/tv-modules/tasks/TasksManager.ts, api/src/tv-modules/tasks/TasksRepository.ts
• api/src/tv-modules/goals/GoalsRoutes.ts, api/src/tv-modules/lists/GoalListManager.ts
• api/src/tv-modules/kanban/KanbanManager.ts, api/src/tv-modules/graph/GraphManager.ts
This establishes repositories as persistence boundaries and managers as cross-operation business-logic boundaries.
Identity, tenancy, and authorization
Authentication supports local/session-based access, social login, API tokens, SSO, and SCIM. Organization membership and project/goal permissions gate module operations before business logic. Relevant boundaries are:
• api/src/tv-modules/auth/AuthManager.ts, api/src/tv-modules/auth/strategies/passport-login.ts
• api/src/tv-modules/organizations/OrganizationManager.ts, api/src/tv-modules/collaboration/CollaborationManager.ts
• api/src/core/GoalPermissionsChecker.ts, api/src/middlewares/app-user-middleware.ts
• api/src/tv-modules/sso/SsoManager.ts, api/src/tv-modules/scim/ScimController.ts
Persistence and asynchronous domain effects
PostgreSQL is the system of record, accessed through Drizzle-related shared schemas and API database module. Versioned SQL migrations establish task, authorization, organization, sprint, recurrence, messaging, and time-entry data models.
• api/src/modules/db.ts
• taskview-packages/taskview-db-schemas/src/index.ts
• api/src/migrations/migrate.ts
• api/src/migrations/taskview/sql/1.53.0/0.create-sprints.sql
Domain changes fan out through an event/dispatcher layer to notifications, realtime publication, webhooks, recurrence generation, time tracking, and sprint scheduling:
• api/src/core/EventBus.ts, api/src/core/Dispatcher.ts
• api/src/tv-modules/realtime/RealtimeDispatcher.ts
• api/src/tv-modules/notifications/NotificationDispatcher.ts
• api/src/tv-modules/webhooks/WebhooksDispatcher.ts
Client applications
web/ is the current Vue TypeScript SPA, using Pinia stores as API-backed client state and Capacitor wrappers for iOS/Android. Components and pages consume task/project-centric stores and subscribe to realtime events.
• web/src/stores/tasks.store.ts, web/src/stores/goals.store.ts, web/src/stores/organization.store.ts
• web/src/composables/useCentrifugo/index.ts
• web/capacitor.config.ts
• web/android/app/src/main/java/com/handscream/taskview/app/MainActivity.java
web__old/ is a retained legacy frontend tree, not the primary current client.
External integration surfaces
The public TypeScript client wraps API resources for third parties, while MCP tools use that API for agent workflows. GitHub/GitLab, Slack/Telegram, outgoing webhooks, FCM push, and Centrifugo realtime are provider boundaries.
• taskview-packages/taskview-api/src/tv.ts
• taskview-packages/taskview-mcp/src/tools/tasks.ts
• api/src/tv-modules/integrations/providers/github.provider.ts
• api/src/tv-modules/messaging/SlackInboundManager.ts
• api/src/tv-modules/notifications/providers/FCMProvider.ts
• api/src/core/CentrifugoClient.ts
Main entry points: server.ts API bootstrap · build-dockers.sh Docker build orchestration · TasksManager.ts Task operations · GoalsRoutes.ts Goals, lists & planning
Components 18
Clients
- Vue SPA · Current browser and mobile client.
web/src/main.ts - Pinia domain stores · Task, goal, and organization API-backed state.
web/src/stores/tasks.store.ts - Realtime subscription
web/src/composables/useCentrifugo/index.ts
API service
- API bootstrap
api/server.ts - Express application
api/src/App.ts - Route registry
api/src/routes/index.ts - Task operations · Core task business and persistence boundary.
api/src/tv-modules/tasks/TasksManager.ts - Goals, lists & planning · Projects/goals, lists, Kanban, and dependency graph behavior.
api/src/tv-modules/goals/GoalsRoutes.ts - Identity & authorization · Authenticates users and enforces organization and goal permissions.
api/src/middlewares/app-user-middleware.ts
Data & events
- Database access
api/src/modules/db.ts - PostgreSQL
- Schema migrations
api/src/migrations/migrate.ts - Domain event bus · Fans domain changes into asynchronous effects.
api/src/core/EventBus.ts - Effect dispatchers
api/src/tv-modules/realtime/RealtimeDispatcher.ts
External surfaces
- Public TypeScript client · Third-party API resource wrapper.
taskview-packages/taskview-api/src/tv.ts - MCP server · Exposes TaskView tools to AI clients.
taskview-packages/taskview-mcp/src/index.ts - Providers · GitHub/GitLab, Slack/Telegram, FCM, webhooks, and Centrifugo.
api/src/tv-modules/integrations/providers/github.provider.ts
Other components
- Docker build orchestration · Builds separate API, web, and migration images.
build-dockers.sh
Connections 22
- Vue SPA → Pinia domain stores: uses
- Vue SPA → Realtime subscription: subscribes through
- Pinia domain stores → API bootstrap: HTTP API calls
- API bootstrap → Express application: boots
- Express application → Route registry: registers
- Route registry → Identity & authorization: gates requests
- Identity & authorization → Task operations: authorizes
- Identity & authorization → Goals, lists & planning: authorizes
- Task operations → Database access: persists via
- Goals, lists & planning → Database access: persists via
- Database access → PostgreSQL: reads and writes
- Schema migrations → PostgreSQL: evolves schema
- Task operations → Domain event bus: emits changes
- Goals, lists & planning → Domain event bus: emits changes
- Domain event bus → Effect dispatchers: dispatches
- Effect dispatchers → Realtime subscription: publishes updates
- Effect dispatchers → Providers: delivers effects
- Public TypeScript client → API bootstrap: calls
- MCP server → API bootstrap: uses API
- Docker build orchestration → API bootstrap: builds image
- Docker build orchestration → Vue SPA: builds image
- Docker build orchestration → Schema migrations: builds migration image