Model or dataset
openai/openai-apps-sdk-examples avatar
openai/openai-apps-sdk-examples

openai-apps-sdk-examples: widget bundles on port 4444 and a dozen MCP servers that point ChatGPT at them

Example apps for the Apps SDK

2,396 stars536 forksTypeScriptMIT

At a glance

What is it?
openai/openai-apps-sdk-examples pairs a Vite-built gallery of React widgets with MCP servers in Node and Python. Its last push was on 15 April 2026, and several README commands do not match the folder names.
Who is it for?
Use openai-apps-sdk-examples if you are building a ChatGPT app and want working pairs of an MCP server and a widget bundle to copy, starting with pizzaz_server_node and kitchen_sink_server_node. Do not treat it as a maintained template, because the last push was on 15 April 2026 and some README commands name modules that do not exist.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Activity is slowing. The repository last received commits 7 months ago.
What is it written in?
Mainly TypeScript, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 16, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • openai/openai-apps-sdk-examples2,396 ★ · +29
Star history
Repository2026-10-132026-11-16
openai/openai-apps-sdk-examples2.4k2.4k

29 Stars in the last 34 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

Every server expects bundles from localhost:4444 before it starts

The repository splits into two halves that must run together. The first half is a set of React widgets under `src/`, which `build-all.mts` bundles with Vite into hashed `.html`, `.js` and `.css` files in `assets/`. The second half is a collection of MCP servers that return those files as UI resources.

The README is blunt about the order. All the MCP servers expect the bundled files to be served from the local static server, so after every build you start it before launching any MCP process:

bash
pnpm run serve

In `package.json` that script is `serve -s ./assets -p 4444 --cors`, so the assets appear at `http://localhost:4444` with CORS enabled for tools such as MCP inspectors. Skip the step and the servers have no widget markup to hand back.

Install, build and iterate: three commands and the toolchain they need

Prerequisites are Node.js 18 or newer, pnpm (npm and yarn are allowed with adjusted commands), Python 3.10 or newer for the Python servers, and pre-commit for formatting. Setup is:

bash
pnpm install
pre-commit install

Then `pnpm run build` runs `build-all.mts` through tsx and produces versioned files inside `assets/`. Each widget is wrapped with the CSS it needs, so you can host the bundles on your own server directly. For local iteration, `pnpm run dev` launches the Vite dev server.

The package is named `ecosystem_ui` at version 5.0.16, and its license field says ISC while the repository license is MIT. `packageManager` pins pnpm 10.24.0, which matters if your pnpm is older.

What a minimal MCP integration must do: list tools, call tools, return widgets

The README lists three capabilities. First, list tools: the server advertises each tool with JSON Schema input and output contracts and optional annotations such as `readOnlyHint`. Second, call tools: when the model selects one, it sends a `call_tool` request with arguments matching the user's intent, and the server returns structured content. Third, return widgets: embedded resources travel in the response metadata so the Apps SDK can render the interface inline in ChatGPT.

The link between a tool and its widget is `_meta.ui.resourceUri`, returned from the MCP server. Transport is open, and the README says you can host the server over Server-Sent Events or streaming HTTP, since Apps SDK supports both.

This is the pattern the demos repeat. Reading one server end to end gives you the shape of all of them.

Pizzaz is the broad demo, kitchen sink lite is the one that touches window.openai

Pizzaz contains a list view, a carousel view and a map view, plus a pizzaz shop with interactive flows and a checkout page. It uses the Apps SDK UI library for images, buttons and badges. Servers exist in Node (`pizzaz_server_node`, built on the official TypeScript SDK) and Python (`pizzaz_server_python`).

Kitchen sink lite is the smaller reference for host integration. The README says it exercises the full `window.openai` surface: it reads `toolInput`, `toolOutput`, `displayMode`, `theme` and `widgetState`, writes state with `setWidgetState`, calls another MCP tool from the widget with `callTool`, and uses `requestDisplayMode`, `openExternal` and `sendFollowUpMessage`.

