What problem does it solve?
Enable seamless, type-safe integration of Pikku services with Next.js apps for API routes, Server Components data fetching, and RPC calls.
Core Features & Use Cases
- Typed wrappers for Next.js API routes and Pikku functions (pikkuAPIRequest, pikku-nextjs.gen.ts) across API routes and components.
- Server Components & Server Actions data fetching with generated helpers supporting both dynamic (with request context) and static (precompile/ISR) usage.
- RPC integration and end-to-end wiring that allows server-to-client calls through a consistent, typed API surface in Next.js.
- Real-world scenario: A Next.js app uses the generated wrappers to call Pikku services from API routes and Server Components without leaking types or requiring manual adapters.
Quick Start
Install the Next.js Pikku integration (for example, yarn add @pikku/next) and wire the generated wrappers into your Next.js app as shown in the examples.