NextFs

CI NuGet License: MIT

Thin Fable binding layer for writing Next.js App Router applications in F#.

The package stays close to native Next.js concepts instead of introducing a separate framework. If you already understand how a feature works in Next.js, the goal is that you can express the same shape in F# with minimal translation.

Install

dotnet add package NextFs

Reading Path

  1. Quickstart — add the package and write your first page
  2. Starter App Walkthrough — step through the full example
  3. Data Fetching & Route Config — server fetch() and route segment exports
  4. Server & Client Patterns — route handlers, mixed flows
  5. Directives & Wrappers'use client' / 'use server' rules
  6. Special Fileserror.js, loading.js, not-found.js, and more
  7. API Reference — complete module and type lookup

Compatibility

Package Version
NextFs 1.0.x
next >= 15.0.0 < 17.0.0
react / react-dom >= 18.2.0 < 20.0.0
Fable.Core 4.5.0
Feliz 2.9.0

Source & Examples