@pandelis/openui
v0.1.0
Published
Shadcn-compatible OpenAI and ChatGPT UI components, theme tokens, and registry artifacts.
Maintainers
Readme
OpenUI
Shadcn-compatible React components for ChatGPT-style interfaces.
OpenUI ships in two forms:
- An npm package:
@pandelis/openui - A shadcn registry artifact for source-owned installs
The component set includes the ChatGPT shell, sidebar, header, composer, messages UI, login screen, settings dialog, command palette, and OpenAI-like theme tokens.
Install From npm
npm install @pandelis/openuiImport the compiled styles once:
import "@pandelis/openui/styles.css";Use the composed app:
import { ChatGPTApp } from "@pandelis/openui";
export default function Page() {
return <ChatGPTApp />;
}Or compose individual surfaces:
import {
ChatGPTComposer,
ChatGPTHeader,
ChatGPTShell,
ChatGPTSidebar,
ChatGPTThread,
} from "@pandelis/openui";Install Into shadcn
After publishing to npm, the registry files are available through npm CDNs.
Install the full ChatGPT component set into an existing shadcn project:
npx shadcn@latest add https://unpkg.com/@pandelis/openui@latest/r/openui-chatgpt.jsonInstall only the theme tokens:
npx shadcn@latest add https://unpkg.com/@pandelis/openui@latest/r/openui-theme.jsonThe generated registry artifacts are written to r/ by:
npm run registry:buildComponent Coverage
- Chat shell with collapsible desktop sidebar
- Current ChatGPT-style sidebar: new chat, search, images, apps, Codex, grouped history, account row
- Header with ChatGPT model dropdown, share/menu controls, and sync status state
- Centered home state with compact composer and bottom disclaimer
- Composer with attachment/tools menu, clickable response-mode dropdown, disabled/send states
- Full messages UI: user turns, assistant turns, system separators, structured response blocks, code blocks, tool cards, source chips, attachment previews, response action bar, skeleton thinking state
- Login/get-started screen matching the public ChatGPT layout
- Settings dialog with tabs, fields, switches, data/security surfaces
Development
npm install
npm run dev -- --port 5173
npm run buildUseful scripts:
npm run typecheck
npm run build:demo
npm run build:lib
npm run registry:build
npm run pack:dry-runDocumentation
Package Contents
dist/compiled ESM package and declarationsdist/styles.csscompiled OpenUI stylesr/openui-chatgpt.jsonshadcn registry itemr/openui-theme.jsonshadcn theme itemregistry.jsonsource registry manifest
License
MIT
