A fast, light ChatGPT UI built with Seniman. Loads with only 3KB of JS upfront, and uses WebSockets to stream the interface on-the-fly.
synhighlight.mov
- Clone this repository
- Install the dependencies
npm install
- Run the build script
npm run build
- Start the server (passing your OpenAI API key as an environment variable)
OPENAI_API_KEY=<...> npm start
Get your OpenAI API key here.
- Open the app at
http://localhost:3020
Compared to OpenAI's native chat.openai.com
's frontend:
- Downloads 600KB of JS upfront
- ~160KB of data per message (short code block + 5 sentence paragraph)
- Downloads 3KB of JS upfront & 3KB of websocket messages to set up UI
- ~5KB of WS data per message of same size