sanidhyy/lovable-clone
About
AI-powered application builder built with Next.js 16 that lets you create apps and websites by chatting with AI.
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- Collecting history
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalAI-powered application builder built with Next.js 16

:notebook_with_decorative_cover: Table of Contents
:bangbang: Folder Structure
Here is the folder structure of this app.
lovable-clone/
|- prisma/
|-- migrations/
|-- schema.prisma
|- public/
|- sandbox-templates/
|-- nextjs/
|- src/
|-- app/
|--- (home)/
|--- api/
|--- projects/
|--- apple-icon.png
|--- favicon.ico
|--- global-error.tsx
|--- globals.css
|--- icon0.svg
|--- icon1.png
|--- layout.tsx
|--- manifest.json
|--- not-found.tsx
|-- components/
|--- code-view/
|--- providers/
|--- ui/
|--- error-state.tsx
|--- file-explorer.tsx
|--- hint.tsx
|--- loading-state.tsx
|--- responsive-dialog.tsx
|--- theme-toggle.tsx
|--- tree-view.tsx
|--- user-control.tsx
|-- config/
|--- http-status-codes.ts
|--- index.ts
|-- constants/
|--- index.ts
|-- env/
|--- client.ts
|--- server.ts
|-- hooks/
|--- use-confirm.tsx
|--- use-mobile.ts
|--- use-scroll.ts
|-- inngest/
|--- client.ts
|--- functions.ts
|--- utils.ts
|-- lib/
|--- db.ts
|--- encryption.ts
|--- utils.ts
|-- modules/
|--- auth/
|--- home/
|--- messages/
|--- pricing/
|--- projects/
|--- settings/
|--- usage/
|-- trpc/
|--- routers/
|--- client.tsx
|--- init.ts
|--- query-client.ts
|--- server.tsx
|-- types/
|--- index.ts
|-- proxy.ts
|- .env.example
|- .env/.env.local
|- .gitignore
|- .prettierignore
|- .prettierrc.mjs
|- components.json
|- environment.d.ts
|- eslint.config.mjs
|- next.config.ts
|- package.json
|- pnpm-lock.yaml
|- pnpm-workspace.yaml
|- postcss.config.mjs
|- prisma.config.ts
|- tsconfig.json
|- vercel.ts
:toolbox: Getting Started
- Make sure Git and NodeJS is installed.
- Clone this repository to your local computer.
- Create
.env.localfile in root directory. - Contents of
.env.local:
# disable telemetry
DO_NOT_TRACK="1"
NEXT_TELEMETRY_DISABLED="1"
# app base url
NEXT_PUBLIC_APP_BASE_URL="http://localhost:3000"
# neon db uri
DATABASE_URL="postgresql://<username>:<password>@<hostname>/Vibe?sslmode=require&channel_binding=require"
# e2b api key and sandbox template name
E2B_API_KEY="e2b_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
E2B_SANDBOX_TEMPLATE_NAME="<org-name>/<template-name>"
# clerk api keys
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY="pk_test_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
CLERK_SECRET_KEY="sk_test_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
# clerk redirect urls
NEXT_PUBLIC_CLERK_SIGN_IN_URL="/sign-in"
NEXT_PUBLIC_CLERK_SIGN_UP_URL="/sign-up"
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL="/"
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL="/"
# verification secret and cron secret (generated by `openssl rand -hex 32`)
VERIFICATION_SECRET="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
CRON_SECRET="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
5. Disable Telemetry (Optional)
DO_NOT_TRACK=1
NEXT_TELEMETRY_DISABLED=1
- These disable analytics/telemetry from Next.js and other packages. Keep them as provided.
6. App Base URL
NEXT_PUBLIC_APP_BASE_URL="http://localhost:3000"
- Keep as
http://localhost:3000during development. - Change to your deployed URL (e.g.,
https://clone-vibe.vercel.app) in production.
7. Neon (PostgreSQL Database)
- Sign up at Neon.
- Create a new PostgreSQL project.
- Go to Connection Details and copy the Connection String.
- Replace
<username>,<password>, and<hostname>with your Neon credentials. - Append
?sslmode=requireat the end (needed for secure connections).
8. Clerk (Authentication)
- Go to Clerk Dashboard.
- Create a new application.
- Navigate to API Keys:
- Copy Publishable Key →
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY - Copy Secret Key →
CLERK_SECRET_KEY
- Copy Publishable Key →
- Redirect URLs: Keep as provided unless you modify authentication routes.
9. E2B (Sandbox)
- Install Docker Desktop.
- Go to E2B Dashboard.
- Sign up for a new account and go to API Keys page.
- Create a new key and copy the API key →
E2B_API_KEY. - Open terminal and run
npm i -g @e2b/clito install the E2B CLI. - Login to E2B CLI using
e2b auth login. - Assign a name to the template through environment variable
E2B_SANDBOX_TEMPLATE_NAME. Make sure the template name is unique and not already taken. - Run
pnpm run e2b:buildto create a new sandbox.
10. Generate Secrets
Generate verification secret and cron secret (for cryptographic signing):
openssl rand -hex 32Copy the output →
VERIFICATION_SECRETandCRON_SECRETseparately
11. Ngrok
- Download Ngrok: https://ngrok.com/download
- Sign up at Ngrok and copy your auth token from the dashboard.
- Authenticate ngrok locally:
ngrok config add-authtoken YOUR_AUTH_TOKEN
Install Project Dependencies using
pnpm install --legacy-peer-depsornpm install --legacy-peer-deps.Now app is fully configured 👍 and you can start using this app using either one of
pnpm run devornpm run dev.
NOTE: Please make sure to keep your API keys and configuration values secure and do not expose them publicly.
:raising_hand: Need Help?
If you run into issues during installation or setup:
- GitHub Discussions — Open a Q&A discussion for setup and troubleshooting help.
- Email — [email protected]
- Discord —
@sanidhyy
:camera: Screenshots



