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

aigenx

v1.0.2

Published

A modern CLI tool to scaffold high-performance AI chatbot apps

Readme

aigenx 🚀

A modern CLI tool to scaffold high-performance AI chatbot apps.

License: MIT Node Version Build

✨ Features

  • 🎯 Quick Setup - Generate a full-featured AI chatbot in seconds
  • 🤖 Multiple AI Providers - Support for Groq, HuggingFace, and TogetherAI
  • ⚛️ Modern Frameworks - Next.js 15 (App Router) and Vanilla options
  • 🎨 Beautiful UI - Production-ready, ChatGPT-style interface
  • Performance Optimized - Streaming responses, edge runtime, lazy loading
  • 🌙 Dark Mode - Modern dark theme with glassmorphism
  • 📱 Responsive - Mobile-first design
  • 🧩 TypeScript - Full type safety
  • 🚀 Deploy-Ready - Vercel and other platforms supported

📦 Installation

Using npx (Recommended)

npx aigenx create my-app

Global Installation

npm install -g aigenx
aigenx create my-app

🚀 Quick Start

  1. Run the create command:
npx aigenx create my-chat-app
  1. Follow the interactive prompts:
? Select your AI Provider: 🚀 Groq (fastest, recommended)
? Select Framework: ⚛️  Next.js (App Router) - Production Ready
                 OR
                 🎯 Vanilla - Lightweight (Zero framework dependencies)
  1. Navigate to your project:
cd my-chat-app
  1. Install dependencies:
npm install
  1. Set up your environment variables:
# Copy the example file
cp .env.example .env

# Edit .env and add your API key
# For Groq (recommended):
GROQ_API_KEY=your_groq_api_key_here
  1. Get your API key:

    • Groq: https://console.groq.com/keys (Fastest, recommended)
    • HuggingFace: https://huggingface.co/settings/tokens
    • TogetherAI: https://api.together.xyz/settings/api-keys
  2. Start the development server:

npm run dev
  1. Open http://localhost:3000 in your browser

🎯 Supported AI Providers

Groq (Recommended) 🚀

  • Fastest inference speeds
  • OpenAI-compatible API
  • Models: Llama 3, Mixtral, and more
  • Get API key: https://console.groq.com/keys

HuggingFace 🤗

  • Wide range of open-source models
  • Community-driven
  • Get API key: https://huggingface.co/settings/tokens

TogetherAI ⚡

  • High-performance open-source models
  • Great for production
  • Get API key: https://api.together.xyz/settings/api-keys

🎨 Features of Generated Apps

UI/UX

  • Modern dark mode design
  • Glassmorphism effects
  • Smooth animations
  • Typing indicators
  • Auto-resize textarea
  • Copy message button
  • Clear chat functionality
  • Mobile-responsive

Performance

  • Next.js 15 with App Router
  • Edge runtime for API routes
  • Streaming responses
  • React Server Components
  • Lazy loading
  • Optimized bundle size

Developer Experience

  • TypeScript
  • Tailwind CSS
  • Zustand for state management
  • Framer Motion for animations
  • Clean architecture
  • Easy to customize

📁 Project Structure

The generated Next.js app includes:

my-chat-app/
├── app/
│   ├── api/
│   │   └── chat/
│   │       └── route.ts      # Streaming chat API
│   ├── layout.tsx            # Root layout
│   ├── page.tsx              # Home page
│   └── globals.css           # Global styles
├── components/
│   ├── ChatInterface.tsx     # Main chat container
│   ├── ChatHeader.tsx        # Header
│   ├── ChatMessage.tsx       # Message component
│   └── ChatInput.tsx         # Input component
├── lib/
│   ├── api.ts                # API client
│   ├── store.ts              # State management
│   └── utils.ts              # Utilities
├── styles/
│   └── globals.css           # Custom styles
├── .env.example              # Environment template
└── package.json

🛠️ Development

Local Development

  1. Clone the repository:
git clone https://github.com/ramykatour/aigenx.git
cd aigenx
  1. Install dependencies:
npm install
  1. Link the package:
npm link
  1. Test locally:
aigenx create test-app

Project Structure

aigenx/
├── bin/
│   └── index.js              # CLI entry point
├── lib/
│   └── create-project.js     # Project creation logic
├── templates/
│   ├── nextjs-template/      # Next.js template
│   └── vanilla-template/     # Vanilla JS template
├── package.json
└── README.md

🎯 Framework Options

Next.js Template ⚛️

Best for production applications with:

  • Full-featured framework with App Router
  • Server-side rendering
  • Edge runtime support
  • TypeScript
  • Tailwind CSS
  • React Server Components

Vanilla Template 🎯

Best for lightweight projects with:

  • Zero framework dependencies
  • Pure HTML, CSS, JavaScript
  • Minimal bundle size (~8KB)
  • Instant page load
  • Easy to understand and modify
  • Built-in Express server for API proxy

Advantages:

  • ✅ No build step required
  • ✅ Works in any browser
  • ✅ Easy to host anywhere
  • ✅ Simple to debug
  • ✅ Fastest performance
  • ✅ Perfect for learning

🚀 Publishing to npm

  1. Update version in package.json
  2. Build and test:
npm test
  1. Publish:
npm publish

🔧 Configuration

Environment Variables

The generated app uses these environment variables:

# Groq (recommended)
GROQ_API_KEY=your_key

# HuggingFace
HUGGINGFACE_API_KEY=your_key
MODEL=mistralai/Mistral-7B-Instruct-v0.2

# TogetherAI
TOGETHERAI_API_KEY=your_key
MODEL=mistralai/Mixtral-8x7B-Instruct-v0.1

# Optional
SYSTEM_PROMPT=You are a helpful AI assistant.

Customization

You can easily customize:

  • AI models via environment variables
  • System prompts
  • UI colors and styles
  • API endpoint logic

📝 Examples

Create with Groq

npx aigenx create my-app
# Select: Groq
# Select: Next.js

Create with HuggingFace

npx aigenx create my-app
# Select: HuggingFace
# Select: Next.js

Create with Vanilla (Lightweight)

npx aigenx create my-app
# Select: Groq
# Select: Vanilla

Then run:

cd my-app
npm install
npm run dev

The app will be available at http://localhost:3001

Force Overwrite

npx aigenx create my-app --force

🌟 Roadmap

  • [x] Vanilla JS template ✅
  • [ ] More AI providers (OpenAI, Anthropic)
  • [ ] Custom template support
  • [ ] Plugin system
  • [ ] Multi-language support
  • [ ] Authentication templates
  • [ ] Database integration

🤝 Contributing

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

📄 License

MIT © ramykatour

🙏 Acknowledgments

  • Next.js team for the amazing framework
  • Groq for the fast inference
  • The open-source community

📞 Support

  • GitHub: https://github.com/ramykatour/aigenx
  • Email: [email protected]
  • Issues: https://github.com/ramykatour/aigenx/issues

Made by ramykatour