Skip to main content
.NETStandard2.1

Fable bindings for express, generated by Glutinum

Published
Sep 20, 2026
29d ago
Total Downloads
2.9K
2,850

Install

dotnet add package Glutinum.Express --version 0.3.0
ProductVersions
.NET Standard
netstandard2.1

README

Glutinum.Express

Fable bindings for express, generated by Glutinum

Generated by Glutinum from @types/express.

The bindings live in the Glutinum.Express module. Express.Exports.express () creates the application, Exports.json, Exports.urlencoded and Exports.Router are the values of the express namespace, and its types are Express.Request, Express.Response and Express.RequestHandler.

open Glutinum
open Glutinum.Express

let app = Exports.express ()

// The JSON body parser, a middleware of connect
app.``use`` (ExpressAdapter.Middleware(Exports.json None)) |> ignore

// A handler takes the request and the response, `ExpressAdapter.RequestHandler` also accepts `next`
app.get ("/users/:id", ExpressAdapter.RequestHandler(fun request response ->
    let id = unbox<string> request.``params``.["id"]
    response.json {| id = id; name = "Ada" |} |> ignore))
|> ignore

app.post ("/users", ExpressAdapter.RequestHandler(fun request response ->
    response.status(201).json {| name = request.body?name |} |> ignore))
|> ignore

app.listen 3000 |> ignore

ExpressAdapter is hand-written in Glutinum.Express.Extensions.fs, shipped with the package. The route methods (get, post, all, use...) return the application, so a call ends with |> ignore. The tests/App.fs file of this folder is a complete example.

Install the npm package next to the NuGet package, or run femto to do it.

The file Glutinum.Express.fs is generated by ./build.sh generate Express in the hub, do not edit it.

Changes from Previous Version

v0.2.0v0.3.0
Added Frameworks
.NETStandard2.1
Removed Frameworks
.NETStandard2.0
Added Dependencies
FSharp.Core(.NETStandard2.1)
Fable.Core(.NETStandard2.1)
Fable.Package.SDK(.NETStandard2.1)
Glutinum.Node(.NETStandard2.1)
Glutinum.Types(.NETStandard2.1)
Removed Dependencies
Glutinum.BodyParser(.NETStandard2.0)
Glutinum.Qs(.NETStandard2.0)
Glutinum.ServeStatic(.NETStandard2.0)
FSharp.Core(.NETStandard2.0)
Fable.Core(.NETStandard2.0)
Fable.Node(.NETStandard2.0)

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.