:gear: Tech Stack
:wrench: Stats
:raised_hands: Contribute
You might encounter some bugs while using this app. You are more than welcome to contribute. Just submit changes via pull request and I will review them before merging. Make sure you follow community guidelines.
:gem: Acknowledgements
Useful resources and dependencies that are used in Vibe.
- Thanks to CodeWithAntonio: https://codewithantonio.com/
- @babel/eslint-parser: ^8.0.7
- @clerk/nextjs: ^7.9.11
- @clerk/themes: ^2.4.57
- @e2b/code-interpreter: ^2.8.0
- @eslint/eslintrc: ^3.3.7
- @hookform/resolvers: ^7.0.5
- @ianvs/prettier-plugin-sort-imports: ^4.7.1
- @inngest/agent-kit: ^0.13.2
- @next/eslint-plugin-next: ^16.4.2
- @prisma/adapter-pg: ^7.10.1
- @prisma/client: ^7.9.1
- @radix-ui/react-collapsible: ^1.2.1
- @radix-ui/react-dialog: ^1.3.1
- @radix-ui/react-dropdown-menu: ^2.2.1
- @radix-ui/react-label: ^2.1.17
- @radix-ui/react-separator: ^1.2.0
- @radix-ui/react-slot: ^1.3.3
- @radix-ui/react-tabs: ^1.2.1
- @radix-ui/react-tooltip: ^1.4.1
- @t3-oss/env-nextjs: ^0.13.11
- @tailwindcss/postcss: ^4.3.3
- @tanstack/react-query: ^5.104.0
- @trpc/client: ^11.9.0
- @trpc/server: ^11.9.0
- @trpc/tanstack-react-query: ^11.9.0
- @types/node: ^26.1.1
- @types/pg: ^8.23.1
- @types/prismjs: ^1.26.6
- @types/react: ^19.3.0
- @types/react-dom: ^19.3.0
- @vercel/config: ^0.14.1
- @vercel/functions: ^3.10.6
- class-variance-authority: ^0.7.1
- client-only: ^0.0.1
- clsx: ^2.1.1
- date-fns: ^4.4.0
- dotenv: ^18.0.5
- e2b: ^2.51.0
- eslint: ^9.39.2
- eslint-config-next: 16.4.6
- eslint-config-prettier: ^10.1.8
- eslint-plugin-prettier: ^5.5.6
- eslint-plugin-react-hooks: ^7.1.1
- eslint-plugin-tailwindcss: 4.4.0
- inngest: ^4.26.2
- lucide-react: ^1.61.0
- mprocs: ^0.9.6
- next: 16.4.6
- next-themes: ^0.4.6
- openai: ^7.5.0
- pg: ^8.23.1
- prettier: ^3.10.1
- prettier-plugin-tailwindcss: ^0.8.1
- prisma: ^7.10.1
- prismjs: ^1.30.0
- random-word-slugs: ^0.1.7
- rate-limiter-flexible: ^11.5.0
- react: 19.3.0
- react-dom: 19.3.0
- react-error-boundary: ^6.1.6
- react-hook-form: ^7.86.0
- react-hot-toast: ^2.6.1
- react-resizable-panels: ^4.15.0
- react-textarea-autosize: ^8.5.9
- server-only: ^0.0.1
- superjson: ^2.2.6
- tailwind-merge: ^3.7.0
- tailwind-scrollbar: ^4.0.2
- tailwindcss: ^4.3.3
- tsx: ^4.23.15
- tw-animate-css: ^1.4.0
- typescript: ^6.0.3
- vaul: ^1.1.2
- zod: ^4.6.6
- zustand: ^5.0.15
:coffee: Buy Me a Coffee
:rocket: Follow Me
:books: Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
:page_with_curl: Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out Next.js deployment documentation for more details.
:star: Give A Star
You can also give this repository a star to show more people and they can use this repository.
:star2: Star History
Explore related projects
Loading…