Skip to content

vx.dev

An open-source, low-cost alternative for UI code generation

Visit official site

What vx.dev is

The project is described as an open-source alternative to v0.dev that uses the GPT-4 model to generate code from predefined prompts. Generated code is stored on GitHub, where version control and code review are built in.

What you can do with it

  • Edit prompts in prompts/ui-gen.md to use Tailwind CSS as the style library
  • Customize UI components or code style through the open prompts
  • Store generated code on GitHub with version control and code review
  • Remove unneeded component instructions to lower the API cost per generation

Application scenarios

  • Generate UI code for web pages and mini programs
  • Refine generated code through code review iterations
  • Build page prototypes

How it works

  • GPT-4 generates code from prompts defined in advance
  • The main cost is the number of input and completion tokens
  • prompts/ui-gen.md holds instructions for shadcn/ui, lucide and nivo charts
  • Deleting unneeded component instructions reduces the cost of each generation

Pros & cons

✓ What we like

  • Removing unneeded component instructions lowers the API cost per generation
  • Prompts can be edited to use other UI libraries or a different code style
  • GitHub integration brings built-in version control and code review

! What to watch out for

  • The main cost comes from input and completion token counts
  • Generation follows the predefined prompts stored in the repo

FAQ

How does it lower cost?

Deleting unneeded component instructions from the prompts reduces the API cost of each generation.

Where are the prompts kept?

The card says they are stored in prompts/ui-gen.md with shadcn/ui, lucide and nivo chart instructions.

Last reviewed: 2026-11-15

More AI coding tools tools

View all →

How we review