How langgenius/dify-official-plugins works
Dify’s plugin repository supplies model, tool, agent-strategy, datasource, extension, and trigger plugins for Dify applications. The broad workflow is that Dify applications configure and use plugins to add model inference or specialized capabilities; tools can also call external services and return results. The tree and README establish the major plugin families, while sampled source confirms only a few internal calls. Consequently, the graph keeps most families as distinct capability branches and avoids implying an unsampled runtime sequence.
Main entry points: comfyui_model_manager.py ComfyUI model manager · notion_client.py Notion client · query_database.py Notion query · retrieve_database.py Notion retrieval
Components 27
Model plugins
- Model providers
models - OpenAI models
models/openai/models/llm/llm.py - Anthropic models
models/anthropic/models/llm/llm.py - Azure OpenAI
models/azure_openai/models/llm/llm.py
Tool plugins
- Specialized tools
tools - Notion query
tools/notion/tools/query_database.py - Notion retrieval
tools/notion/tools/retrieve_database.py - Notion client
tools/notion/tools/notion_client.py - ComfyUI model manager
tools/comfyui/tools/comfyui_model_manager.py - ComfyUI client
tools/comfyui/tools/comfyui_client.py - ComfyUI workflows
tools/comfyui/tools/comfyui_workflow.py - Email plugin
tools/email/main.py - Email sender
tools/email/tools/send_mail.py - SlideSpeak client
tools/slidespeak/tools/slidespeak_client.py
Data sources
- Datasource plugins
datasources - S3 storage
datasources/aws_s3_storage/datasources/aws_s3_storage.py - Cloud storage
datasources/google_cloud_storage/datasources/google_cloud_storage.py - Notion datasource
datasources/notion_datasource/datasources/notion_datasource.py
Agent strategies
- Agent strategies
agent-strategies - CoT agent
agent-strategies/cot_agent/strategies/ReAct.py - Self-refine agent
agent-strategies/self_refine_agent/strategies/self_refine.py
Integrations
- HTTP extensions
extensions - Slack bot
extensions/slack_bot/endpoints/slack.py - Model extensions
extensions/openai_compatible/endpoints/openai_compatible.py - Event triggers
triggers - Telegram events
triggers/telegram_trigger/events/base.py
Other components
- Dify applications
Connections 11
- Dify applications → Model providers: uses plugins
README.md - Dify applications → Specialized tools: uses plugins
README.md - Dify applications → Datasource plugins: uses plugins
- Dify applications → Agent strategies: uses strategies
README.md - Dify applications → HTTP extensions: uses extensions
README.md - Dify applications → Event triggers: uses triggers
- Notion query → Notion client: queries through
tools/notion/tools/query_database.py - Notion retrieval → Notion client: retrieves through
tools/notion/tools/retrieve_database.py - ComfyUI model manager → ComfyUI client: gets object info
tools/comfyui/tools/comfyui_model_manager.py - ComfyUI model manager → ComfyUI workflows: reads workflow models
tools/comfyui/tools/comfyui_model_manager.py - Email plugin → Email sender: calls sender
tools/email/main.py