Skip to content
集成packages/integrations/sms

sms 能力包

事务 SMS + OTP 校验 — 全球用 Twilio Verify,中国大陆用阿里云;统一 send(to, template),按本地号段自动选 provider。

稳定性
稳定
作用域
全局
边界
packages/integrations/sms
smspackages/integrations/sms
Provider-agnostic
可用提供方
Twilio Verifystandby
Aliyun在用
传入请求sms
{ to: "+1 415 555 0142", body: "OTP 4821" }
Adapter 解析3毫秒
sms 分发56毫秒
已确认3毫秒
x

提供方

Aliyun

P50 延迟

66 毫秒

成功率

98%

+0.7%

今日总量

5,656

packages/integrations/smsprovider-agnostic
使用方式sms.ts
typescript
sms.ts
1import { getSmsProvider } from "@nebutra/sms";
2
3// Provider-agnostic — backend chosen from env at runtime.
4const sms = await getSmsProvider();
5
6await sms.connect({ tenantId: org.id });