Skip to content
0xcro3dilePublic

About

Open-source alternative to ChatGPT's Intelligent UI. Answers arrive as live charts, forms and calculators. Works with any OpenAI-compatible model, in the cloud or local.

Topics

Resources

Code of conduct

Contributing

Stars

41 stars

Watchers

0 watching

Forks

Latest commit

 

History

49 Commits

Folders and files

Repository files navigation

AnswerUI

Answers you can use, not just read. Open source, any AI model.
Ask how something works and get a live 3D scene you can steer.

CI npm License: MIT

AnswerUI answering with live 3D scenes: a wave surface, a DNA helix and the Moon's phases

Watch in full quality · answers by Kimi K3, sped up 1.2×


AnswerUI is an open-source alternative to ChatGPT's Intelligent UI. It answers with interfaces instead of walls of text: charts, forms, calculators, and live 3D and 2D scenes. Move a slider and the scene changes instantly, and the numbers it works out flow back into the text. It works with any OpenAI-compatible model, in the cloud or on your own machine.

How it works: the model streams the interface in OpenUI Lang, and each scene runs as a sandboxed code island, two-way bound to the answer's state.

AnswerUI answering with live 2D animations: a pendulum, a bouncing ball and a wave AnswerUI answering with a savings calculator, a dinner planner and a bill splitter

In full quality: 2D animations · tools

Quick start

npx answerui-app

The first run asks for your API key. Press Enter instead to use a local model with Ollama.

Docker
docker run -p 127.0.0.1:3000:3000 --env-file .env ghcr.io/0xcro3dile/answerui
From source
git clone https://github.com/0xcro3dile/answerui.git
cd answerui
pnpm install
pnpm dev

Models

Set these in your environment, or save them with npx answerui-app --setup:

Variable What it does
OPENAI_API_KEY Your API key
OPENAI_BASE_URL Your provider's API address (default: OpenAI)
OPENAI_MODEL The model to use
OPENAI_EXTRA_BODY Extra JSON sent with each request, e.g. to turn off a model's thinking
OLLAMA_HOST Where Ollama runs (default: localhost)
ANSWERUI_ALLOWED_HOSTS Extra hostnames to serve, for example behind a proxy
Provider OPENAI_BASE_URL
OpenAI leave empty
OpenRouter https://openrouter.ai/api/v1
Kimi (Moonshot) https://api.moonshot.ai/v1
Groq https://api.groq.com/openai/v1
LM Studio http://localhost:1234/v1
Ollama leave everything empty

Bigger models build better interfaces. With Ollama, start it with OLLAMA_CONTEXT_LENGTH=16384.

Privacy

AnswerUI has no telemetry. Your messages go only to the provider you choose, your key stays on your machine, and the app only answers requests from your own computer. Scenes the model writes run in a locked sandbox: they can't reach the app or your key, and can't fetch or open web pages.

Credits

Built on OpenUI (MIT). Scenes use three.js (MIT) and adapt ideas from OpenUI's html-artifact example, OpenGenerativeUI and three.js's llms.txt (all MIT). Not affiliated with OpenAI.

License

MIT

About

Open-source alternative to ChatGPT's Intelligent UI. Answers arrive as live charts, forms and calculators. Works with any OpenAI-compatible model, in the cloud or local.

Topics

Resources

Code of conduct

Contributing

Stars

41 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages