/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-using-rpc-with-larg-8c459d6c6966-using-rpc-with-larger-applications-s0067-c0001.md
Using RPC with larger applications (2) - hono-docs
Using RPC with larger applications (2) Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt using rpc...
Using RPC with larger applications (2)
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#using-rpc-with-larger-applications
Summary
You can then import the sub-routers as you usually would, and make sure you chain their handlers as well, since this is the top level of the app in this case, this is the type we'll want to export. ```ts // index.ts import { Hono } from...
Content
You can then import the sub-routers as you usually would, and make sure you chain their handlers as well, since this is the top level of the app in this case, this is the type we'll want to export.
// index.ts
import { Hono } from 'hono'
import authors from './authors'
import books from './books'
const app = new Hono()
const routes = app.route('/authors', authors).route('/books', books)
export default app
export type AppType = typeof routesYou can now create a new client using the registered AppType and use it as you would normally.