@bam.tech/stack-weekly

中文文档
0.3.1发布于 2026/05/25MITES Module近 30 天下载 2610

Weekly digest from This Week In React, filtered against your project's stack

原始使用文档
文档目录7 节
  1. Use
  2. Flags
  3. Tracking packages you don't yet have
  4. Match glyphs
  5. Tuning matches
  6. How it works
  7. License

stack-weekly

A weekly digest of This Week In React, filtered against your project's package.json. Surfaces only items that are actually relevant to your stack.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▌ stack-weekly · #281–#282  2026-05-13 → 2026-05-20
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📦 React Hook Form 7.76 - Improved isDirty and useFieldArray  ★ react-hook-form
   ↗ https://github.com/react-hook-form/react-hook-form/releases/tag/v7.76.0
📜 React Native Pressable faster than gesture handler  ★ react-native-gesture-handler  ★ react-native-reanimated
   ↗ https://www.peterp.me/articles/...
⭐ Redraw - 2D graphics primitives, powered by WebGPU  ◇ react-native-reanimated
   ↗ https://wcandillon.github.io/redraw/

Use

From any project root (anywhere with a package.json):

bunx @bam.tech/stack-weekly
# or
npx @bam.tech/stack-weekly

Or pin it as a package.json script so you can npm run news weekly:

{
  "scripts": {
    "news": "npx --yes @bam.tech/stack-weekly"
  }
}

Or run it after every npm install as a postinstall hook:

{
  "scripts": {
    "postinstall": "npx --yes @bam.tech/stack-weekly || true"
  }
}

(The || true makes sure a transient fetch failure never breaks npm install.)

Flags

stack-weekly                  # last 2 weeks (default)
stack-weekly --weeks 4        # last 4 weeks
stack-weekly --issue 282      # specific issue
stack-weekly --directory ../some-other-project

Tracking packages you don't yet have

Drop a .stack-weekly-extras.json in your project root listing packages you want to follow (libraries you're evaluating, devtools your team uses but aren't in package.json yet):

["rozenite", "@shopify/react-native-skia"]

They show up with ☆ instead of ★.

Match glyphs

GlyphMeaning
★ pkgDirect dependency match
☆ pkgMatch from your .stack-weekly-extras.json
◇ pkgItem is an alternative/competitor/complement to a package you have (only fires when no direct hit exists)
⭐ (item)Featured "headline" item of a section in the newsletter

Tuning matches

If a match looks wrong, fix the GPT system prompt at src/lib/parser.ts, delete the affected index/issue-NNN.json, then re-run the workflow:

gh workflow run update-index -R theodo-group/stack-weekly

The prompt's core rule: tag a package only if reading the item would make a user of that package update their repo or reconsider their code. Bare "react" and "react-native" are never tagged (too universal).

How it works

  1. A GitHub Action runs every Friday 07:00 UTC. It fetches the latest issues from the newsletter's RSS feed, sends each one to GPT-4o once, and commits the result as index/issue-NNN.json to this repo.
  2. The CLI does no LLM work. On each run it reads your package.json, fetches the last 2 indexed issues from raw.githubusercontent.com, and matches package names locally. Cached in ~/.cache/stack-weekly/.

So GPT parsing happens once per issue and is shared across all users. The CLI itself is free, fast, and offline-friendly after the first fetch.

License

MIT

版本与发布记录

@bam.tech/stack-weekly 共发布 1 个版本,首次发布于 2026/05/25;过去 12 个月发布了 1 个版本。

版本发布日期距今
0.3.1latest2026/05/255 个月前

关于 @bam.tech/stack-weekly 的常见问题

@bam.tech/stack-weekly 是什么?

Weekly digest from This Week In React, filtered against your project's stack

如何安装 @bam.tech/stack-weekly?

在项目目录运行 npm install @bam.tech/stack-weekly,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 stack-weekly,可以用 npx stack-weekly 直接运行。

@bam.tech/stack-weekly 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/bam.tech__stack-weekly 是否存在。

@bam.tech/stack-weekly 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@bam.tech/stack-weekly 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=18.0.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@bam.tech/stack-weekly 可以商用吗?

@bam.tech/stack-weekly 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@bam.tech/stack-weekly 的下载量有多少?

根据 npm 官方下载统计,@bam.tech/stack-weekly 在 2026/10/08 – 2026/11/06 这 30 天内被下载 2,610 次,日均约 87 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@bam.tech/stack-weekly 还在维护吗?

最新版本 0.3.1 发布于 2026/05/25(5 个月前);至今共发布 1 个版本,其中过去 12 个月发布了 1 个;首次发布于 2026/05/25。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。