boxlang

34 articles tagged boxlang.

boxlang-ssg grows up: a real module, live reload and a demo site

boxlang-ssg is now a BoxLang module you install once and run in any site folder. 1.0 adds a built-in preview server, folder-style URLs and real error reporting. 1.1 adds live reload, a new command, folder defaults, permalink patterns, taxonomies, excerpts, YAML and CSV data, and baseUrl support. Dark Sky Dispatch, a fictional astronomy club blog, uses every feature and doubles as a GitHub template to start your own site.

boxlang

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

Reading feeds from BoxLang with bx-feeds

bx-feeds reads the world's messy feeds from BoxLang. Find a feed from any pasted address, fetch it politely, and parse RSS, Atom, JSON Feed and podcasts into one clean struct. This walkthrough builds the feed side of a reader, step by step.

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

Serving Sites from Your Dev Server

Side projects shouldn’t cost more than they have users. Here’s how I moved mine off a $75/mo hosting bill and onto Docker on my dev server: a Cloudflare Tunnel with no open ports, a trusted CF-Connecting-IP header, JVM memory sized from container limits, a deploy script that tests itself before it touches production, and encrypted off-site backups to R2. It’s not high availability. It’s a home server. But the bill is zero.

boxlang

Passwordless sign-in for BoxLang with bx-passkeys

Passkeys replace passwords with a key pair kept on the user's device, so there's nothing reusable to phish or leak. This step-by-step guide adds them to a BoxLang app with bx-passkeys. You install the module, create the table and configure the relying party, then wire up four calls: registrationOptions(), register(), signInOptions() and verify(). It also covers the browser helper, listing and removing passkeys, testing with a fake authenticator, and a production checklist.

boxlang

Everything Runs on My Dev Box Now, and That’s Fine

November means burning leftover time off on side projects. Feedhouse outgrew a $75/mo hosting bill it was never going to earn back, so everything now runs in Docker on my dev machine behind Cloudflare Tunnels. It’s faster, too, now that the database isn’t starving. And DismalThreads is back with a facelift after a launch nobody came to and more rewrites than I’d like to admit: Facebook for developers, minus the memes and the LinkedIn-ness.

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