AI Compiler is an experimental React and Express application that uses Gemini to turn a natural-language requirement into an intermediate application design and generated UI, API, database and authorization artifacts.
- Node.js and npm
- A Gemini API key for generation
- A model available to your Gemini account
git clone https://github.com/Ayushdevo/AI-Compiler.git
cd AI-Compiler
npm ci
cp .env.example .envSet GEMINI_API_KEY in .env and, if necessary, set GEMINI_MODEL to a model available to your account. Never commit your API key.
npm run devOpen the local address printed by the server. The default port is 3000 and can be changed with PORT.
npm run lint
npm test
npm run build
npm startThe tests do not require a Gemini API key. The production build bundles the server and frontend.
GET /api/healthreports configuration status and the configured model.POST /api/generateaccepts JSON containing apromptstring of at least 10 characters. Generation requires a configured Gemini API key.
Example:
curl -X POST http://localhost:3000/api/generate \
-H "Content-Type: application/json" \
-d '{"prompt":"Create a task management application with users and projects"}'Generation depends on the configured external model and may fail because of invalid credentials, model availability, quota or network errors. The server performs structural and cross-layer checks; these checks do not compile or execute the generated code and do not prove that it is correct or secure. Review and test generated artifacts before use.
The application uses React, TypeScript, Vite, Express and the Google Gen AI SDK.
MIT License
Copyright (c) 2026
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, subject to the conditions of the MIT License.
