@getaiva/create-app
v0.1.0
Published
CLI to scaffold AIVA-powered subscription commerce apps
Maintainers
Readme
create-aiva-app
Scaffold AIVA-powered subscription commerce apps in seconds.
Create production-ready Next.js PWAs with AIVA MCP pre-configured. Perfect for customer portals, merchant dashboards, and subscription management apps.
Quick Start
npx create-aiva-app my-portalThis creates a new directory called my-portal with everything you need:
- Next.js 14 with App Router
- PWA support (installable, offline-capable)
- AIVA MCP pre-configured
- Magic link authentication
- Push notifications ready
- Tailwind CSS styling
- CLAUDE.md for AI-assisted development
Usage
Interactive Mode
npx create-aiva-appYou'll be prompted to:
- Enter your project name
- Choose a template (Customer Portal, Merchant Dashboard, etc.)
- Select your vertical (Pet Food, Coffee, Wine, etc.)
Direct Template
# Customer portal with pet food vertical
npx create-aiva-app my-portal --template customer-portal --vertical pet-food
# Merchant dashboard
npx create-aiva-app my-dashboard --template merchant-dashboard
# Generic customer portal
npx create-aiva-app my-app --template customer-portalAvailable Templates
| Template | Description |
|----------|-------------|
| customer-portal | Customer-facing subscription management portal |
| merchant-dashboard | Admin dashboard with analytics and operations |
| liquid-widgets | Shopify Liquid theme components |
Available Verticals
When using customer-portal, you can specify a vertical for pre-built components:
| Vertical | Description |
|----------|-------------|
| pet-food | Pet profiles, dietary preferences, breed selector |
| coffee | Roast preferences, grind settings, tasting notes |
| wine | Wine cellar, ratings, pairing suggestions |
| beauty | Skin profile quiz, routine builder |
| supplements | Dosage tracking, reminders, wellness goals |
| generic | Basic subscription portal (default) |
What's Included
Every project includes:
Project Structure
my-portal/
├── src/
│ ├── app/ # Next.js App Router
│ │ ├── (auth)/ # Authentication routes
│ │ ├── dashboard/ # Main dashboard
│ │ └── api/ # API routes
│ ├── components/ # React components
│ │ ├── ui/ # Base UI components
│ │ └── subscription/ # Subscription-specific
│ ├── lib/ # Utilities
│ │ ├── aiva.ts # AIVA client
│ │ └── auth.ts # Auth helpers
│ └── hooks/ # Custom hooks
├── public/
│ └── manifest.json # PWA manifest
├── CLAUDE.md # AI context file
├── .env.example # Environment template
└── mcp.json # MCP configurationKey Features
- PWA Ready: Service worker, manifest, offline support
- Magic Link Auth: Passwordless authentication flow
- Push Notifications: Web push with permission UI
- AIVA Integration: Pre-configured MCP and API client
- Tailwind Styling: Modern, responsive design
- TypeScript: Full type safety
AI Development Ready
The CLAUDE.md file contains:
- Project architecture overview
- Coding conventions
- AIVA API patterns
- Component guidelines
- Common customization tasks
Open the project in Cursor, Claude Code, or any MCP-compatible tool and start building with AI assistance.
After Creating
Install dependencies:
cd my-portal npm installConfigure environment:
cp .env.example .env.local # Edit .env.local with your AIVA API keyStart development:
npm run devOpen in your AI tool (Cursor, Claude Code, etc.) and start customizing!
Configuration
Environment Variables
| Variable | Required | Description |
|----------|----------|-------------|
| AIVA_API_KEY | Yes | Your AIVA API key |
| NEXT_PUBLIC_APP_URL | Yes | Your app URL (for auth callbacks) |
| SHOPIFY_STORE | No | Shopify store domain (if direct access needed) |
| SHOPIFY_ACCESS_TOKEN | No | Shopify Admin API token |
MCP Configuration
The mcp.json file is pre-configured for AIVA MCP. Just add your API key to .env.local.
Customization
Branding
Edit tailwind.config.js to customize colors:
colors: {
primary: {
// Your brand colors
}
}Vertical-Specific Components
When using a vertical template, you get pre-built components. Customize them in:
src/components/profile/- Customer profile componentssrc/components/subscription/- Subscription management
Adding Features
Use the prompt library at appspurt.com/prompts for AI-ready prompts to add new features.
Deployment
Vercel (Recommended)
npm install -g vercel
vercelOther Platforms
The app is a standard Next.js application and deploys to any Node.js host:
- Netlify
- Railway
- Render
- AWS Amplify
Related Packages
@aiva/mcp- AIVA MCP server- Starter Kits - Browse all templates
License
MIT - see LICENSE for details.
