openui  by wandb

UI prototyping tool using LLMs

Created 1 year ago
21,779 stars

Top 2.0% on SourcePulse

GitHubView on GitHub
Project Summary

OpenUI is an open-source tool for rapidly generating and iterating on UI components using natural language descriptions. It targets developers and designers seeking to accelerate UI prototyping and development, offering a flexible way to translate imaginative ideas into functional code across various frameworks.

How It Works

OpenUI leverages large language models (LLMs) to interpret user prompts and generate UI code. It supports multiple LLM providers via LiteLLM, including OpenAI, Groq, Gemini, and Anthropic, and can also integrate with local models through Ollama. The system allows for iterative refinement of generated UIs by accepting further natural language commands and can convert existing HTML into different frontend frameworks like React, Svelte, and Web Components.

Quick Start & Requirements

  • Docker: docker run --rm --name openui -p 7878:7878 -e OPENAI_API_KEY=xxx ghcr.io/wandb/openui
  • From Source: Clone repo, cd openui/backend, uv sync --frozen --extra litellm, source .venv/bin/activate, set API keys, python -m openui.
  • Prerequisites: API keys for desired LLMs (OpenAI, Groq, etc.), Ollama for local models.
  • Resources: Docker image available. Development setup via Dev Container, Codespaces, or Gitpod is recommended.
  • Docs: Frontend, Backend

Highlighted Details

  • Supports OpenAI, Groq, Gemini, Anthropic, Cohere, Mistral, and Ollama models via LiteLLM.
  • Enables conversion of generated HTML to React, Svelte, and Web Components.
  • Offers a live demo for immediate testing.
  • Includes a development container for streamlined local setup.

Maintenance & Community

  • Developed by wandb.
  • Community support channels are not explicitly mentioned in the README.

Licensing & Compatibility

  • The README does not explicitly state a license.

Limitations & Caveats

The project is described as "not as polished" as commercial alternatives. Docker Compose setup may be slow, and GPU support for Ollama within Docker requires specific tag adjustments.

Health Check
Last Commit

2 weeks ago

Responsiveness

1 day

Pull Requests (30d)
1
Issues (30d)
0
Star History
67 stars in the last 30 days

Explore Similar Projects

Starred by Taranjeet Singh Taranjeet Singh(Cofounder of Mem0), Kevin Hou Kevin Hou(Head of Product Engineering at Windsurf), and
5 more.

coffee by Coframe

0%
2k
AI tool for rapid UI development in IDEs
Created 2 years ago
Updated 6 months ago
Feedback? Help us improve.