Skip to content

MakerKit NextJS Template Commands ​

Commercial License Required

MakerKit requires a commercial license. While Orchestre can help you build with it, you must obtain a valid license from MakerKit for commercial use.

Comprehensive commands for building production-ready SaaS applications with MakerKit.

Overview ​

The MakerKit template provides 30 prompts specifically designed for SaaS development, covering everything from authentication to billing, team management, deployment, and specialized recipe patterns.

Available Commands ​

Feature Development ​

Team & Organizations ​

Authentication & Security ​

Payments & Billing ​

Admin & Monitoring ​

Development & Testing ​

Communication ​

Search & Discovery ​

Deployment ​

Analysis & Improvement ​

Usage Examples ​

Building a Complete Feature ​

bash
# Plan the feature
/orchestrate "User dashboard with analytics"

# Implement components
/template add-feature user-dashboard
/template add-api-endpoint /api/analytics
/template add-database-table user_analytics

# Add authentication
/template setup-oauth google,github
/template setup-mfa

Setting Up Payments ​

bash
/template setup-stripe
/template add-subscription-plan "Basic,$9,Pro,$29,Enterprise,$99"
/template add-webhook stripe-events

Team Collaboration ​

bash
/template add-team-feature invite-members
/template add-team-feature team-roles
/template add-team-feature team-billing

Production Deployment ​

bash
/template setup-testing
/template security-audit
/template optimize-performance
/template deploy-production

Key Features ​

Supabase Integration ​

All database commands include:

  • Automatic RLS (Row Level Security) policies
  • Type-safe database queries
  • Migration files
  • Seed data

Stripe Integration ​

Payment commands provide:

  • Subscription management
  • Customer portal
  • Webhook handling
  • Invoice management
  • Usage-based billing

Multi-Tenancy ​

Team features include:

  • Organization management
  • Role-based access control
  • Team invitations
  • Billing per organization

Type Safety ​

  • Full TypeScript coverage
  • Generated types from Supabase
  • Zod validation schemas
  • Type-safe server actions

Best Practices ​

  1. Start with Core Features: Build auth and data model first
  2. Add Payments Early: Integrate Stripe before launch
  3. Test Everything: Use the testing infrastructure
  4. Security First: Run security audits regularly
  5. Monitor Performance: Set up monitoring early

Common Workflows ​

SaaS MVP ​

bash
# Core setup
/template add-feature authentication
/template setup-stripe
/template add-feature landing-page

# User features
/template add-feature user-profile
/template add-feature user-settings

# Deploy
/template deploy-production

Enterprise Features ​

bash
/template add-enterprise-feature sso
/template add-enterprise-feature audit-logs
/template add-enterprise-feature advanced-permissions
/template setup-mfa

Admin Dashboard ​

bash
/template add-admin-feature user-management
/template add-admin-feature subscription-management
/template add-admin-feature analytics-dashboard
/template add-admin-feature system-settings

Integration with Core Prompts ​

MakerKit commands work seamlessly with Orchestre core prompts:

bash
# Research best practices
/research "SaaS billing models"

# Plan the implementation
/orchestrate "Implement usage-based billing"

# Execute with template commands
/template setup-stripe usage-based
/template add-webhook stripe-usage-events

# Document the feature
/document-feature "Usage-based billing implementation"

MakerKit Patterns ​

The template includes established patterns for:

  • Server actions with authentication
  • RLS policies for multi-tenancy
  • Form handling with react-hook-form
  • Data fetching with React Query
  • Email templates with React Email

Access patterns in .orchestre/patterns/makerkit-nextjs/

Built with ❤️ for the AI Coding community, by Praney Behl