Transformers.js v4.3 ships browser-side structured output with JSON Schema constraints
Hugging Face · youtube · 2026-09-16
Hugging Face released Transformers.js v4.3, headlined by structured output: a new @huggingface/transformers-structured-output package forces models to follow an exact JSON Schema or regex directly in the browser, eliminating fragile markdown-fence parsing.
Key points from the walkthrough:
- How constrained decoding works and how the new package hooks into the Transformers.js logits processor
- Technical evolution: from a WASM wrapper around llguidance to a pure JavaScript implementation with almost no overhead
- Using regex instead of JSON Schema
- Performance benchmarks across Gemma 4, Granite, and LFM 2.5, plus a recipe-generator demo
- Also in 4.3: a full documentation pipeline overhaul and many community-contributed fixes
Related event: Transformers.js 4.3 brings JSON-constrained decoding to the browser(3 posts)→
More from coding & agent
- Factory Life: Six free sessions on building with a team of AI agents, from Warp to Hermes — intellectronica · 2026-09-16
- Coding agents write code faster, but debugging them is stranger and more tedious — tengyanAI · 2026-09-16
- Building a classifier in 2023 meant hacking OpenAI's function calling API — how far we've come — _ScottCondron · 2026-09-16
- Agent memory isn't one thing: sessions, wiki, procedural, and the forgotten 'judgment' layer — sujingshen · 2026-09-16
- Dev: wiring all service providers into MCP lets agents debug issues — DanielLockyer · 2026-09-16
- An agent with full-key access is the real risk: four rules for least-privilege agent credentials — sujingshen · 2026-09-16