/Knowledge/sources/honojs__hono/llms-full/cloudflare-pages-bindings-use-bindings-in-your-application--8c9d2acc12ed.md

Cloudflare Pages: Bindings > Use Bindings in your application - hono-...

Cloudflare Pages: Bindings Use Bindings in your application Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms ful...

Cloudflare Pages: Bindings > Use Bindings in your application

Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#use-bindings-in-your-application

Summary

Use Variable and KV in your application. Set the types. ts type Bindings = { MY_NAME: string MY_KV: KVNamespace } const app = new Hono () Use them: ```tsx app.get('/', async (c) => { await c.env.MY_KV.put('name', c.env.MY_NAME) co...

Content

Use Variable and KV in your application. Set the types.

type Bindings = {
  MY_NAME: string
  MY_KV: KVNamespace
}

const app = new Hono<{ Bindings: Bindings }>()

Use them:

app.get('/', async (c) => {
  await c.env.MY_KV.put('name', c.env.MY_NAME)
  const name = await c.env.MY_KV.get('name')
  return c.render(<h1>Hello! {name}</h1>)
})

Metadata

{
  "chunk_index": 0,
  "citation": "https://hono.dev/llms-full.txt#use-bindings-in-your-application",
  "coverage_role": "overview",
  "qualified_title": "Hono / llms-full / Cloudflare Pages > Bindings > Use Bindings in your application",
  "retrieved_at": "2026-07-02T05:51:01Z",
  "section_index": 475,
  "source_id": "/honojs/hono",
  "source_type": "llms_full",
  "target_label": "llms-full",
  "title": "Cloudflare Pages: Bindings > Use Bindings in your application",
  "upstream_url": "https://hono.dev/llms-full.txt",
  "version": "2026"
}
Kinic Wiki
Loading knowledge node
Details

Identity

database
db_23dhmsxlhukv
database_id
db_23dhmsxlhukv
path
/Knowledge/sources/honojs__hono/llms-full/cloudflare-pages-bindings-use-bindings-in-your-application--8c9d2acc12ed.md
kind
directory
role
markdown_note
children
0

Metadata

created_at
virtual
updated_at
virtual
etag
virtual
metadata_json
{}

Lint Hints

No lightweight warnings.

Outgoing Links

No outgoing links indexed.

Incoming Links

Select a file node to inspect backlinks.

Raw Source

No raw source path inferred.