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-feishu

v0.1.8

Published

Feishu / Lark channel adapter for AgentOS (official SDK + webhooks)

Readme

Feishu channel

This pack gives an agent a text messaging tool and an inbound webhook adapter for Feishu and Lark using @larksuiteoapi/node-sdk.

Installation

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

Peer dependency: @framers/agentos >=0.10.40.

Usage

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

const agentos = await AgentOS.create({
  extensionManifest: {
    packs: [
      {
        package: '@framers/agentos-ext-channel-feishu',
        options: {
          appId: process.env.FEISHU_APP_ID,
          appSecret: process.env.FEISHU_APP_SECRET,
          verificationToken: process.env.FEISHU_VERIFICATION_TOKEN,
          encryptKey: process.env.FEISHU_ENCRYPT_KEY,
          domain: process.env.FEISHU_DOMAIN,
          webhookPath: process.env.FEISHU_WEBHOOK_PATH,
        },
      },
    ],
  },
});

Configuration

Credentials resolve from options, then options.secrets, then environment variables. Verification tokens and encryption keys are trimmed.

| Option | Secret id | Environment variable | Required | Default | | --- | --- | --- | --- | --- | | appId | feishu.appId | FEISHU_APP_ID | Yes | None; throws when missing | | appSecret | feishu.appSecret | FEISHU_APP_SECRET | Yes | None; throws when missing | | verificationToken | feishu.verificationToken | FEISHU_VERIFICATION_TOKEN | Yes, in manifest | '' | | encryptKey | feishu.encryptKey | FEISHU_ENCRYPT_KEY | Yes, in manifest | '' | | domain | None | FEISHU_DOMAIN | No | feishu | | webhookPath | None | FEISHU_WEBHOOK_PATH | No | /feishu-webhook | | maxBodyBytes | None | None | No | 1048576 | | priority | None | None | No | 50 | | secrets | None | None | No | Unset |

The domain accepts feishu, lark or a custom URL. The webhook path gains a leading slash and loses a trailing slash. Invalid or nonpositive maxBodyBytes values use the default.

Tools

| Tool | What it does | | --- | --- | | feishuChannelSendMessage | Sends a text message through the Feishu/Lark adapter. |

feishuChannelSendMessage

| Parameter | Type | Required | Description | | --- | --- | --- | --- | | conversationId | string | Yes | Target Feishu chat_id | | text | string | Yes | Message text |

Channel adapter

The adapter registers platform feishu. Activation starts the service using a self-built Lark client; the SDK handles the tenant access token. Sending uses the first text block and addresses the conversation as a chat_id.

The feishuWebhook HTTP handler delegates token validation and challenge responses to the SDK. It receives im.message.receive_v1 events and dispatches nonempty text messages to subscribed handlers. A p2p chat maps to a direct conversation; other chat types map to group conversations. Sender IDs use open_id, then user_id, then unknown. Typing indicators do nothing.

Notes

Sending creates remote messages. The service trims the chat ID and message text and rejects empty values or sends before activation. Missing app credentials throw during pack creation.

Without a verification token, the webhook accepts GET health requests and rejects other requests as unavailable. Activation logs a warning. The encryption key is optional in the runtime code despite the manifest requirement. Requests outside the configured path are not handled. The body guard destroys requests that exceed maxBodyBytes.

Releases

New versions are published from framerslab/agentos-extensions by GitHub Actions through npm trusted publishing, with a provenance statement.

License

Apache-2.0