Skip to content

VibeCodingStarter/starter-kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

15 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Dev Kit for AI - Starter Kit

Build and ship AI-powered SaaS applications in minutes, not months.

The Starter Kit is an open-source Next.js template that helps developers build AI-powered SaaS applications quickly. It comes pre-configured with authentication, user management, AI integration, and a beautiful UIβ€”all connected to Dev Kit for AI Cloud API.

Jump in now: πŸš€ Quick Start Guide β€’ πŸ§‘β€πŸ’» Create Console Account β€’ πŸ’Ό Upgrade for More Features


πŸš€ Why Vibe Coding Starter Kit? 🀘🏽🀘🏽🀘🏽

  • πŸ§‘β€πŸ’» Clone the repo, wire up your credentials, and start shipping within minutes
  • πŸ“¦ Launch with user dashboards and the hosted Cloud API already wired together
  • πŸ€– Leverage built-in AI integrations and production-ready feature blocks out of the box
  • 🚒 Deploy with a single click to bring up the backend, frontend, admin, and end-user dashboards
  • 🧰 Assemble polished experiences fast with the extensive built-in component library

πŸš€ Quick Start

Step 1. Clone and Install

git clone https://github.com/VibeCodingStarter/starter-kit.git my-project
cd my-project

# Install dependencies
npm install

# Create .env file
cp .env.example .env.local

# Run development server
npm run dev

One-liner for Mac/Linux:

printf "Project name (default: cool-project): " && read PROJECT_NAME && PROJECT_NAME=${PROJECT_NAME:-cool-project} && git clone https://github.com/VibeCodingStarter/starter-kit.git $PROJECT_NAME && cd $PROJECT_NAME && npm install && cp .env.example .env.local && npm run dev

One-liner for Windows (PowerShell):

$PROJECT_NAME = Read-Host "Project name (default: cool-project)"; if (!$PROJECT_NAME) { $PROJECT_NAME = "cool-project" }; git clone https://github.com/VibeCodingStarter/starter-kit.git $PROJECT_NAME; cd $PROJECT_NAME; npm install; Copy-Item .env.example .env.local; npm run dev

Quick setup: Copy the one-liner above for your platform and paste it into your terminal. It will prompt for a project name (press Enter to use cool-project as the default), then clone the repository, install dependencies, and start the development server.

Step 2. Get Your Credentials

  1. Sign up for a free account at VibeCoding.ad or DevKit4AI.com

  2. Right after registering, you'll see your Developer Key in the dashboard

  • Developer Key
  • Project ID
  • Project API Key
  1. Update your .env.local file with these values

Step 3. Explore and Customize

  1. Open http://localhost:3004 to see the starter kit in action
  2. Explore example pages at /example-pages
  3. Customize branding in config/app.config.ts
  4. Add your features using the component library in components/ui/

Read the full documentation at docs.devkit4ai.com for detailed guides and API references.


✨ Features

πŸ” Authentication & User Management

  • JWT-based authentication with httpOnly cookies
  • Role-based access control (RBAC)
  • User registration and login flows
  • Email verification and password reset
  • Secure session management

🎨 Beautiful UI Components

  • 60+ pre-built components built with Radix UI
  • Dark mode support with next-themes
  • Responsive design optimized for all devices
  • Tailwind CSS for easy customization
  • Landing page templates for AI SaaS products

πŸš€ Production Ready

  • Server Components for optimal performance
  • TypeScript for type safety
  • ESLint configured with Next.js best practices
  • Vitest and Playwright for testing
  • Vercel Analytics integration

πŸ”Œ Cloud API Integration

  • Pre-configured connection to Cloud API
  • Project-scoped authentication
  • Error handling and retry logic
  • Support for multiple projects
  • Multi-tenancy support

πŸ“Š Cloud Admin Dashboard

  • Project management via Cloud Admin
  • API key generation and management
  • User analytics and monitoring
  • Usage tracking and limits

πŸ“š Example Pages & Use Cases

  • AI SaaS landing pages
  • Component showcase
  • Dashboard layouts
  • Use case demonstrations
  • Marketing page templates

πŸ“– Documentation

Core Concepts

