Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STick — AI UI Generator

A Google Stitch-like tool that generates complete HTML/CSS/JS UIs from natural language prompts, powered by your local Ollama models.

Features

  • Describe any UI in plain English → get live-preview HTML instantly
  • Streaming token output from Ollama
  • Edit mode — iterate on existing generated UIs
  • History — revisit any previously generated UI in the session
  • Copy or download the generated HTML
  • Auto-detects available Ollama models
  • Works with any Ollama model (llama3, mistral, codestral, qwen2.5-coder, etc.)

Quick Start

1. Start Ollama (must be running locally):

ollama serve
ollama pull llama3   # or any model you prefer

2. Run STick:

bash run.sh

Open http://localhost:8000

Configuration

Env var Default Description
OLLAMA_BASE_URL http://localhost:11434 Ollama API base URL
OLLAMA_MODEL llama3 Default model to use
OLLAMA_MODEL=qwen2.5-coder bash run.sh

Recommended Models

For best UI generation results:

  • qwen2.5-coder — excellent at HTML/CSS/JS
  • codestral — strong coding model
  • llama3 / llama3.1 — good general purpose
  • mistral — fast and capable

API

Endpoint Method Description
/ GET Web UI
/api/models GET List available Ollama models
/api/generate POST Generate UI (SSE streaming)

Generate request body

{
  "prompt": "A dark dashboard with revenue charts",
  "model": "llama3",
  "context": "<optional: existing HTML to iterate on>"
}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages