Project
boxlang-express
An Express.js-style API for building lightweight HTTP servers in BoxLang — routing, middleware, sessions, views, and static files, with the same shape as Express if you've used it before.
Familiar routing
Every HTTP verb has a matching method on app — get, post, put, patch, delete — with route params, regex-constrained and multi-param segments, wildcards, and mountable sub-routers.
Middleware chain
app.use() runs handlers in registration order, scoped to a path prefix if needed, with built-in body parsers, schema validation, session, CSRF, rate-limit, and security-header middleware.
Views & templates
res.render() runs native BoxLang .bxm templates inside an app-wide layout, with partial() for shared pieces and app.locals and res.locals merged into every view's data.
Sessions & static files
Cookie-based sessions via req.session, plus static file serving and multipart uploads, with conditional-GET (ETag / 304) support for files and, optionally, every response.
bxsapp = boxExpress()
app.get( "/", ( req, res ) => {
res.send( "Hello World" )
} )
app.listen( 3000, ( port ) => {
println( "listening on #port#" )
} )