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

openweread

v0.1.1

Published

微信读书开放 Skills 的 TypeScript SDK 与命令行工具

Readme

OpenWeRead

基于微信读书开放 Skills 开发的 TypeScript SDK 与命令行 Cli 工具。

提供基于 Cli 的 openweread-skills,提升 AI Agent 操作效率。

安装

# 安装 CLI
npm i -g openweread

# 或在项目中使用 SDK
pnpm add openweread

鉴权

所有调用都依赖 WEREAD_API_KEY(格式 wrk-xxxxxxxx):

获取并管理 WEREAD_API_KEY:https://weread.qq.com/r/weread-skills

CLI 用法

export WEREAD_API_KEY=<你的 apikey>

openweread search 三体                       # 搜索电子书
openweread book info 3300045871              # 书籍详情
openweread book chapters 3300045871          # 章节目录
openweread book progress 3300045871          # 阅读进度
openweread shelf                             # 查看书架(含专辑/有声书)
openweread stats --mode monthly              # 本月阅读统计
openweread notes list                        # 笔记本概览
openweread notes bookmarks 3300045871        # 导出某本书的划线
openweread notes mine 3300045871             # 导出某本书的个人想法/点评
openweread notes best 3300045871             # 全书热门划线(含原文与人数)
openweread notes underlines 3300045871 1     # 章节划线热度统计(不含文本)
openweread notes readreviews 3300045871 1 393-401   # 某条热门划线下的想法
openweread notes review <reviewId>           # 单条想法详情
openweread reviews 3300045871 --type 1       # 推荐点评
openweread recommend                         # 个性化推荐
openweread similar 3300045871                # 相似书推荐
openweread profile                           # 阅读概况
openweread --json shelf | jq                 # 任意命令加 --json 输出原始 JSON

SDK 用法

import { OpenWeRead } from "openweread";

const weread = new OpenWeRead({ apiKey: "" }); // 读取 WEREAD_API_KEY

const result = await weread.search.search({ keyword: "三体", scope: 10 });
const shelf = await weread.shelf.sync();

for await (const book of weread.notes.notebooksAll()) {
  console.log(
    book.book.title,
    book.reviewCount + book.noteCount + book.bookmarkCount,
  );
}

底层 WereadClient.call(apiName, params) 可调用文档中未覆盖的接口;api_nameskill_version 由 SDK 自动注入,业务参数直接平铺即可。

开发

pnpm install
pnpm test          # vitest
pnpm lint          # biome
pnpm build         # 输出到 dist/

能力覆盖

| 模块 | 文档 | SDK 模块 | 主要接口 | | --------- | ------------------------------------------ | ----------------- | ------------------------------------------------------ | | 搜索 | search.md | weread.search | /store/search | | 书籍 | book.md | weread.book | /book/info/book/chapterinfo/book/getprogress | | 书架 | shelf.md | weread.shelf | /shelf/sync | | 阅读统计 | readdata.md | weread.readData | /readdata/detail | | 笔记/划线 | notes.md | weread.notes | /user/notebooks/book/bookmarklist/review/list/mine/book/underlines/book/bestbookmarks/book/readreviews/review/single | | 公开点评 | review.md | weread.review | /review/list | | 推荐 | discover.md | weread.discover | /book/recommend/book/similar | | 用户概况 | profile.md | weread.profile | 组合接口 |

License

MIT