Skip to content
Soumyadip2003-AIPublic

About

Build full-stack Next.js apps from plain-English prompts with an AI agent that writes, tests, repairs, and previews your code in a secure sandbox.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Nova

Describe an app in plain words. Nova's AI agent writes the code, runs it in a cloud sandbox, checks it, fixes what is broken and shows you a live preview.

Live: https://nova-five-black.vercel.app

Nova demo: type an idea, Nova builds it, checks it and shows the live app

What it does

  • Build from a prompt. The agent writes a Next.js app inside an isolated E2B sandbox.
  • Full-stack apps. When an app needs to keep data, the agent adds API routes, server actions and a SQLite database with a schema and seed data, plus email and password sign-in when the app needs accounts. The self-check calls each API route.
  • Design references. Attach screenshots, screen recordings (sampled into frames in the browser), PDFs, text or code files and links. A vision model turns them into a design brief the build follows, and uploaded images are copied into the app. Files are kept in private Vercel Blob storage.
  • Self-check and repair. After writing, Nova runs TypeScript and loads the app's home page. Any error goes back to the agent to fix before you see the result.
  • Real thinking log. Each step the agent takes is shown as it happens, collapsed to two lines with a toggle.
  • Live preview, code and versions. Every change is saved as a version you can open again.
  • Chat. Ask questions about your app without spending a build credit.
  • Models. Free: GPT-6 Luna, GPT-4o Mini. Pro adds GPT-4o, GPT-4 Turbo, GPT-6.1 Terra, GPT-5.1, GPT-6.2 Sol and GPT-6.2 Astra. Sol and Astra have an effort setting (Low to Extra high).
  • Credits. Free: 5 builds a month. Pro: 100 builds a month. A build that fails is refunded.

How a build works

flowchart LR
    U([You type an idea]) --> C{Credit left?}
    C -- no --> P[Upgrade prompt]
    C -- yes --> E[Inngest event]
    E --> A[AI agent]
    A <-- "terminal, readFiles,<br/>createOrUpdateFiles" --> S[(E2B sandbox<br/>Next.js app)]
    A --> V{Self-check:<br/>tsc + page load}
    V -- problems --> R[Repair round<br/>up to 2] --> A
    V -- passes --> L[Save version<br/>and live preview]
    R -. still broken .-> F[Show what is left<br/>and refund the credit]
Loading

Every step the agent takes is written to the thinking log, so you watch the real work, not a spinner.

Architecture

flowchart TB
    subgraph Browser
        UI[Next.js UI<br/>chat, thinking log,<br/>preview, code]
    end
    subgraph Vercel
        API[tRPC API]
        PX[OpenAI proxy<br/>/api/ai/openai]
        IN[Inngest functions]
    end
    UI -- tRPC --> API
    API -- auth, plans --> CL[Clerk]
    API -- projects, messages,<br/>credits --> DB[(Neon Postgres<br/>via Prisma)]
    API -- build event --> IN
    IN -- agent calls --> PX --> OA[OpenAI]
    IN -- run code --> SB[(E2B sandbox)]
    IN -- thinking steps,<br/>result --> DB
    UI -- live preview iframe --> SB
    CL -- user webhooks --> API
Loading

Model routing

GPT-6.2 Sol and Astra only accept tools together with a reasoning effort on OpenAI's Responses API. The agent library speaks Chat Completions, so Nova's proxy translates those calls both ways. Other models pass straight through.

flowchart LR
    AG[Agent<br/>Chat Completions] --> PX{Effort set?}
    PX -- "no (GPT-4o, GPT-5.1, Luna...)" --> CC["/v1/chat/completions"]
    PX -- "yes (Sol, Astra)" --> TR[Translate request] --> RS["/v1/responses"] --> TB[Translate reply back] --> AG
    CC --> AG
Loading

Stack

Next.js 15 (App Router), React 19, Tailwind CSS 4, tRPC, TanStack Query, Prisma on Neon Postgres, Clerk (auth and billing), Inngest with Agent Kit (background agent), E2B (sandboxes), OpenAI.

Run it locally

Requires Node.js 20 or later and accounts for Clerk, Neon (or any Postgres), Inngest, E2B and OpenAI.

  1. Install:
    git clone https://github.com/Soumyadip2003-AI/Nova.git
    cd Nova
    npm install
  2. Set these environment variables (for example in .env.local):
    DATABASE_URL
    OPENAI_API_KEY
    E2B_API_KEY
    E2B_TEMPLATE_ID
    NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY
    CLERK_SECRET_KEY
    CLERK_WEBHOOK_SIGNING_SECRET
    CLERK_PRO_PLAN_ID
    CLERK_PRO_PLAN_SLUG
    CLERK_PRO_PLAN_NAME
    INNGEST_EVENT_KEY
    INNGEST_SIGNING_KEY
    NEXT_PUBLIC_APP_URL=http://localhost:3000
    
  3. Create the database tables:
    npx prisma migrate deploy
  4. Start the app and, in a second terminal, the Inngest dev server:
    npm run dev
    npx inngest-cli@latest dev

The sandbox image lives in sandbox-templates/nextjs. Build it with the E2B CLI and put its ID in E2B_TEMPLATE_ID.

Checks

npm test   # lint and typecheck
npm run build

Contact

Nova is run by Soumyadip Sarkar, India. Email [email protected] or open an issue at https://github.com/Soumyadip2003-AI/Nova/issues.

License

MIT. See LICENSE.

About

Build full-stack Next.js apps from plain-English prompts with an AI agent that writes, tests, repairs, and previews your code in a secure sandbox.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages