npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@framers/agentos-ext-channel-sms

v0.1.5

Published

SMS messaging channel adapter for AgentOS (Twilio)

Readme

SMS channel

This pack gives an agent an SMS sending tool and a channel adapter using the twilio SDK. It receives inbound Twilio Messaging webhooks through an HTTP handler with signature verification.

Installation

npm install @framers/agentos-ext-channel-sms

Peer dependency: @framers/agentos at >=0.10.40.

Usage

import { AgentOS } from '@framers/agentos';

const agentos = await AgentOS.create({
  extensionManifest: {
    packs: [
      {
        package: '@framers/agentos-ext-channel-sms',
        options: {
          accountSid: process.env.TWILIO_ACCOUNT_SID,
          authToken: process.env.TWILIO_AUTH_TOKEN,
          phoneNumber: process.env.TWILIO_PHONE_NUMBER,
          webhookPath: process.env.TWILIO_SMS_WEBHOOK_PATH,
          webhookUrl: process.env.TWILIO_SMS_WEBHOOK_URL,
          publicBaseUrl: process.env.TWILIO_SMS_PUBLIC_BASE_URL,
        },
      },
    ],
  },
});

Configuration

Credentials resolve from options, then options.secrets, then the environment.

| Option | Secret id | Environment variable | Required | Default | | --- | --- | --- | --- | --- | | accountSid | twilio.accountSid | TWILIO_ACCOUNT_SID | yes | None | | authToken | twilio.authToken | TWILIO_AUTH_TOKEN | yes | None | | phoneNumber | twilio.phoneNumber | TWILIO_PHONE_NUMBER | yes | None | | webhookPath | None | TWILIO_SMS_WEBHOOK_PATH | no | /webhooks/twilio/sms | | webhookUrl | None | TWILIO_SMS_WEBHOOK_URL | no | Reconstructed from base URL and request | | publicBaseUrl | None | TWILIO_SMS_PUBLIC_BASE_URL | no | Request forwarded protocol and host headers, then HTTP and host header, then localhost | | skipSignatureValidation | None | TWILIO_SMS_SKIP_SIGNATURE_VALIDATION | no | false | | maxBodyBytes | None | None | no | 1024 * 1024 bytes | | priority | None | None | no | 50 | | secrets | Credential ids above | None | no | None |

Tools

| Tool | What it does | | --- | --- | | smsChannelSendMessage | Sends an SMS through Twilio to a phone number. |

smsChannelSendMessage

| Parameter | Type | Required | Description | | --- | --- | --- | --- | | conversationId | string | yes | Recipient phone number (E.164) | | text | string | yes | Message text |

Channel adapter

The adapter registers platform sms. Activation creates a Twilio client with the account credentials. Sending takes the first text block and sends it from phoneNumber to the recipient in conversationId. Inbound delivery uses the host HTTP server: the handler accepts POST requests with form or JSON payloads, verifies signatures and acknowledges with an empty XML response. It emits nonempty message bodies with the sender's phone number as the direct conversation id. Typing indicators do nothing.

Notes

Sending calls Twilio's message creation API. Missing accountSid, authToken or phoneNumber makes pack creation throw. Sends require a nonempty recipient and message text.

webhookUrl overrides URL reconstruction for signature verification. Otherwise, the handler uses publicBaseUrl or request headers. Signature verification is skipped when the option is true or the environment setting is a case-insensitive true, yes or numeric one, even if the option is false. Oversized webhook bodies are rejected. Media-only inbound messages without text are ignored.

License

Apache-2.0