Skip to content

Examples ​

One runnable file for each thing fulmine.js does that Express does not, or does differently. What an Express app already does, routers, view engines, sessions, uploads, works unchanged and is documented by Express itself.

Use caseHow
Keep a route on the fast pathexpress.testing.expectNative()
One process per core on one portexpress({ cluster: "auto" })
A database pool per cluster workerapp.cluster.share(40)
WebSockets next to your Express routesapp.ws("/room/:id", { open, message })
socket.io on uWebSockets.jsio.attachApp(app.uwsApp)
An MCP server on Expressthe official SDK, Streamable HTTP
Serve the .br and .gz files your build wroteexpress.static(dir, { preCompressed: true })
Compression without the compression packageapp.use(express.compression())
See how a request was routed in Server-Timingapp.use(express.serverTiming())
HTTPS without https.createServerexpress({ uwsOptions })
Client IP behind HAProxy, AWS NLB, nginx or Envoyapp.set("trust proxy protocol", true)
Graceful shutdownapp.listen() answers as an http.Server
Trace requests with diagnostics_channelexpress.router.request, http.server.*
Run on node:http, node:http2, Bun and Denohttp.createServer(app)
DELETE with a JSON bodyapp.set("body methods", ["DELETE"])
Move a project from Expressnpx fulmine.js migrate
See what listen() decidednpx fulmine.js profile and explain

The files are in the examples directory of the repository.

Apache-2.0. Attribution. Not affiliated with the Express.js project.