GitHub - Ayushdevo/AI-Compiler · GitHub
Skip to content

About

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

AI Compiler

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.

Requirements

  • Node.js and npm
  • A Gemini API key for generation
  • A model available to your Gemini account

Run locally

git clone https://github.com/Ayushdevo/AI-Compiler.git
cd AI-Compiler
npm ci
cp .env.example .env

Set 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 dev

Open the local address printed by the server. The default port is 3000 and can be changed with PORT.

Checks and production build

npm run lint
npm test
npm run build
npm start

The tests do not require a Gemini API key. The production build bundles the server and frontend.

API

  • GET /api/health reports configuration status and the configured model.
  • POST /api/generate accepts JSON containing a prompt string 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"}'

Scope and limitations

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.

License

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.

About

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages