1.0.1 • Published 5 months ago

ai-create-app v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

AI Create App

A CLI tool to easily generate AI-powered applications. Create a complete AI project with frontend and backend in seconds.

AI Create App Logo

Features

  • šŸš€ Quick Start: Create a complete AI project in seconds
  • 🧠 AI Integration: Built-in OpenAI integration with LangChain
  • šŸ”„ Flexible Stack: Choose between different backend and frontend options
  • šŸ’¬ Chat Component: Ready-to-use chat interface for your AI application
  • 🌐 Modern Tech: Uses the latest web technologies and frameworks

Installation

You can use npx to run ai-create-app without installing it:

npx ai-create-app my-ai-project

Or install it globally:

npm install -g ai-create-app
ai-create-app my-ai-project

Usage

npx ai-create-app <project-name>

Or if installed globally:

ai-create-app <project-name>

Follow the interactive prompts to configure your project:

  1. Choose a backend: Express or NestJS
  2. Choose a frontend: Next.js, Vite, or None

After creation, follow the instructions to start your project:

cd <project-name>
npm install
npm run install:all
npm run dev

Available Templates

Backend Options

  • Express: Lightweight backend with TypeScript, OpenAI, and LangChain
  • NestJS: Modular and scalable backend with TypeScript, OpenAI, and LangChain

Frontend Options

  • Next.js: React framework with server-side rendering
  • Vite: Blazing fast React development environment
  • None: Backend-only project

Project Structure

The generated project follows this structure:

my-ai-project/
ā”œā”€ā”€ backend/            # Express or NestJS backend
ā”œā”€ā”€ frontend/           # Next.js or Vite frontend (if selected)
ā”œā”€ā”€ package.json        # Project scripts
└── README.md           # Project documentation

Features of Generated Projects

  • AI Chat Interface: Ready-to-use chat component to interact with AI
  • OpenAI Integration: Pre-configured OpenAI API connection
  • Streaming Responses: Support for streaming AI responses
  • Modern UI: Clean, responsive design with TailwindCSS
  • TypeScript: Full TypeScript support for type safety
  • Development Ready: Hot reloading for both frontend and backend

Configuration

Each generated project includes necessary configuration files:

  • .env.example files with required environment variables
  • Configuration for connecting frontend to backend
  • CORS setup for seamless communication

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • OpenAI for their powerful API
  • LangChain for simplifying AI integrations
  • The amazing open-source community

Made with ā¤ļø for AI developers