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

@koishi-ce/plugin-http

v1.0.1

Published

HTTP and WebSocket client for Koishi

Readme

@koishi-ce/plugin-http

简体中文 | English

Koishi 的 HTTP 与 WebSocket 客户端基础服务,提供 ctx.http。本包是 @cordisjs/plugin-http(fetch 实现的 axios 风格客户端)在 @koishi-ce 名下的再分发存根:内联再导出上游包的全部导出,peer 指向 @koishi-ce/koishi,使 CE 生态获得统一的 HTTP 服务而不引入官方包双实例。它是预编译产物包——无 src/ 目录、不走根 tsdown 构建(根配置显式 exclude),发布内容即 index.mjs 与 index.d.ts。

服务

ctx.http 提供整套请求方法(get / post / put / patch / delete / head 与 ws 等)、请求拦截器、http/file 文件缓存等事件,请求与响应的形态为 axios 风格(Response 携带 data / status / headers)。

配置项

| 字段 | 类型 | 默认值 | 说明 | | --- | --- | --- | --- | | baseURL | string | - | 请求的基础地址(旧名 endpoint 已废弃) | | headers | object | - | 默认请求头 | | timeout | number | - | 默认超时(毫秒) |

单次请求可额外指定 method / params / data / keepAlive / redirect / responseType / validateStatus 等。

用法

bun add @koishi-ce/plugin-http
plugins:
  http:
    timeout: 10000
export async function apply(ctx) {
  const data = await ctx.http.get("https://example.com/api", { params: { q: 1 } });
}

上游文档见 cordiverse/http。

许可证

MIT。本包内联再导出 MIT 许可的上游 @cordisjs/plugin-http,版权归属见 NOTICE。


English

The HTTP and WebSocket client service for Koishi, providing ctx.http. This package is a redistribution stub of @cordisjs/plugin-http (a fetch-based, axios-style client) under the @koishi-ce scope: it re-exports the upstream package in full, with a peer on @koishi-ce/koishi, giving the CE ecosystem a unified HTTP service without a duplicate official instance. It is a prebuilt artifact package — no src/ directory, excluded from the root tsdown build — whose published content is just index.mjs and index.d.ts.

Service

ctx.http offers the full request API (get / post / put / patch / delete / head, ws, ...), request interceptors, http/file caching events and more, in an axios-style shape (Response carries data / status / headers).

Configuration

| Field | Type | Default | Description | | --- | --- | --- | --- | | baseURL | string | - | Base URL for requests (the old name endpoint is deprecated) | | headers | object | - | Default request headers | | timeout | number | - | Default timeout in milliseconds |

Per-request options include method / params / data / keepAlive / redirect / responseType / validateStatus.

Usage

bun add @koishi-ce/plugin-http
plugins:
  http:
    timeout: 10000
export async function apply(ctx) {
  const data = await ctx.http.get("https://example.com/api", { params: { q: 1 } });
}

See cordiverse/http for upstream documentation.

License

MIT. This stub re-exports the MIT-licensed upstream @cordisjs/plugin-http; see NOTICE for attribution.