Skip to content

An open-source alternative to v0.dev that generates UI components using multiple AI providers. Build, customize, and manage components across different frameworks with support for shadcn/ui, NextUI, and various AI models including OpenAI, Anthropic, and Google AI.

License

Notifications You must be signed in to change notification settings

SujalXplores/v0.diy

Repository files navigation

🎨 v0.diy

Your Open-Source AI UI Generator

Transform text prompts into beautiful UI components powered by multiple AI providers

✨ What is v0.diy?

v0.diy is an open-source alternative to v0.dev that puts the power of AI-driven UI generation in your hands. Create, customize, and manage UI components using your preferred frameworks and AI providers.

Key Highlights

  • 🎯 Multi-Framework Support: Generate components for shadcn/ui, NextUI, and more
  • 🤖 Multiple AI Providers: Choose from OpenAI, Anthropic, Google AI, Mistral, etc.
  • 🎨 Advanced Customization: Full control over themes, styles, and responsive design
  • 🔄 Version Control: Track changes, fork components, and collaborate seamlessly

🚀 Features

UI Generation

  • Generate components from text prompts or images
  • Support for multiple UI frameworks
  • Real-time preview and editing
  • Responsive design analyzer

AI Integration

  • Multiple provider support
  • Custom model selection
  • Optimized prompts for UI generation
  • Advanced context understanding

Developer Tools

  • Code copy functionality
  • Component forking
  • Theme management
  • Version control
  • Collaborative development

🛠 Getting Started

Prerequisites

  • Node.js 18.x or later
  • PostgreSQL database
  • Git

Quick Start

  1. Clone the repository:
git clone https://github.com/yourusername/v0.diy.git
cd v0.diy
  1. Install dependencies:
npm install
  1. Set up environment variables:

    • Create a .env.local file in the root directory
    • Copy the contents from .env.example
    • Fill in your configuration values
  2. Start the development server:

npm run dev

Visit http://localhost:3000 to start generating UI components!

🔧 Environment Setup

Create a .env.local file with:

# Database
DATABASE_URL=postgresql_url_here

# Authentication
AUTH_SECRET=your_auth_secret
AUTH_GITHUB_ID=your_auth_github_id
AUTH_GITHUB_SECRET=your_auth_github_secret

# Optional: Redis for view count
UPSTASH_REDIS_REST_URL=your_upstash_redis_rest_url
UPSTASH_REDIS_REST_TOKEN=your_upstash_redis_rest_token

🤖 Tech Stack

🤝 Contributing

We welcome contributions! Check out our Contributing Guide to get started.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

🙏 Acknowledgments

About

An open-source alternative to v0.dev that generates UI components using multiple AI providers. Build, customize, and manage components across different frameworks with support for shadcn/ui, NextUI, and various AI models including OpenAI, Anthropic, and Google AI.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published