How zhuzhaoyun/molio works
Molio is a local-first knowledge-base and AI-agent workbench. Users collect or import material into Markdown vaults, browse and connect that knowledge, then run an agent against it; results can be deposited back into the vault. The desktop shell hosts the web console and local daemon, which manages conversations, agent runs, runtimes, and messaging channels. The README also describes cloud-backed accounts and a ready-made resource library, plus publishing. Some subsystem links below are documented capabilities rather than inspected call paths; those are marked as unverified.
Main entry points: server.ts Local HTTP server · App.tsx Web console · RunManager.ts Agent run manager · KnowledgeBasePage.tsx Knowledge workspace UI
Components 22
Desktop and console
- Desktop shell
apps/desktop/src/main.js - Web console
apps/web/src/App.tsx
Local agent service
- Local HTTP server
apps/daemon/src/server.ts - Conversation routes
apps/daemon/src/routes/conversations.ts - Conversation service
apps/daemon/src/core/conversations/service.ts - Local database
apps/daemon/src/core/db.ts - Agent run manager
apps/daemon/src/core/RunManager.ts - Agent runtimes
apps/daemon/src/core/runtimes/registry.ts - Messaging channels
apps/daemon/src/core/channels/dispatcher.ts - WeChat service
apps/daemon/src/core/weixin/service.ts - Feishu service
apps/daemon/src/core/feishu/service.ts
Knowledge workspace
- Knowledge workspace UI
apps/web/src/components/kb/KnowledgeBasePage.tsx - Knowledge routes
apps/daemon/src/routes/knowledge.ts - Knowledge services
apps/daemon/src/core/knowledge.ts - Wiki processing tools
apps/daemon/src/tools/skills/wiki-build/scripts - Knowledge graph
apps/web/src/components/graph/engine/pixiGraphEngine.ts - Publishing workflow
apps/web/src/components/resources/PublishWizard.tsx
Cloud and resources
- Account client
apps/daemon/src/core/auth/auth-client.ts - Cloud account service
apps/cloud/src/service.ts - Resource library UI
apps/web/src/components/resources/ResourcesPage.tsx - Resource market
apps/cloud/src/market/service.ts
Other components
- User
Connections 24
- User → Desktop shell: opens
README.md - Desktop shell → Web console: hosts
README.md - Web console → Local HTTP server: requests
README.md - Local HTTP server → Agent run manager: uses
apps/daemon/src/server.ts - Local HTTP server → Local database: opens
apps/daemon/src/server.ts - Local HTTP server → Conversation service: creates
apps/daemon/src/server.ts - Local HTTP server → WeChat service: creates
apps/daemon/src/server.ts - Local HTTP server → Feishu service: creates
apps/daemon/src/server.ts - Agent run manager → Agent runtimes: resolves
apps/daemon/src/core/RunManager.ts - User → Web console: chats and explores
README.md - Web console → Knowledge workspace UI: opens
apps/web/src/App.tsx - Knowledge workspace UI → Knowledge routes: uses
README.md - Knowledge routes → Knowledge services: delegates
- User → Wiki processing tools: processes material
README.md - Knowledge workspace UI → Knowledge graph: explores links
README.md - User → Agent run manager: starts agent task
README.md - Agent run manager → Knowledge services: uses knowledge
README.md - Agent run manager → Conversation service: records results
- User → WeChat service: messages
README.md - User → Feishu service: messages
README.md - Account client → Cloud account service: authenticates
- Web console → Resource library UI: opens
apps/web/src/App.tsx - Resource library UI → Resource market: browses resources
README.md - User → Publishing workflow: publishes results
README.md