npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

init-ai-app

v0.2.1

Published

Create AI-powered fullstack applications with Gemini integration

Downloads

14

Readme

init-ai-app

TypeScript Node.js License: MIT

Create AI-powered fullstack applications with Gemini integration.

Quick Start

npx init-ai-app@latest my-app
cd my-app
npm run install:all
# Update backend/.env with your GEMINI_API_KEY
npm run dev

Usage

Interactive Mode

Run the CLI without options to be guided through the setup:

npx init-ai-app@latest [project-name]

You'll be prompted to select:

  1. Project name - Name of your project (default: my-app)
  2. Backend - Node.js + Express (TypeScript)
  3. Frontend - Angular or React
  4. App type - Simple chat bot or Chat bot with file upload

Non-Interactive Mode

Skip prompts by providing options directly:

npx init-ai-app@latest my-app --frontend angular --backend node-express --app-type simple-chat

Hybrid Mode

Specify some options and get prompted for the rest:

npx init-ai-app@latest my-app --frontend react
# You'll be prompted for backend and app-type

Options

--frontend <framework>  Frontend framework (angular | react)
--backend <framework>   Backend framework (node-express)
--app-type <type>       Application type (simple-chat | chat-with-file-upload)
--use-npm               Use npm as package manager
--use-pnpm              Use pnpm as package manager
--use-yarn              Use yarn as package manager
--use-bun               Use bun as package manager
-V, --version           Output version number
-h, --help              Display help

Examples

# Full interactive (default)
npx init-ai-app@latest

# Angular + simple chat
npx init-ai-app@latest my-app --frontend angular --backend node-express --app-type simple-chat

# React + file upload with pnpm
npx init-ai-app@latest my-app --frontend react --backend node-express --app-type chat-with-file-upload --use-pnpm

# Just specify frontend, prompt for the rest
npx init-ai-app@latest my-app --frontend angular

Generated Project Structure

my-app/
├── backend/              # Node.js + Express API
│   ├── src/
│   │   ├── config/       # Gemini AI configuration
│   │   ├── controllers/  # Request handlers
│   │   ├── services/     # Business logic
│   │   ├── routes/       # API routes
│   │   └── types/        # TypeScript types
│   ├── .env              # Environment variables
│   └── package.json
├── frontend/             # Angular or React app
│   └── src/
├── .gitignore
├── README.md
└── package.json

API Endpoints

| Method | Endpoint | Description | |--------|----------|-------------| | GET | /api/health | Health check | | POST | /api/chat | Send message, get AI response | | POST | /api/chat/stream | Streaming response (SSE) | | POST | /api/files/upload | Upload file (file-upload variant) |

Environment Variables

Create a backend/.env file:

GEMINI_API_KEY=your-api-key-here
GEMINI_MODEL=gemini-3-flash-preview
PORT=3000

Get your API key from Google AI Studio.

Development

Prerequisites

  • Node.js 18+
  • npm, pnpm, yarn, or bun

Running the Generated App

# Install dependencies
npm run install:all

# Start development servers
npm run dev
  • Backend: http://localhost:3000
  • Frontend: http://localhost:4200 (Angular) or http://localhost:5173 (React)

Contributing

Local Development

# Clone the repository
git clone https://github.com/luixaviles/init-ai-app-boilerplate.git
cd init-ai-app

# Install dependencies
npm install

# Build the CLI
npm run build:ncc

# Test locally (interactive)
node dist/index.js test-app

# Test locally (non-interactive)
node dist/index.js test-app --frontend angular --backend node-express --app-type simple-chat

# Or link globally
npm link
init-ai-app test-app

Scripts

| Script | Description | |--------|-------------| | npm run build:ncc | Build CLI with ncc bundler | | npm run clean | Remove dist folder |

Tech Stack

CLI

  • Commander - CLI framework
  • Prompts - Interactive prompts
  • fast-glob - File pattern matching
  • fs-extra - File system utilities
  • @vercel/ncc - Zero-dependency bundling

Generated Backend

  • Node.js + Express
  • TypeScript
  • @google/genai - Gemini AI SDK

Generated Frontend

  • Angular 21 (standalone components) or React 19 + Vite
  • TypeScript

License

MIT