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

lambda-zankyo

v0.1.1

Published

Replay failed synchronous Lambda invocations: fixture, diff, redrive (paired with the zankyo Layer)

Readme

lambda-zankyo (CLI)

zankyo — S3 に保存された「同期呼び出しの失敗レコード」を読み、 fixture 生成・差分リプレイ・本番再実行を行う CLI。 失敗レコードを作る Layer (proxy) 側と組み合わせて使う。詳細は リポジトリ直下の README を参照。

install

npm install -g lambda-zankyo

usage

export ZANKYO_BUCKET=my-zankyo-records   # または --bucket

zankyo list --function my-api --since 24h
zankyo fixture --last --out event.json   # sam local invoke -e event.json
zankyo replay <requestId> --alias dev
zankyo diff <requestId> --alias v12 --alias v13   # exit 0/1 で CI 利用可
zankyo redrive <requestId> --confirm              # 既定は dry-run

全コマンド共通: --bucket / --region / --profile / --json。

AWS API 呼び出しのタイムアウトは env で調整できます (既定: 接続 5s・応答 30s。CI のハング防止)。

| env | 既定 | 用途 | |---|---|---| | ZANKYO_CONNECT_TIMEOUT_MS | 5000 | AWS API 接続の打ち切り | | ZANKYO_REQUEST_TIMEOUT_MS | 30000 | AWS API 応答の打ち切り | | ZANKYO_LIST_PAGE_SIZE | 200 | ListObjectsV2 の 1 ページ件数(S3 は 1000 件までしか返さない) | | ZANKYO_LIST_MAX_PAGES | 50 | レコード探索のページ走査上限 | | ZANKYO_RECORD_MAX_MB | 32 | レコード1件の読み取り上限(MiB) |

値は正の整数で指定します。小数・0・負数など、正の整数でない値は既定値を使います。 タイムアウトの値が Node.js のタイマーの上限(2147483647 ms)を超える場合も、既定値を使います。

exit codes

| code | 意味 | |---|---| | 0 | 成功(diff: 応答一致 / replay・redrive: 関数が成功応答) | | 1 | diff: 応答に差異 / replay・redrive: 関数がエラーを返した | | 2 | 引数・設定ミス | | 3 | AWS API 呼び出しの失敗 | | 4 | レコードが見つからない / 形式不正(空・JSON でない・スキーマ不一致・キーと本文の関数名の食い違い) / サイズ超過(ZANKYO_RECORD_MAX_MB、既定 32 MiB を超える) / 再現不能(truncated・event 欠落・replay/diff/redrive での非 JSON イベント) |