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

@tibame201020/queqiao-http

v0.1.3

Published

Trusted curl-like HTTP extension for Queqiao

Readme

@tibame201020/queqiao-http

English | 繁體中文

Queqiao 的官方 curl-like HTTP extension。

@tibame201020/queqiao-http 讓已 attach 的 Queqiao Worker 取得方便的 http_request 能力,可直接發送 HTTP/HTTPS request。安裝/attach extension 本身就是信任決策;extension 不再維護 origin allowlist。

底層直接使用 Worker 執行環境的 native fetch,不執行 curl、shell 或 child_process

狀態

v0.1.3 對應 Queqiao 0.9.7。Canonical npm package 為 @tibame201020/queqiao-http

自 v0.1.1 起,npm 發布由 GitHub Release workflow 透過 npm Trusted Publishing + provenance 自動處理。

目前 request path:

MCP client / LLM
→ Queqiao Gateway
→ Queqiao Worker
→ stable extension proxy
→ queqiao-http
→ direct HTTP/HTTPS request
→ target service

已驗證行為包括:

  • JSON GET/POST request;
  • JSON request 自動 serialize、JSON response 自動 parse;
  • backend HTTP 4xx 保留為正常 HTTP response;
  • 可呼叫任意 HTTP/HTTPS origin,包括 localhost、WSL/private-network IP 與網際網路 origin;
  • 安裝或更新 extension 不會擴張 Queqiao 公開 connector manifest。

安裝

queqiao extension install npm:@tibame201020/queqiao-http --attach-all

或先安裝到 Extension Hub,再 attach 到指定 Worker:

queqiao extension install npm:@tibame201020/queqiao-http
queqiao extension attach dev.queqiao.http --worker windows

attach 即 activation。

Network authority

queqiao-http 不再有 per-origin grant list。

安裝並 attach 此 extension,即明確授權它從 Worker 發送 HTTP/HTTPS request。這是刻意設計:此 extension 的定位是方便的 curl-like network capability,而不是綁定某個服務的 adapter。

Package manifest 因此不宣告 managed-runtime HTTP origin:

{
  "runtime": {
    "processes": { "allow": [] },
    "outboundHttp": { "allowOrigins": [] }
  }
}

allowOrigins 為空是刻意的,因為 v0.1.3 已不再透過 context.runtime.http.request() 發送 request。

Capability

queqiao-http 只註冊一個 capability:http_request

輸入欄位:

  • workspaceId — 選定的 Queqiao Workspace;
  • url — 完整 HTTP 或 HTTPS URL;
  • methodGET | POST | PUT | PATCH | DELETE | HEAD,預設 GET
  • headers — optional string header map;
  • body — optional raw string body;
  • json — optional JSON value,與 body 互斥;
  • timeoutMs100120000,預設 30000

提供 json 時,extension 會自動 serialize,且 caller 未提供 Content-Type 時會補上 content-type: application/json

範例

{
  "workspaceId": "codes",
  "operation": "call",
  "extensionId": "dev.queqiao.http",
  "capability": "http_request",
  "arguments": {
    "url": "http://172.31.39.34:9889/api/meal/types",
    "method": "GET"
  }
}

Response contract

非 2xx status 會保留為普通 downstream HTTP response:

{
  "status": 200,
  "headers": { "content-type": "application/json" },
  "body": "{\"ok\":true}",
  "json": { "ok": true }
}

只有 response body 能成功 parse 為 JSON 時才提供 jsonbody 保留文字 response。

信任邊界

Queqiao extension 屬於 trusted plugin code。安裝並 attach queqiao-http,代表授權此 extension 從該 Worker 對外發送 open-world HTTP/HTTPS request。

Queqiao 仍負責 package install/attach、Extension contract validation、Gateway → Worker routing 與 ExtensionHost lifecycle。Extension 本身負責 request schema、限制 URL scheme 為 HTTP/HTTPS、timeout、直接 fetch 與 response normalize。

process allowlist: empty
shell access: none
curl execution: none
child_process: none
origin allowlist: none
direct global fetch: yes
risk: execute
openWorldHint: true

開發

npm ci
npm run check
npm pack --ignore-scripts --dry-run

發布

main CI passes
→ tag v<package-version>
→ publish matching GitHub Release
→ Publish npm workflow
→ npm Trusted Publishing + provenance

另見 docs/releasing.md

授權

MIT