coakka-http-runtime-node

中文文档
1.1.2发布于 2026/11/03SEE LICENSE IN PACKAGE-LICENSE.mdTypeScriptES Module零依赖

JavaScript and TypeScript APIs for CoAkka HTTP Runtime, a shared HTTP server and client for polyglot applications

原始使用文档
文档目录3 节
  1. Install
  2. Platforms
  3. Documentation and examples

CoAkka HTTP Runtime for Node.js and Bun

CoAkka

One HTTP runtime, with native JavaScript and TypeScript APIs.

CoAkka HTTP Runtime is part of the CoAkka ecosystem, alongside CoAkka Runtime and CoAkka Logger. It supplies a shared HTTP server and client for applications written in different languages. Business handlers stay in the application; the HTTP runtime owns protocol I/O, routing, bounded resources and lifecycle.

Use it for HTTP APIs, outbound HTTP requests, static files, streamed responses, server-sent events and WebSocket sessions. Each language keeps its own API, values and scheduling model.

Install

npm install [email protected]
# or
bun add [email protected]

Import from coakka-http-runtime-node in Node.js or coakka-http-runtime-bun in Bun. TypeScript declarations are included. Each package bundles the binaries for all supported platforms and loads the matching binary at runtime. No separate native SDK installation is needed.

Node.js22 or newer and Bun1.2.22 or newer are the compatibility floors. Native Windows ARM64 Bun is qualified with Bun1.4.2. Use maintained runtime patches.

Platforms

The package family covers macOS ARM64, Linux ARM64 and x86_64, and Windows ARM64 and x86_64. WSL2 uses the Linux x86_64 package. Linux requires glibc2.28 or newer; macOS requires version11 or newer. Qualification and registry availability belong to the exact release record.

Documentation and examples

Licensing scopes and required notices are described in PACKAGE-LICENSE.md.

版本与发布记录

coakka-http-runtime-node 共发布 2 个版本,首次发布于 2026/11/03;过去 12 个月发布了 2 个版本。

版本发布日期距今
1.1.2latest2026/11/03今天
0.0.0-stage2026/11/03今天

关于 coakka-http-runtime-node 的常见问题

coakka-http-runtime-node 是什么?

CoAkka HTTP Runtime的JavaScript和TypeScript api,这是一个用于多语言应用程序的共享HTTP服务器和客户端

如何安装 coakka-http-runtime-node?

在项目目录运行 npm install coakka-http-runtime-node,或使用 pnpm add / yarn add / bun add。

coakka-http-runtime-node 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

coakka-http-runtime-node 支持 ESM 还是 CommonJS?

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

coakka-http-runtime-node 需要什么版本的 Node.js?

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

coakka-http-runtime-node 可以商用吗?

coakka-http-runtime-node 使用 SEE LICENSE IN PACKAGE-LICENSE.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

coakka-http-runtime-node 还在维护吗?

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