If you only read one widget, read this one, because it shows each host call in a few lines. Node and Python versions exist for it too.

Shopping cart state survives turns through widgetSessionId

`shopping_cart_python/` demonstrates how `_meta["widgetSessionId"]` keeps `widgetState` in sync across turns for a cart widget. A model calls tools several times in one conversation, and a cart that forgets its contents between calls is useless. This example shows the server-side key that ties those calls to one widget instance.

Two other servers cover different problems. `authenticated_server_python/` demonstrates tool calls that require different levels of OAuth. `solar-system_server_python/` serves a 3D solar system viewer, and the dependency list in `package.json` shows why it is heavy: three.js types, `@react-three/fiber`, `drei` and `postprocessing`.

The Pizzaz Python server caches widget HTML with `functools.lru_cache`. If you rebuild or edit files in `assets/`, restart that server or it keeps serving the old markup.

Commands that name modules the folders do not contain

Several launch commands do not line up with the directory names, so copy them with care. The authenticated server folder is `authenticated_server_python`, but the command is `uvicorn authenticated_python_server.main:app --port 8000`, with `python_server` in the middle. The solar system command is `uvicorn solar-system_server_python.main:app --port 8000`, and a module path with a hyphen is not valid Python import syntax.

The repository root also contains entries the README structure list does not mention: `cards_against_ai_server_node/`, `mcp_app_basics_node/` and a file named `ngrok-v3-stable-linux-amd64.tgz`. Nothing in the visible README explains them, and the ngrok archive is a Linux binary, so it is of no use on macOS or Windows.

All the Python examples use port 8000 in the README, so run one at a time or change the port.

Last push on 15 April 2026, plus a Chrome 142 flag you must change

The last push was on 15 April 2026, more than six months ago, and the repository is not archived. No GitHub releases exist. The project cannot be described as actively maintained on that evidence, and the Apps SDK documentation at developers.openai.com is the place to check whether patterns here still match the current SDK.

One practical blocker comes first. On Chrome 142, the README says you must disable the `local-network-access` flag to see the widget UI. Open `chrome://flags/`, find `#local-network-access-check`, set it to Disabled, and restart Chrome for it to take effect.

The README describes the repository as a starting point and source of inspiration for building ChatGPT apps, not as a library you install.

Editorial conclusion

Use openai-apps-sdk-examples if you are building a ChatGPT app and want working pairs of an MCP server and a widget bundle to copy, starting with pizzaz_server_node and kitchen_sink_server_node. Do not treat it as a maintained template, because the last push was on 15 April 2026 and some README commands name modules that do not exist. Before you start, run pnpm run build and pnpm run serve, then confirm http://localhost:4444 returns the bundles, since every server depends on that step.

Frequently asked questions

What is the OpenAI Apps SDK examples repository?

It is a gallery of example UI widgets for the Apps SDK and demo MCP servers that expose those widgets as tools. The README calls it a starting point for building apps for ChatGPT.

How do I run the Apps SDK examples locally?

Run `pnpm install`, `pnpm run build` and `pnpm run serve`, which exposes the bundles at http://localhost:4444. Then start one MCP server, such as `pnpm start` inside pizzaz_server_node.

Why does the widget UI not show in Chrome?

On Chrome 142 the local-network-access flag blocks it. Set #local-network-access-check to Disabled at chrome://flags/ and restart Chrome.

Official sources

  1. Issues
  2. License: MIT
  3. openai/openai-apps-sdk-examples on GitHub
  4. README
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/openai-openai-apps-sdk-examples.svg)](https://hysenlabs.com/projects/openai-openai-apps-sdk-examples)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/openai-openai-apps-sdk-examples.svg)](https://hysenlabs.com/projects/openai-openai-apps-sdk-examples)

Was this useful?