/Knowledge/sources/honojs__hono/llms-full/rpc-using-rpc-with-larger-applications--part-02--370e366ab946.md

RPC: Using RPC with larger applications (part 02) - hono-docs

RPC: Using RPC with larger applications (part 02) Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt usin...

RPC: Using RPC with larger applications (part 02)

Source evidence: /Sources/honojs__hono/provenance.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 routes

You can now create a new client using the registered AppType and use it as you would normally.

Metadata

{
  "chunk_index": 1,
  "citation": "https://hono.dev/llms-full.txt#using-rpc-with-larger-applications",
  "coverage_role": "overview",
  "qualified_title": "Hono / llms-full / RPC > Using RPC with larger applications (2)",
  "retrieved_at": "2026-07-02T05:51:01Z",
  "section_index": 67,
  "source_id": "/honojs/hono",
  "source_type": "llms_full",
  "target_label": "llms-full",
  "title": "RPC: Using RPC with larger applications (part 02)",
  "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/rpc-using-rpc-with-larger-applications--part-02--370e366ab946.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.