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

fxd-app-xhs-publish

v1.0.1

Published

小红书笔记发布应用,基于 FXD 框架开发,支持自动化发布小红书笔记内容。

Readme

fxd-app-xhs-publish

小红书笔记发布应用,基于 FXD 框架开发,支持自动化发布小红书笔记内容。

功能特性

  • 支持发布文字笔记到小红书
  • 支持上传图片配图
  • 支持添加笔记标题
  • 支持添加标签
  • 支持多种浏览器(Chrome、Firefox、WebKit)
  • 支持后台模式运行
  • 自动验证发布状态

使用方法

基本用法

# 发布简单文字笔记
fxd fxd-app-xhs-publish --content "这是我的第一篇小红书笔记内容"

# 发布带标题的笔记
fxd fxd-app-xhs-publish --content "笔记内容" --title "我的笔记标题"

# 发布带图片的笔记
fxd fxd-app-xhs-publish --content "笔记内容" --images "https://example.com/image1.jpg,https://example.com/image2.jpg"

# 发布带标签的笔记
fxd fxd-app-xhs-publish --content "笔记内容" --tags "生活,美食,旅行"

# 完整示例
fxd fxd-app-xhs-publish \
  --content "今天分享一个超好吃的蛋糕制作方法!" \
  --title "自制草莓蛋糕教程" \
  --images "https://example.com/cake1.jpg,https://example.com/cake2.jpg" \
  --tags "美食,烘焙,甜品" \
  --user "my_account"

参数说明

  • --content: 笔记正文内容(必填)
  • --title: 笔记标题(可选)
  • --images: 图片URL,多个图片用逗号分隔(可选)
  • --tags: 标签,多个标签用逗号分隔(可选)
  • --user: 浏览器用户目录,用于保存登录状态(默认:default)
  • --headless: 是否使用后台模式(默认:true)
  • --browser: 浏览器类型,可选 chrome/firefox/webkit(默认:chrome)
  • --timeout: 操作超时时间,单位毫秒(默认:60000)
  • --format: 返回数据格式,可选 json/text/function(默认:text)

注意事项

  1. 登录状态: 首次使用需要手动登录小红书账号,登录信息会保存在指定的用户目录中
  2. 图片格式: 支持常见的图片格式(jpg、png、gif等),不支持视频文件
  3. 网络图片: 如果使用网络图片URL,程序会自动下载到本地临时目录后上传
  4. 发布限制: 请遵守小红书的发布规则和频率限制
  5. 浏览器要求: 需要安装对应的浏览器驱动程序

依赖项

  • fxd-app-browser: 浏览器自动化基础库
  • fxd-sdk: FXD 框架 SDK
  • dayjs: 日期时间处理
  • download: 文件下载工具

许可证

本项目采用 PolyForm Noncommercial License 1.0.0 许可证,仅限非商业用途使用。

版本历史

  • v1.0.0: 初始版本,支持基本的小红书笔记发布功能