The Starter Kit operates in project mode, which means:

  • All users are scoped to your project
  • Users have the end_user role
  • Authentication flows through Cloud API
  • Project-specific headers are automatically included

Project Structure

starter-kit/
β”œβ”€β”€ app/                    # Next.js App Router pages
β”‚   β”œβ”€β”€ (auth)/            # Authentication pages
β”‚   β”œβ”€β”€ dashboard/         # Protected user dashboard
β”‚   β”œβ”€β”€ example-pages/     # Component showcase
β”‚   └── layout.tsx         # Root layout with providers
β”œβ”€β”€ components/
β”‚   β”œβ”€β”€ ui/                # Base UI primitives (Radix UI)
β”‚   β”œβ”€β”€ generic/           # Reusable components
β”‚   β”œβ”€β”€ project/           # Project-specific (Header, Footer)
β”‚   └── starter/           # Homepage marketing sections
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ auth-server.ts     # Server-side auth helpers
β”‚   β”œβ”€β”€ auth-context.tsx   # Client-side auth hooks
β”‚   └── deployment-mode.ts # Configuration validation
└── config/
    └── app.config.ts      # App configuration

Key Files

  • lib/deployment-mode.ts - Validates environment variables and constructs API headers
  • lib/auth-server.ts - Server-side authentication (getCurrentUser, requireAuth)
  • lib/auth-context.tsx - Client-side hooks (useAuth, useDeploymentMode)
  • app/actions.ts - Server Actions for login/logout
  • app/layout.tsx - Root layout with providers

Environment Variables

Variable Required Description
DEVKIT4AI_MODE Yes Always "project" for starter kit
NEXT_PUBLIC_API_URL Yes Cloud API base URL
DEVKIT4AI_DEVELOPER_KEY Yes Your developer key from Cloud Admin
DEVKIT4AI_PROJECT_ID Yes Your project UUID
DEVKIT4AI_PROJECT_KEY Yes Your project API key
ENVIRONMENT No Deployment environment (default: local)

🎨 Customization

Branding

Update config/app.config.ts:

export const appConfig: AppConfig = {
  name: "Your App Name",
  description: "Your app description",
  logo: {
    text: "YourApp",
    href: "/",
  },
  // ... more config
};

Styling

The starter kit uses Tailwind CSS. Customize in tailwind.config.ts:

export default {
  theme: {
    extend: {
      colors: {
        // Your custom colors
      },
    },
  },
};

Components

All UI components are in components/ui/ and built with Radix UI. Customize them directly or create variants using class-variance-authority.


πŸ§ͺ Testing

# Run all tests
npm run test

# Integration tests (Vitest)
npm run test:integration
npm run test:integration:watch

# E2E tests (Playwright)
npm run test:e2e

πŸš€ Deployment

Vercel (Recommended)

  1. Push your code to GitHub
  2. Import project to Vercel
  3. Add environment variables in Vercel dashboard
  4. Deploy

Deploy with Vercel

Other Platforms

The starter kit works on any platform that supports Next.js:

  • Netlify
  • Railway
  • Render
  • AWS Amplify
  • Docker (Dockerfile.dev included)

Ensure you set the required environment variables on your platform.


πŸ› οΈ Development

Available Scripts

npm run dev          # Start development server (port 3004)
npm run build        # Build for production
npm run start        # Start production server
npm run lint         # Run ESLint
npm run test         # Run all tests

Makefile Commands

make install         # Install dependencies
make dev             # Run dev server with backend health check
make verify          # Run typecheck, lint, audit, and build
make check-cloud-api # Check Cloud API health

πŸ“š Resources


🀝 Contributing

Contributions are welcome! Please read our Contributing Guide for details.


πŸ“„ License

This project is licensed under the Mozilla Public License 2.0 - see the LICENSE file for details.


πŸ’¬ Support


🌟 What's Next?

After setting up the Starter Kit:

  1. Explore Example Pages at /example-pages
  2. Customize Branding in config/app.config.ts
  3. Add Your Features using the component library
  4. Deploy to Production on Vercel or your preferred platform
  5. Upgrade Your Plan at VibeCoding.ad for higher limits