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

opencli-plugin-socialdatax

v0.1.1

Published

SocialDataX / 社媒数据助手 OpenCLI plugin for 小红书, Xiaohongshu, XHS, RedNote, 抖音, and Douyin read-only social data workflows.

Readme

SocialDataX OpenCLI Plugin | 社媒数据助手 OpenCLI 插件

SocialDataX / 社媒数据助手 provides hosted, read-only social data tools for 小红书 / Xiaohongshu / XHS / RedNote and 抖音 / Douyin workflows.

Use this OpenCLI plugin when you want API Key based data access without relying on a logged-in browser session. It is a complement to OpenCLI's built-in browser-backed xiaohongshu adapter, not a replacement for that adapter.

  • Product: SocialDataX / 社媒数据助手
  • Website: https://socialdatax.com
  • Platforms: 小红书 / Xiaohongshu / XHS / RedNote, 抖音 / Douyin
  • Runtime package: socialdatax-skills@latest
  • API key environment variable: SOCIALDATAX_API_KEY

Local Install

opencli plugin install /Users/devin/work/cx/code/social-service/public-listings/socialdatax-opencli

OpenCLI plugin install currently accepts file, GitHub, and git sources. It does not install plugins directly from an npm package name, so use an absolute local path for this private-repo smoke test or a GitHub/git source after the plugin is mirrored to a public repository.

Set your API Key before data calls:

export SOCIALDATAX_API_KEY="<SOCIALDATAX_API_KEY>"

Commands

opencli socialdatax xhs-search --keyword "露营桌" -f json
opencli socialdatax xhs-detail --note-id "<note_id>" -f json
opencli socialdatax xhs-comments --note-id "<note_id>" -f table
opencli socialdatax xhs-sub-comments --note-id "<note_id>" --comment-id "<comment_id>" -f table
opencli socialdatax xhs-user-info --user-id "<user_id>" -f json
opencli socialdatax xhs-user-posts --user-id "<user_id>" -f table

opencli socialdatax douyin-search --keyword "露营桌" -f json
opencli socialdatax douyin-detail --aweme-id "<aweme_id>" -f json
opencli socialdatax douyin-comments --aweme-id "<aweme_id>" -f table
opencli socialdatax douyin-user-info --sec-user-id "<sec_user_id>" -f json
opencli socialdatax douyin-user-posts --sec-user-id "<sec_user_id>" -f table

Each command forwards to npx -y socialdatax-skills@latest ... and flattens returned JSON so OpenCLI can render table, JSON, YAML, or CSV output.

Read-Only Boundary

This plugin only reads public content data through hosted SocialDataX services. It does not log in to user accounts, read browser data, publish posts, like, comment, follow, edit, delete, or perform account actions.

Search Aliases

Users and agents may search for this plugin with:

  • SocialDataX
  • 社媒数据助手
  • 小红书
  • Xiaohongshu
  • XHS
  • RedNote
  • 抖音
  • Douyin
  • social media data
  • creator analytics
  • comment analysis

Maintainer Notes

Published package: opencli-plugin-socialdatax.

Current npm release: 0.1.0, published on 2026-05-19 11:17:29 Asia/Shanghai.

Local source version: 0.1.1, prepared after smoke testing so the plugin ships a precompiled socialdatax.js entrypoint for OpenCLI environments without esbuild.

Release from the repository root:

node scripts/publish_socialdatax_opencli.mjs --dry-run
node scripts/publish_socialdatax_opencli.mjs

Verify after publishing:

npm view opencli-plugin-socialdatax version time dist-tags.latest homepage engines --json
opencli plugin install /Users/devin/work/cx/code/social-service/public-listings/socialdatax-opencli
opencli list | rg 'socialdatax|小红书|抖音|xiaohongshu|douyin'