Show HN: OpenAI hasn't released their Apps SDK so we did
4 hours ago
1
A comprehensive toolkit for building OpenAI Apps SDK compatible applications. This monorepo provides everything you need to create rich, interactive widget applications for ChatGPT using the Model Context Protocol (MCP).
Head to our quickstart if you would like to skip straight to building!
OpenAI's Apps SDK allows developers to build interactive widgets that run inside ChatGPT. This SDK makes it easier to:
Build MCP servers with custom widget UIs
Create widget UI components using React hooks
Bundle and deploy your widgets for production
While OpenAI's official SDK is still in development, this toolkit provides production-ready packages to start building today.
oai-apps - Full example showing server and UI integration
User invokes tool in ChatGPT
Server handler processes request and returns:
content: Text/resources for the chat
structuredContent: Props for the widget
ChatGPT renders widget using the bundled HTML
Widget UI receives props via useWidgetProps() and renders
User interacts with widget, state persists via useWidgetState()
┌──────────────────┐
│ oai-hooks │ React hooks for widget UI
└────────┬─────────┘
│ used by
↓
┌──────────────────┐
│ Your Widget │ Your React components
└────────┬─────────┘
│ bundled by
↓
┌──────────────────┐
│ bundle/cli │ Bundling tools
└────────┬─────────┘
│ produces HTML for
↓
┌──────────────────┐
│ oai-server │ MCP server with widgets
└──────────────────┘
# Install dependencies
npm install
# Build all packages
npm run build
# Run tests
npm test
This SDK is built on the foundation of OpenAI's Apps SDK examples and makes them easily accessible as reusable npm packages. Special thanks to the OpenAI team for pioneering this approach to building interactive AI applications.