garindra / seniman-chatgpt

Fast & light ChatGPT UI written in Seniman.JS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

seniman-chatgpt

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

Set up the app

  1. Clone this repository
  2. Install the dependencies
npm install
  1. Run the build script
npm run build
  1. Start the server (passing your OpenAI API key as an environment variable)
OPENAI_API_KEY=<...> npm start

Get your OpenAI API key here.

  1. Open the app at http://localhost:3020

Network Performance

Compared to OpenAI's native chat.openai.com's frontend:

OpenAI

  • Downloads 600KB of JS upfront
  • ~160KB of data per message (short code block + 5 sentence paragraph)

Seniman

  • Downloads 3KB of JS upfront & 3KB of websocket messages to set up UI
  • ~5KB of WS data per message of same size

About

Fast & light ChatGPT UI written in Seniman.JS

License:MIT License


Languages

Language:JavaScript 100.0%