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

@gpzhang2001/sharpkit-proxy

v0.2.2

Published

Caido proxy client + five traffic tools (list_requests/view_request/repeat_request/list_sitemap/view_sitemap_entry) over the sandbox session's lazy bootstrap

Downloads

297

Readme

@gpzhang2001/sharpkit-proxy

Caido 代理客户端 + 五工具(list_requests / view_request / repeat_request / list_sitemap / view_sitemap_entry)。

工具

  • list_requests:HTTPQL 过滤(整数/文本/日期操作符、AND/OR、无 NOT)、游标分页、8 键排序(strix _REQ_FIELD_MAP → Caido 枚举映射)、scope 限定
  • view_request:request/response raw 二选一;search_pattern → ≤20 命中(±40 字符上下文);否则行分页(page/page_size/has_more)
  • repeat_request:取 raw → 解析 → 补丁(url/params/headers/body/cookies)→ 重建 raw(Host/UA 默认、framing 头剔除、Content-Length 重算)→ 空 replay 会话 + startReplayTask → 轮询 entry 至出响应/错误(SDK 订阅等待的 HTTP-only 适配);30s strix 超时语义与文案
  • list_sitemap:根(scope 过滤)/ 后代(DIRECT/ALL),字段集照抄 caido_api.py:555-592
  • view_sitemap_entry:entry 详情 + 最近 30 条请求

形态

  • client.ts:global fetch + Bearer(endpoint 来自 sandbox 会话的 Caido bootstrap,懒解析——首次工具调用才付登录等待,strix 并发语义)
  • GraphQL 文档为 caido_sdk_client 生成文档的 trimmed 子集,已对真实 Caido 0.56.0 schema 验证
  • Caido ID 为 i32:非数字 ID 是 GraphQL 层错误(集成测试锁定该行为)
  • replay.ts:纯函数(parse/build raw、修改叠加、响应解析 8192 截断)100% 单测

Config

scanId、listPageSize(50)、replayTimeoutMs(30s)、caidoTimeoutMs(60s,对齐原 @function_tool timeout)。

测试

  • tests/replay.test.ts / tests/proxy.test.ts:纯函数 + fake HTTP 通道(精确操作名路由)
  • tests/integration.test.ts:真实容器内 Caido(docker 门控)——空表列出、sitemap、缺席 ID、GraphQL 层 ID 格式错误