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

@peteryuan/texting

v1.0.2

Published

AI 驱动的公众号内容创作 CLI 工具,全流程自动化:选题 → 大纲 → 素材 → 写作 → 润色 → 配图 → 发布

Downloads

63

Readme

texting

全流程 AI 驱动的公众号内容创作 CLI 工具

从热点捕捉到一键发布,Texting 将微信公众号内容创作的完整链路封装为一条命令行流水线:

选题确认 → 大纲生成 → 素材收集 → 文章创作 → 文章润色 → 配图生成 → 文章组装 → 发布推送

安装

npm install -g @peteryuan/texting

前置依赖(发布功能需要):

npm install -g @wenyan-md/cli

Node.js >= 16 required


快速开始

1. 初始化配置

在你的内容仓库目录下运行:

texting init

按向导填写 AI 模型 API Key、微信公众号配置等信息,自动生成 texting.config.json

2. 开始创作

# 自动从今日热榜选题
texting topic

# 或直接指定主题
texting topic --topic "2026 年 AI 编程工具全景对比"

Texting 将自动完成大纲生成、素材收集、文章创作、润色、配图,直至发布。

3. 查看进度 / 恢复中断

# 查看所有任务进度
texting status

# 恢复最近一个中断的任务
texting resume

# 从指定目录继续(也支持无状态文件的目录,自动推断进度)
texting resume --dir ./my-article-dir

命令概览

| 命令 | 说明 | |------|------| | texting init | 交互式初始化 texting.config.json | | texting topic | 启动完整创作流水线 | | texting resume | 恢复中断任务 / 从已有文件继续执行 | | texting status | 查看所有任务执行进度 | | texting teardown | 拆解爆款文章,提炼方法论(即将推出)|

→ 查看 USAGE.md 了解完整参数说明与高级用法


核心特性

  • 多模型支持:兼容 DeepSeek / OpenAI / Claude / Qwen 等所有支持 OpenAI 协议的模型,各步骤可独立配置不同模型
  • 中断恢复:流水线每步产物持久化,中断后可从任意步骤精确恢复;支持将已有文件目录直接接入流水线
  • 自定义人设:在仓库目录放置 IDENTITY.md / SOUL.md 可完全覆写 AI 的身份风格和行为规范
  • 内容约束可配texting.config.json 支持配置字数范围、章节数等约束,直接影响 AI 生成质量
  • 多账号并行:每个公众号对应独立目录,多终端并行互不干扰
  • 一键发布:集成 @wenyan-md/cli,支持微信公众号草稿发布 + Git 自动提交推送

配置文件示例

{
  "wechatAppId": "wxxxxxxxxxxx",
  "wechatSecret": "your-app-secret",
  "wordsMin": 1500,
  "wordsMax": 3000,
  "sections": 5,
  "autoGitActions": false,
  "genImage": {
    "cover": true,
    "sections": false
  },
  "modelConfig": {
    "default": {
      "model": "deepseek-chat",
      "apiKey": "sk-xxxxxxxx"
    },
    "genImage": {
      "model": "gpt-image-1.5",
      "apiKey": "your-image-api-key"
    }
  }
}

License

ISC