Ericsongyl / openui

OpenUI let's you describe UI using your imagination, then see it rendered live.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenUI

Building UI components can be a slog. OpenUI aims to make the process fun, fast, and flexible. It's also a tool we're using at W&B to test and prototype our next generation tooling for building powerful applications on top of LLM's.

Overview

Demo

OpenUI let's you describe UI using your imagination, then see it rendered live. You can ask for changes and convert HTML to React, Svelte, Web Components, etc. It's like v0 but open source and not as polished 😝.

Live Demo

Try the demo

Running Locally

You can also run OpenUI locally and use models available to Ollama. Install Ollama and pull a model like CodeLlama, then assuming you have git and python installed:

git clone https://github.com/wandb/openui
cd openui/backend
# You probably want to do this from a virtual environment
pip install .
# This must be set to use OpenAI models, find your api key here: https://platform.openai.com/api-keys
export OPENAI_API_KEY=sk_XXX
python -m openui

Now you can goto http://localhost:7878

Development

See the readmes in the frontend and backend directories.

About

OpenUI let's you describe UI using your imagination, then see it rendered live.

License:Apache License 2.0


Languages

Language:TypeScript 59.6%Language:Python 33.1%Language:HTML 5.3%Language:CSS 0.9%Language:JavaScript 0.8%Language:Dockerfile 0.3%Language:Shell 0.0%