React-ing a Backend Framework
summary
Built an open source backend framework that turns MCP tool handlers into web UI by integrated React to render components inside tools, generating browser bundles at build time and serving self-contained HTML/JS widgets. Workflow splits TS (server JSON/text) and TSX (browser ESM blobs); handlers become single-file TSX handlers producing browser bundles that the client mounts after an MCP UI handshake. Several rebuilds solved CDN, bundling and stateless-host issues; framework runs in production (including Red Bull) and supports middleware like auth and payments.
AI-written summary · about
