bx-express

18 articles tagged bx-express.

bx-graphql 0.2: A GraphQL API from the Classes You Already Have

bx-graphql 0.2 adds a code-first way to build GraphQL APIs in BoxLang: annotate the beans and services you already have, and the module generates the schema and wires each field to its function. This post builds a small bookshelf app that uses every new feature: types and inputs from beans, queries and mutations from services, enums, interfaces and unions, custom scalars, authorization, batch loading and structured errors. Schema-first apps keep working unchanged.

boxlang

BoxLang-express-mvc: ColdBox-style handlers for BoxLang Express

boxlang-express-mvc brings ColdBox-style conventions to BoxExpress: handlers with ( event, rc, prc ), a route().to() router, views, layouts and service injection. It is familiar, not compatible, and compiles to plain BoxExpress routes at startup. This post builds a todo list app in eight steps, with sessions, CSRF protection, bx-esapi encoders and a Dockerfile, noting at each step what matches ColdBox and what differs.

boxlang

A Small BoxExpress App, Laid Out Like the Big Ones

Feedhouse, BoxPress and my other Boxlang Express apps share one layout. This post builds a small bookmarks API with it: a Bootstrap that wires every service by hand, routes that only speak HTTP, stores that never see req or res, and typed errors handled in one place. Each piece is mapped to its ColdBox equivalent (WireBox, handlers, interceptors, cfmigrations), with the trade-offs. A Claude skill for scaffolding is included.

boxlang

BoxLang Express 0.2.27, and sign-in with boxlang-express-auth

BoxLang Express 0.2.27 adds page layouts and partials, regex route params, schema validation, content negotiation, signed cookies, request timeouts and body limits, an access log, cron schedules, and middleware for WebSocket upgrades. Alongside it comes boxlang-express-auth: sign-in with GitHub, Google, Microsoft, GitLab, Apple or any OpenID Connect provider, plus account linking, logout at the identity provider, and a test provider for your own specs.

boxlang

BoxPress: a working BoxLang Express app you can install and make your own

An open-source blogging platform with a composer built for writers: visual and Markdown editing, a server-rendered preview, paste-to-upload images, and drafts that survive closed tabs and crashes. It also covers what real apps need, from passkeys and CSRF to migrations, scheduled jobs, self-hosted analytics and Docker, all in readable code you can change.

boxlang

The JVM Was Calling System.gc() Behind My Back

Feedhouse, a small BoxLang RSS reader, was running up to 70 full GCs an hour with its heap a quarter full. The likely cause: when direct (off-heap) buffer memory reaches -XX:MaxDirectMemorySize, the JDK calls System.gc() itself, and I had capped it at 64 MB. Raising the cap to 128 MB cut full GCs to 2-5 an hour, past the point where the spike used to begin. How I tracked it down with hourly JVM metrics and an admin GraphQL API, driven by Claude Code.

boxlang

Everything Feedhouse Does, From the Boring Parts Up

A tour of everything Feedhouse does, from the boring parts up: adding feeds, folders and keyboard shortcuts, then search, read-later, highlights and stories shown once, then filters for what you never want to see, feed health, a reading-stats table of shame, sharing, bundles and the phone app. Then the good stuff: newsletters with an address of their own and no tracking pixels, and a podcast player that keeps going while you read. No algorithm required.

boxlang

My blog joined the fediverse

This blog is now on the fediverse as @blog@kisdigital.com. Follow it from Mastodon and new posts, edits and deletions reach your timeline within minutes; replies come back here as comments, and likes and boosts are counted. It's all powered by bx-activitypub, a new BoxLang module on ForgeBox and GitHub: your app answers four questions about its data and the module handles WebFinger, HTTP Signatures and delivery. Here's how it works, what I learned, and what's next.

boxlang

What's in BoxExpress Today

BoxExpress is an Express.js-style web framework for BoxLang, running on Undertow with a virtual thread per request — no servlet container needed. It covers routing, middleware, sessions, views, file serving, WebSockets, a full STOMP broker, and a scheduler. New: cross-process cluster support, with leader-elected scheduled jobs and STOMP pub/sub relayed across instances, backed by a durable shared cache. Real example apps: bxThreads (forum) and bx-graphql-demo.

boxlang

bxThreads: a bx-express port of DismalThreads

Ported my forum app (DismalThreads) from ColdBox/CBWIRE to BoxLang/boxlang-express as bxThreads — swapping CBWIRE's component reactivity for hand-rolled fetch()/websockets. Porting a real app with existing opinions (auth, rate limiting, realtime fan-out) is a better BoxLang stress test than starting fresh, since a blank project lets you dodge every hard problem by never hitting it.

boxlang

Adding SSE and WebSockets to BoxExpress (and Everything That Broke Along the Way)

BoxExpress adds server-sent events and full WebSocket support for pushing live updates to clients — dashboards, progress bars, chat, notifications. Built from scratch, since BoxExpress skips BoxLang's built-in web layer. Along the way: a concurrency bug in broadcast connections, a header-injection-style hole in SSE metadata, a BoxLang update that broke page rendering, and a STOMP bug letting one client hijack another's subscription. All caught by trying to break it.

boxlang