Back to Explore

honojs/node-server

GitHub
10 updates · last 90 days1 watchersOpen source

Last release: 2 weeks ago

@hono/node-server is a Node.js adapter that lets you run a Hono application on Node.js by using web standard Request/Response APIs. It provides a `serve` function to start the app, optional WebSocket support (via `upgradeWebSocket`), and Node.js-friendly helpers like ConnInfo and static file serving.

Project status

  • Actively maintained: the repo shows recent tagged updates (v2.0.4 on 2026-05-24, with additional updates in the preceding weeks), and each update includes targeted bug fixes and TypeScript surface changes.
  • Update cadence appears fairly regular in recent history, with v2.0.4 on 2026-05-24, v2.0.3 on 2026-05-18 (about 6 days later), and v2.0.2 on 2026-05-08 (about 10 days earlier).

AI summary generated Today

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v2.0.4

    2 weeks ago

    v2.0.4 introduces a set of locally defined WebSocket interface stubs to avoid importing `ws` types into the package's public TypeScript surface. The runtime logic for websocket upgrade/handshakes remains effectively the same, but several exported TypeScript types used by `upgradeWebSocket` and the `websocket.server` option were retargeted to these new stubs.

    Features
  • v2.0.3

    2 weeks ago

    v2.0.3 primarily fixes a header-cloning regression in the Response implementation, ensuring that headers mutated after a raw Response is constructed are preserved when the response is later cloned. The release notes also mention CI action version updates and a documentation comment alignment for ServeStaticOptions.

  • v2.0.2

    1 month ago

    v2.0.2 contains fixes to the serve-static adapter, specifically around HTTP header values and stream fallback behavior. The code changes also refactor the stream fallback logic into a new utility module and adjust headers emitted for static responses.

    Breaking
  • v2.0.1

    1 month ago

    v2.0.1 improves WebSocket upgrade handling by forwarding response headers produced by Hono middleware/handlers. The change is implemented in the WebSocket adapter so headers are applied during both upgrade success and upgrade rejection scenarios (with filtering of hop-by-hop/WebSocket handshake headers).

  • v2.0.0

    1 month ago

    Release v2.0.0 claims a major performance upgrade and multiple behavioral changes for the Hono Node.js adapter. However, the provided code diff for this release shows only a package.json version bump from 2.0.0-rc.2 to 2.0.0, with no other source changes visible.

    BreakingFeatures
  • v2.0.0-rc.2

    1 month ago

    Release v2.0.0-rc.2 introduces major internal refactors to the Node.js adapter, including new WebSocket support APIs and performance-oriented fast paths for response handling. The release notes section is empty, so the behavioral and packaging changes are not documented here, but they are visible in the code diff.

    Features
  • v1.19.14

    1 month ago

    v1.19.14 updates the Node.js adapter to add a custom util.inspect implementation for the lightweight Request and Response objects. This prevents errors when developers log these objects (for example, via console.log), and improves the inspected output before the underlying native Node request/response is created.

  • v1.19.13

    2 months ago

    v1.19.13 patches a security issue in the Serve Static middleware related to how repeated slashes can lead to bypassing middleware authorization. The code change strengthens path validation and the tests add coverage for a double-slash URL that previously could access protected content.

    Security
  • v1.19.12

    2 months ago

    v1.19.12 includes a fix related to draining incoming request data when a response is generated early, specifically to avoid network errors (eg, ECONNRESET) during early 413 handling. It also contains a small non-functional housekeeping change.

  • v2.0.0-rc.1

    2 months ago

    The release notes provided for v2.0.0-rc.1 contain no documented changes. The only code diff is a modification to .gitignore, adding an entry to ignore a local Claude settings file.