Building Critical Infrastructure with htmx: Network Automation for the Paris 2024 Olympics
A Django/Celery/SQLite/htmx stack was used to build a network service portal that configured switch ports for the Paris 2024 Olympics network across three services: Direct Internet Access, Private VLAN and Shared Internet Access. Server-rendered HTML fragments, simple polling (e.g. a progress bar refreshed every 600ms via hx-trigger) and long procedural view functions kept the data flow in one place and the behaviour visible in the markup. That compact structure made LLM extrapolation effective: the first service took 4 weeks by hand, the second was about 80% generated by Claude in 1 week, and the third about 95% generated in 1 day. The same app was later reused for the Tour de France 2025, and an earlier htmx L2VPN migration tool shipped in 5 weeks, against at least double the time the author estimates for an SPA.
Related posts
- Speeding up agentic workflows with WebSockets in the Responses API
OpenAI mediumAdept
OpenAI cut end-to-end latency of agentic loops on the Responses API by about 40% by adding a WebSocket mode that keeps a persistent connection with a connection-scoped in-memory cache of prior response state. Follow-up `response.create` calls with `previous_response_id` reuse cached rendered tokens, tool definitions and routing, so safety classifiers and validators process only new input, and postinference work like billing overlaps with later requests. An earlier prototype that modeled the whole rollout as one long-running response blocked on client tool calls was faster still, but it was dropped in favor of keeping the familiar API shape. Earlier sprint work (token and config caching, fewer network hops, faster safety checks) improved TTFT by about 45%, and the WebSocket mode let GPT-5.3-Codex-Spark reach 1,000+ TPS, with partners such as Cline, Vercel and Cursor reporting 30-40% speedups.
- The Best Platforms to Deploy AI Apps in 2026 (Not the Models, the Apps Around Them)
Railway easyNoviceDeploying AI apps splits into two distinct problems: Layer 1 model serving (GPU scheduling, weight loading, per-token economics) and Layer 2 AI apps (long-running web services, workers, Postgres/pgvector, crons, streaming) that call hosted model APIs. Most teams need a Layer 2 platform with long-running processes, database adjacency, background workers, scheduled jobs, streaming support, agent-friendly observability and an MCP server, paired with a Layer 1 platform only for custom inference. Ranked platforms include Railway, Modal, Render, Vercel, Fly.io, Northflank and Cloud Run, with pricing and tradeoffs for each, such as Vercel's function-timeout limits, Render's idle-capacity costs and Fly's uneven reliability record. It is published by Railway, which ranks itself first.
- Building with the OpenAI Apps SDK: A Field Guide
Render mediumAdept
OpenAI's Apps SDK extends the Model Context Protocol with a widget layer: tools that return structuredContent with `_meta.openai/outputTemplate` metadata get rendered as inline React components in ChatGPT. Lessons from building a movie recommendation app (Express, TypeScript, Postgres, Valkey, Vite-bundled widgets) include keeping MCP tools portable across clients, iterating via an ngrok tunnel, and building a local widget harness with fixtures and a stubbed `window.openai.callTool()`. Opaque `424 Unhandled errors in TaskGroup` failures almost always come from response-shape mismatches, so log payloads and keep reference fixtures. The full chat loop has no built-in telemetry, so add timing instrumentation yourself.
- Making a web app generator with open ML models
Hugging Face mediumAdeptA Node.js/Express server can generate web apps from a text prompt by streaming tokens from a code LLM (WizardCoder-15B on Hugging Face Inference Endpoints) straight into the browser as HTML. Prompt tuning does most of the work: terse imperative instructions, pre-seeding the output with `<html><body class=...>`, and requiring TailwindCSS so styles arrive inline without a stylesheet that stalls rendering. Image URLs come from a Stable Diffusion `/image` endpoint that the model is told to call. Alpine.js provides a minimal UI, and DaisyUI's shorthand classes cut token usage compared with verbose Tailwind utility classes.
- Supercharging Directus on Railway with a Static Frontend
Railway mediumAdeptA custom Python static site generator replaces per-request GraphQL fetching from a Directus CMS, which was slow and loaded the server, for a school newspaper site. A single GraphQL query pulls all published articles and issues. Jinja2 templates render pages into per-path index.html files and collect URLs for a sitemap. Deployment runs through GitHub Actions to GitHub Pages, and a Directus flow fires a repository_dispatch webhook so content edits trigger rebuilds. HTMX handles 'Read More' expansion by fetching the prebuilt article page and swapping in just the article element.