{"repo":"mcrovero/effect-nextjs","free":true,"listed":false,"github":"https://github.com/mcrovero/effect-nextjs","clone":"git clone https://github.com/mcrovero/effect-nextjs.git","description":"Typed helpers for building Next.js App Router pages, layouts, server components, and actions with Effect.","language":"TypeScript","stars":146,"topics":["effect-ts","nextjs","typescript"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"@mcrovero/effect-nextjs Write your Next.js App Router pages, layouts, server components, routes, and actions with Effect without losing the Next.js developer experience. - End-to-end Effect : Write your app logic as Effect while keeping familiar Next.js ergonomics. - Composable middlewares : Add auth and other cross‑cutting concerns in a clear, reusable way. - Works with Next.js : redirect , notFound , and other control‑flow behaviors just work. Also provides Effect versions of the utilities. - Safe routing : Decode route params and search params with Effect Schema for safer handlers. - Cache‑ready : Plays well with @mcrovero/effect-react-cache (react-cache wrapper) across pages, layouts, and components. [!WARNING] This library is in early alpha and is not ready for production use. Getting Started 1. Install effect@3.20.0 or newer and the library in an existing Next.js 15+ application or create a new Next.js application first: [!IMPORTANT] This library requires effect = 3.20.0 . Older Effect releases can lose Node.js AsyncLocalStorage request context under concurrent load. 2. Define Next effect runtime [!WARNING] It is important that all layers passed to the runtime are stateless. If you need to use a stateful layer like a database connection read below. (see Stateful layers) 3. Write your first page When using Effect.fn you'll get automatic telemetry spans for the page load and better stack traces. 4. Define a middleware 5. Use the middleware in a page and get the CurrentUse","default_branch":null,"files":null,"tree":[],"storefront":"/r/mcrovero","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mcrovero/effect-nextjs/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}