1.0.1 ⢠Published 5 months ago
ai-create-app v1.0.1
AI Create App
A CLI tool to easily generate AI-powered applications. Create a complete AI project with frontend and backend in seconds.
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:
- Choose a backend: Express or NestJS
- 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
1.0.1
5 months ago