Back

z0

Built an AI workflow platform that turns natural-language prompts into production-ready app scaffolds and deployment-ready project structures.

TypeScript
Node.js
Inngest
clerk
Ai-workflow
LiveGitHub

z0

z0 is an AI-powered web application generator. Describe an application in natural language, then review the generated code and live sandbox preview in a project workspace.

Features

Tech Stack

Getting Started

Prerequisites

Installation

  1. Clone the repository:
git clone <repository-url>
cd z0
  1. Install dependencies:
npm install
  1. Create .env.local with the variables required by the application:
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=your_clerk_key
CLERK_SECRET_KEY=your_clerk_secret
DATABASE_URL=postgresql://user:password@localhost/z0_db
OPENAI_API_KEY=your_openai_key
E2B_SANDBOX_TEMPLATE_ID=your_e2b_template_id

DATABASE_URL is used by Prisma 7 through prisma.config.ts. The Clerk keys protect authenticated routes, and the OpenAI and E2B values are needed to generate and preview applications.

  1. Apply the database migrations:
npx prisma migrate dev
  1. Start the Inngest development server in a second terminal so background generation functions can be invoked:
npx inngest-cli@latest dev

Running the Development Server

npm run dev

Open http://localhost:3000 in your browser. The Inngest development UI is available at http://localhost:8288.

Project Structure

src/
├── app/                 # Next.js app directory
│   ├── (auth)/         # Authentication pages
│   ├── (root)/         # Main app pages
│   │   ├── page.tsx    # Home/dashboard
│   │   └── projects/   # Project workspace
│   └── api/            # API routes
├── components/
│   ├── home/           # Home page components
│   ├── ui/             # shadcn/ui component library
│   └── providers/      # React context providers
├── features/
│   ├── auth/           # Authentication logic
│   ├── projects/       # Project management
│   └── inngest/        # AI agent workflows
├── lib/                # Utilities and database client
└── generated/          # Generated Prisma types

Data Model

The application stores four related Prisma models:

Building and Deployment

Build the application:

npm run build

Start the production server:

npm start

Development

License

This project is private. All rights reserved.

Support

For questions or issues, please refer to the main project documentation or contact the development team.