← 返回列表
需源码安装
统一接入多平台聊天账号,收发与处理消息
暂不能直接安装(需源码编译或环境不满足):缺少 main/exports/bin 入口声明;仓库 package.json 标记 private,未发布到 npm,需从源码安装。 · 最近上游提交 2026/8/17 · 已提供中文文档
通用消息协议
综合分
65.4
GitHub 分
65.4
用户评分
—
★ Stars
252
周下载量
—
安装插件(需先安装 dsh CLI 引擎:npm install -g @deepseek-ai/dsh)
dsh plugin --profile web add satorijs/satori缺少 main/exports/bin 入口声明;仓库 package.json 标记 private,未发布到 npm,需从源码安装,改用 GitHub 源安装
🟢实装验证通过· 2026/9/17
由 dsh-plugin-verify(GitHub Actions)在真实 dsh 环境安装成功,非静态推断。
数据截至 2026/8/27(元数据每日更新 · 实装验证按队列轮转,单条结论的验证时间见上方)
安装兼容性检查需源码安装
以下结论由程序自动检查 npm 包、engines 声明与入口文件得出,未做人工实机验证——能装不等于用着没问题。
✗npm 包@root/satori(未发布到 npm,仅可源码安装)
✓Node 引擎未声明 engines.node
✓dsh CLI 依赖未声明 dsh 版本约束
✗入口文件缺少入口声明
缺少 main/exports/bin 入口声明;仓库 package.json 标记 private,未发布到 npm,需从源码安装
验证方式:npm registry 存在性 + package.json 静态校验 · 最后验证 2026/9/17 00:29:32
用户评分
还没有人投票,来当第一个
订阅周报,不错过优质插件更新
每周一封 · 高评分插件 + 新用户活动
README
Satori
通用消息协议
路线图
- 基础设施
- [x] @satorijs/core
- [x] @satorijs/element
- [x] @satorijs/satori
- [x] @satorijs/protocol
- [x] @satorijs/plugin-server
- 生态系统
- [x] DingTalk (钉钉)
- [x] Discord
- [x] KOOK (开黑啦)
- [x] Lark (飞书)
- [x] Line
- [x] Mail
- [x] Matrix
- [x] QQ Guild
- [x] Slack
- [x] Telegram
- [x] WhatsApp
- [x] WeCom (企业微信)
- [x] Wechat Official (微信公众号)
- [x] Zulip
示例
基本用法
import { Context } from '@satorijs/core'
import discord from '@satorijs/adapter-discord'
// create a new context
const ctx = new Context()
// configure a Discord account
ctx.plugin(discord, {
token: 'xxxxxx',
})
// listen to message events
ctx.on('message', (session) => {
console.log(session.content)
})
// start application
await ctx.start()
指定协议
import { Context } from '@satorijs/core'
import router from '@cordisjs/plugin-server'
import telegram from '@satorijs/adapter-telegram'
// your application will be listening http://localhost:8080
// and be available at https://example.com
const ctx = new Context({
port: 8080,
selfUrl: 'https://example.com',
})
// you need a router plugin to handle http requests
ctx.plugin(router)
ctx.plugin(telegram, {
// telegram supports two ways of connection: server and polling
protocol: 'server',
path: '/telegram',
token: 'xxxxxx',
})
多账号
// specify multiple accounts with different platforms and protocols
ctx.plugin(discord, {
token: 'xxxxxx',
})
ctx.plugin(telegram, {
protocol: 'server',
token: 'yyyyyy',
})
ctx.plugin(telegram, {
protocol: 'polling',
token: 'zzzzzz',
})
移除账号
基于 cordis。
const fork = ctx.plugin(discord, {
token: 'xxxxxx',
})
fork.dispose()扫码进群