Skip to content

Handyman-Girl/AIPoweredUIComponentsGenerator

 
 

Repository files navigation

AI-Powered UI Components Generator

The AI-powered UI components generator web app enables developers to generate Next.js Tailwind CSS UI components with an implementation tutorial.

The generator has an embedded code editor where users can modify the generated code and directly see the results.

The web app leverages the power of Langchain and Tavily AI agents to do web searches in order to generate accurate and up-to-date code snippets and implementation tutorials.

Here are screenshots showing the web app in action.

Generating Contact Form UI Component

demo

Generating Contact Form UI Component Implementation Tutorial

demo2

Getting Started

First, install the packages and dependencies.

npm install

Second, create a file named .env.local on your root directory. Then add your OpenAI and Tavily API keys to the file.

OPENAI_API_KEY="Your OpenAI API key"
TAVILY_API_KEY="Your Tavily API key"

To get the ChatGPT API key, navigate to https://platform.openai.com/api-keys.

3

To get the Tavily Search API key, navigate to https://app.tavily.com/home

4

Finally, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

Check out this tutorial on DevTo on how to build the UI Components Generator.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 96.7%
  • CSS 1.9%
  • JavaScript 1.4%