尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗A full-stack, production-ready V0-style AI UI generator built to explore modern SaaS architecture, AI workflows, and scalable system design.
This project focuses on real-world engineering practices such as authentication, billing, background jobs, sandboxed execution, and clean database design — not just UI demos.
Draftsmith (repository: v0-clone) is an AI-powered web application that allows users to generate UI components and layouts using natural language prompts.
Users can:
This project is inspired by platforms like Vercel v0, but implemented from scratch to deeply understand the underlying architecture.
This project was built as a portfolio-grade SaaS application to demonstrate:
It goes far beyond a CRUD app or UI clone.
The project uses PostgreSQL with Prisma ORM.
DATABASE_URLnpx prisma migrate dev
npx prisma studio
## 🚀 Production setup
These are optional locally; set them in Vercel for production.
- **Clerk webhook (user sync)**: in the Clerk dashboard → Webhooks, add an endpoint `https://<your-domain>/api/webhooks/clerk` subscribed to `user.created`, `user.updated` and `user.deleted`, and set its signing secret as `CLERK_WEBHOOK_SIGNING_SECRET`. Without it, users are still created on their first action.
- **Sentry (error monitoring)**: `SENTRY_DSN` (server), `NEXT_PUBLIC_SENTRY_DSN` (browser). For readable stack traces, also `SENTRY_ORG`, `SENTRY_PROJECT` and `SENTRY_AUTH_TOKEN` (source map upload at build time). Monitoring is off when the DSNs are unset.
- **Site URL and support email**: `NEXT_PUBLIC_SITE_URL` (canonical URL for metadata, `robots.txt` and the sitemap; defaults to the Vercel production URL) and `NEXT_PUBLIC_SUPPORT_EMAIL` (shown on the Terms and Privacy pages).
- **Name**: the product name lives in `src/lib/site.js`.
- **Legal pages**: `/terms` and `/privacy` are drafts; review them before launch.
## ✅ Checks
- **Every pull request and push to `master`** runs `.github/workflows/ci.yml`: Prisma validate, lint, unit tests and a production build. Wait for it to pass before merging.
- **Unit tests** (`npm test`, Vitest) cover the agent's error extraction, npm-install handling, Gemini model rotation, secret encryption, environment-variable helpers and code-edit validation. They need no database, sandbox or network.
- **After a production deploy**, run the smoke check against the live site (`--sync` also re-registers the Inngest functions):
```bash
node scripts/smoke.mjs https://v0-clone-alpha-kohl.vercel.app --sync