Skip to content

AdwaitMishr/letHimCode

Repository files navigation

🧪 Let Him Code — AI Web Scaffolding Platform

Let Him Code with 99.1% purity while you go touch some grass.

An AI-powered platform that converts natural language prompts into fully scaffolded, sandboxed Next.js applications — complete with live preview and iterative refinement.

✨ Features

  • Natural Language → Code — Describe your idea, get a complete Next.js project.
  • Sandboxed Preview — Every generation runs in an isolated e2b sandbox with a live URL.
  • Iterative Refinement — Continue the conversation to tweak and improve your generated project.
  • Project History — All your creations are saved and accessible from the dashboard.
  • Code Explorer — Browse generated files with syntax highlighting and one-click copy.
  • Daily Rate Limit — 2 free generations per day, no account tiers needed.

🛠 Tech Stack

Layer Technology
Framework Next.js 15 (App Router)
Styling Tailwind CSS v4
Database PostgreSQL + Prisma ORM
Auth Clerk
AI Inngest Agent Kit + Gemini 2.5 Flash
Sandbox e2b
UI Library shadcn/ui

🚀 Getting Started

Prerequisites

  • Bun (v1.0+)
  • Docker (for PostgreSQL) or a hosted Postgres instance
  • API keys for Clerk, Gemini, and e2b

1. Clone & Install

git clone https://github.com/YOUR_USERNAME/lethimcode.git
cd lethimcode
bun install

2. Environment Setup

Copy the example env file and fill in your secrets:

cp .example.env .env
Variable Description
DATABASE_URL PostgreSQL connection string
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY Clerk publishable key
CLERK_SECRET_KEY Clerk secret key
GEMINI_API_KEY Google Gemini API key
E2B_API_KEY e2b sandbox API key

3. Database Setup

# Start PostgreSQL (if using Docker)
docker compose up -d

# Run Prisma migrations
bunx prisma migrate dev

4. Run Development Server

bun dev

Open http://localhost:3000 in your browser.

Note: You also need to run the Inngest dev server for AI generation to work:

bunx inngest-cli@latest dev

📁 Project Structure

├── app/              # Next.js App Router pages & API routes
├── components/       # Shared UI components (shadcn/ui)
├── modules/          # Feature modules (auth, home, messages, projects)
│   ├── auth/         #   Authentication actions
│   ├── home/         #   Landing page & project creation
│   ├── messages/     #   Chat interface & message handling
│   └── projects/     #   Project CRUD & code viewer
├── inngest/          # AI agent functions & tools
├── lib/              # DB client, utilities, rate limiting
├── prisma/           # Schema & migrations
├── sandbox-templates/# e2b sandbox configuration
└── public/           # Static assets

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published