Ship web, mobile, and API from a single codebase. Type-safe from database to device, with shared packages that keep your team moving fast.
Built with
One codebase for web, mobile, and API. A production-ready monorepo template with shared packages, type-safe APIs, and platform-specific apps that deploy independently.
Design tokens, navigation, utilities, and UI components live in shared packages. Write once, use everywhere.
oRPC contracts generate typed clients automatically. Catch errors at compile time, not in production.
Turborepo caching, Biome linting, React Compiler, and pnpm workspaces. Everything just works out of the box.
Next.js 16 with App Router, React Compiler, and shadcn/ui components built on Base UI primitives. Server components by default with streaming and partial prerendering.
import { Button } from "@infrastructure/ui-web";
export default function Home() {
return (
<main className="min-h-screen p-8">
<h1>Ship faster</h1>
<Button>Get Started</Button>
</main>
);
}Expo SDK 54 with React Native 0.81 and UniWind for Tailwind-style styling. Shared navigation and design tokens keep mobile and web in sync.
import { Link } from "@infrastructure/navigation";
import { View, Text } from "react-native";
export default function Home() {
return (
<View className="flex-1 p-4">
<Text className="text-2xl font-bold">
Hello from mobile
</Text>
<Link href="/settings">Settings</Link>
</View>
);
}Hono server with oRPC for end-to-end type safety. Define contracts once, get typed clients for free. Zod validation at the boundary, TypeScript everywhere else.
import { os } from "@orpc/server";
import { z } from "zod";
const pub = os.$context<{ requestId?: string }>();
export const router = {
users: {
list: pub.output(z.array(UserSchema))
.handler(() => { /* ... */ }),
get: pub.input(z.object({ id: z.string() }))
.output(UserSchema)
.handler(({ input }) => { /* ... */ }),
},
};Shared packages for navigation, UI tokens, utilities, and TypeScript configs. Feature packages for isolated business logic. Clean dependency boundaries enforced by convention.
infrastructure/
├── api-client/ # oRPC contracts + client
├── navigation/ # Platform-agnostic nav
├── ui/ # Design tokens, cn()
├── ui-web/ # shadcn/ui components
├── utils/ # Cross-platform helpers
└── typescript-config/
├── base.json
├── library.json
├── nextjs.json
└── react-native.json“This template cut our setup time from weeks to hours. The shared package architecture is exactly right.”
“Finally, a monorepo template that treats mobile as a first-class citizen. The UniWind integration is seamless.”
Clone the template and start shipping in minutes. MIT licensed, forever free.