/Knowledge/sources/honojs__hono/llms-full/app-hono-router-option--1ba7a6c5a9d7.md
App - Hono: router option - hono-docs
App Hono: router option Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt router option Summary The rout...
App - Hono: router option
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#router-option
Summary
The router option specifies which router to use. The default router is SmartRouter. If you want to use RegExpRouter, pass it to a new Hono instance: ```ts twoslash import { Hono } from 'hono' // ---cut--- import { RegExpRouter }...
Content
The router option specifies which router to use. The default router is SmartRouter. If you want to use RegExpRouter, pass it to a new Hono instance:
import { Hono } from 'hono'
// ---cut---
import { RegExpRouter } from 'hono/router/reg-exp-router'
const app = new Hono({ router: new RegExpRouter() })
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#router-option",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / App - Hono > router option",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 625,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "App - Hono: router option",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}