#66th of 6 in Agent UI and generative UI

openai-structured-outputs-samples

Three Next.js samples driving UI from schema-constrained OpenAI outputs

Stars
685
License
MIT
Last commit
Dec 2025
Language
TypeScript

Overview

Three small Next.js apps, each with its own README: resume extraction renders structured fields from a model response, generative UI builds components from a JSON-schema output, and conversational assistant combines multi-turn chat, tool calling and generative UI in one flow. All rely on OpenAI Structured Outputs so responses always match the schema. For developers deciding how to bind model JSON to React components.

Who it is for: Developers binding model JSON to React components

Strengths

  • Conversational assistant sample is a reasonable base for a schema-driven assistant
  • Each sample is independent; copy one folder
  • Shows the schema-to-component pattern without a framework

Weaknesses

  • Root README has no setup; per-folder READMEs only
  • OpenAI-only
  • No auth, persistence or tests
  • Last commit 2025-12

What it needs

  • TypeScript, openai
  • Needs openai-api-key

Also in Agent UI and generative UI

See all 6
Also in Agent UI and generative UI
RankProjectScore
1agent-chat-uiNext.js chat frontend for any LangGraph server with interrupts and artifacts Live demo ↗ (opens in a new tab)3.2k stars, MIT45 out of 100
2OpenGenerativeUIChat interface that answers with 3D models, charts, calculators and maps2.3k stars, MIT45 out of 100
3agent-uiNext.js chat frontend for Agno AgentOS with tool calls and reasoning1.9k stars, MIT40 out of 100
#4stockbot-on-groqGroq chatbot answering with TradingView widgets via AI SDK generative UI Live demo ↗ (opens in a new tab)1.5k stars, Apache-2.024 out of 100
#5assistant-ui-stockbrokerassistant-ui frontend and LangGraph.js stockbroker agent with approval steps281 stars, MIT13 out of 100