---
title: "Recipes"
description: "Practical oRPC recipes for testing and mocking, validation, monorepos, publishing a typed client to npm, faster SSR, and fixing common TypeScript errors."
seo:
  title: "Recipes: Testing, Monorepos, SSR, and More"
sidebar:
  hidden: true
---

Short guides for common tasks and problems.

- [Testing and Mocking](/docs/recipes/testing-and-mocking): test procedures directly and mock them.
- [Validation Customization](/docs/recipes/validation-customization): turn off validation or shape validation errors.
- [Monorepo Setup](/docs/recipes/monorepo-setup): keep types end to end across packages.
- [Publish Client to NPM](/docs/recipes/publish-client-to-npm): ship your client as a typed SDK.
- [Optimizing SSR](/docs/recipes/optimizing-ssr): skip HTTP when rendering on the server.
- [Dedupe Middleware](/docs/recipes/dedupe-middleware): avoid repeating expensive middleware work.
- [No Throw Literal](/docs/recipes/no-throw-literal): why oRPC expects `Error` instances.
- [Exceeds the Maximum Length Problem](/docs/recipes/exceeds-the-maximum-length-problem): fix the error for very large router types.
