An aggregator router consolidates a feature’s procedures or handlers into one readable routing definition. It turns a scattered API surface into a file you can inspect as a map of entry points. section 8.2
A feature router in practice
Cal.com’s holidays router collects three procedures—two reads and one write—in a single tRPC file. Each procedure can still delegate implementation to a separate handler, while the router exposes names, inputs, and operations together.
Use the router as an architectural clue:
- Read the procedures together to identify a feature’s complete public surface. section 8.2
