NextFs
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
- Quickstart — add the package and write your first page
- Starter App Walkthrough — step through the full example
- Data Fetching & Route Config — server
fetch()and route segment exports - Server & Client Patterns — route handlers, mixed flows
- Directives & Wrappers —
'use client'/'use server'rules - Special Files —
error.js,loading.js,not-found.js, and more - API Reference — complete module and type lookup
Other Guides
- DSL & Computation Expressions
- Instrumentation
- Migration Guide (0.x → 1.0)
- Package Design & Limitations
- FAQ
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 |