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

@shixing.xingshi/feishu-for-user

v2026.2.14

Published

OpenClaw Feishu user-identity tools (UAT + doc)

Downloads

62

Readme

Feishu For User Extension

Runs Feishu actions as user identity via user_access_token.

Tools

  • feishu_user_uat: OAuth flow and token management
  • feishu_user_doc: Create Feishu Docx as user
  • feishu_user_search: Feishu knowledge QA search as user
  • feishu_user_calendar: Query user primary calendar and list events by time window

Install location

Put this folder under:

  • ~/.openclaw/extensions/feishu_for_user

Session scope recommendation

This plugin binds Feishu open_id tokens per DM sender. Use DM scope per-channel-peer so each sender has an isolated session key.

If DM sessions are shared (for example main), tool calls without explicit sender_key/user_access_token are blocked to prevent cross-user token mix.

Config example

{
  "plugins": {
    "allow": ["feishu_for_user"],
    "entries": {
      "feishu_for_user": {
        "enabled": true,
        "config": {
          "appId": "cli_xxx",
          "appSecret": "xxx",
          "domain": "feishu",
          "redirectUri": "http://127.0.0.1:18789/feishu/callback",
          "tokenStorePath": "~/.openclaw/credentials/feishu-for-user-token.json"
        }
      }
    }
  }
}

tokenStorePath is required.

feishu_user_uat usage

  1. Generate auth URL:
{ "action": "authorize" }
  1. Finish consent in browser. If your redirectUri points to OpenClaw gateway (for example http://127.0.0.1:18789/feishu/callback), UAT is saved automatically.

  2. Optional manual exchange (only when auto callback cannot reach OpenClaw):

{
  "action": "callback",
  "callback_url": "http://127.0.0.1:18789/feishu/callback?code=xxx&state=xxx"
}
  1. Optional status:
{ "action": "status" }

open_id is now used as storage key, and sender->open_id binding is auto-derived from DM sessionKey by plugin hook.

feishu_user_doc usage

Create a doc using stored UAT:

{ "title": "User doc from OpenClaw" }

Create in specific folder:

{ "title": "Roadmap", "folder_token": "fldcn..." }

Overwrite (replace) an existing document with markdown content:

{
  "action": "overwrite",
  "doc_token": "X3g2d...",
  "content": "# New Content\n\nThis will replace previous document body."
}

feishu_user_search usage

{
  "query": "报销流程",
  "enterprise_knowledge_source": {
    "entities": [
      { "entity_id": "wiki", "searchable": false },
      { "entity_id": "doc", "searchable": false }
    ]
  }
}

If your DM sessions are not sender-isolated (for example shared main session), tools are blocked to avoid cross-user token mix.

enterprise_knowledge_source is always included in request. The tool forces the following to enabled:

  • space.searchable = true
  • wiki.searchable = true
  • message.searchable = true
  • helpdesk_faq.searchable = true
  • lingo.searchable = true
  • minutes.searchable = true
  • mail.searchable = true
  • comment.wiki_searchable = true
  • comment.space_searchable = true

feishu_user_calendar usage

Query current user's primary calendar events:

{
  "query": "中午 吃饭",
  "start_time": "2026-02-16T00:00:00+08:00",
  "end_time": "2026-02-16T23:59:59+08:00"
}

Behavior:

  • First calls calendar primary API to resolve calendar_id
  • Then calls calendar event list API with the time window
  • Returns both events and matched_events (filtered by query over title/description/location/organizer)