https://github.com/sougata-github/build-ai
Vibe coding tool built using Next.js.
https://github.com/sougata-github/build-ai
Last synced: 4 months ago
JSON representation
Vibe coding tool built using Next.js.
- Host: GitHub
- URL: https://github.com/sougata-github/build-ai
- Owner: sougata-github
- Created: 2025-09-29T14:27:09.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-10-07T16:10:28.000Z (4 months ago)
- Last Synced: 2025-10-07T17:29:25.652Z (4 months ago)
- Language: TypeScript
- Homepage: https://build-ai-teal.vercel.app
- Size: 79.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Background Jobs
normal task:
- login
- send req
- instant response (success/fail)
long-running tasks (without background jobs)
- user clicks 'generate summary'
- send network req
- backend generates summary (30 second)
- user waits
- risk: timeout/tab closed/connection lost
- user might never get result
This is why we have background jobs.
long-running tasks (with background jobs)
- user clicks 'generate summary'
- send network req
- queue background job
- non blocking
- background job runs in a separate environment
- notify user when job finishes
Convex + Next.js + Inngest
Local
Next.js Client (localhost) ---> Convex Dev Cloud (Cloud Sandbox) ---> Inngest Dev Server (localhost:8288 + ngrok)
- Next.js uses dev Convex URL (`https://dev-xxxx.convex.cloud`)
- Convex Cloud needs tunnel URL to reach local - Inngest Dev Server (ngrok or local IP)
- Event key is dev/test key
- Tunnel changes each session unless you reserve a subdomain
Prod
Next.js Client (Vercel) ---> Convex Prod Cloud (Cloud prod) ---> Inngest Cloud (Cloud prod API)
- Everything is fully cloud-based. No tunneling needed
- Convex Cloud → Inngest Cloud communicates via HTTPS API
- Event key → production app key
- All environments isolated