百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
A

ai-component-generator

> 编程语言
开源

<p align="center" <a href="https://ai2ui.co" </a </p <h1 align="center"欢迎使用搭载 ChatGPT 的 AI 组件生成器</h1 <p align="center"…

1.3K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

<p align="center" <a href="https://ai2ui.co" </a </p <h1 align="center"欢迎使用搭载 ChatGPT 的 AI 组件生成器</h1 <p align="center"…

Welcome to AI Component Generator with ChatGPT

This project generates almost any UI components with OpenAI's ChatGPT and allows you to copy the html code # [AI2UI](https://ai2ui.co/) component generator ## How it works This project uses the [ChatGPT API](https://openai.com/api/) and [Vercel Edge functions](https://vercel.com/features/edge-functions). It constructs a prompt based on the form and user input, sends it to the chatGPT API via a Vercel Edge function, then streams the response back to the application. You can ask for any UI component, free style. Most likely it will generate the right thing for you. This can also be used as a great bootstrap for projects, I tried to make the style Material-UI styled, but you can change this behavior. ## Export your components You can now choose between HTML export of your UI components and your preferred combination of Tailwind CSS, Next.js, React.js, Material UI ## Running Locally This project is built with `Next.js` and `TailwindCSS`, so you can deploy it directly to Vercel. After cloning the repo, go to [OpenAI](https://beta.openai.com/account/api-keys) to make an account and put your API key in a file called `.env`(OPENAI_API_KEY) Then, run the application in the command line and it will be available at `http://localhost:3000`. ```bash npm install yarn dev ``` ## Changing ChatGPT prompts and requests In order to change ChatGPT response you only need to give it an example of what you wish to get back (use the assistant role to generate an example of a good response)". In the example below I show it how to generate TailwindCSS and Next.js component, and later ask just to return the corresponding HTML code. ``` … ``` ## Who made this project My name is [Yuval](https://www.linkedin.com/in/yuval-suede/) - an entrepreneur at heart , I ❤️ building end-to-end systems that not only look amazing and feel state-of-the-art, but also have real meaning and impact. ## Contributing Contributions, issues and feature requests are welcome!
* Fork the repository, Clone it on your device. That's it * Finally make a pull request :) ## License This project is [MIT License](https://opensource.org/licenses/MIT) licensed. *** We accept contribution with great love! Show your interest! Contribute!

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •TypeScript

> 标签

TypeScript

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言