Open-source library · MIT · v0.1.0 · zero dependencies
widgetspec
Answer components with receipts
1Features
- Six block kinds: text, compare, chart, calc, timeline, checklist
- Formula language with a hand-written parser: nothing outside it can run
- Audit with eleven finding codes; exit code 4 for build pipelines
- Plain-text fallback that keeps every number and every formula
decide()answers in text unless an interface is called for: 37 of 37 held-out interface choices right- One file, Node 18+ and browsers, 14 tests
2Applications
- Reviewing generated answer screens before they reach a reader
- Calculators and comparisons in documentation and help centres
- Test suites for chat products that answer with interfaces
- A plain-text view for readers who turn the visuals down
3Description
On 7 October 2026 ChatGPT began answering with interfaces: comparisons, charts, calculators, timelines and forms, picked per question from a library of components. A screen looks finished whether or not its numbers are right.
widgetspec describes an answer screen as data, checks that data against itself (totals, units, sources, formulas, every number quoted in the text, every slider at both ends) and renders it as an interface or as plain text.