/Knowledge/sources/honojs__hono/llms-full/node-js-access-the-raw-node-js-apis--692164833ff6.md
Node.js: Access the raw Node.js APIs - hono-docs
Node.js: Access the raw Node.js APIs Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt access the raw no...
Node.js: Access the raw Node.js APIs
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#access-the-raw-node-js-apis
Summary
You can access the Node.js APIs from c.env.incoming and c.env.outgoing. ```ts import { Hono } from 'hono' import { serve, type HttpBindings } from '@hono/node-server' // or Http2Bindings if you use HTTP2 type Bindings = HttpBinding...
Content
You can access the Node.js APIs from c.env.incoming and c.env.outgoing.
import { Hono } from 'hono'
import { serve, type HttpBindings } from '@hono/node-server'
// or `Http2Bindings` if you use HTTP2
type Bindings = HttpBindings & {
/* ... */
}
const app = new Hono<{ Bindings: Bindings }>()
app.get('/', (c) => {
return c.json({
remoteAddress: c.env.incoming.socket.remoteAddress,
})
})
serve(app)
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#access-the-raw-node-js-apis",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Node.js > Access the raw Node.js APIs",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 457,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Node.js: Access the raw Node.js APIs",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}