Why Use Templates?
Instant Setup
Clone and set up a working subscription app right now
Best Practices
Security, error handling, and UX patterns already implemented
Production Ready
Tested patterns used in real applications, ready for deployment
Officially Supported
Templates are updated regularly, ensuring that everything just works
Available Templates
Next.js Template
Our flagship template built with Next.js 14, TypeScript, and the App Router. Tech stack:- Next.js 14 (App Router)
- TypeScript
- Tailwind CSS
- utilsio React SDK
- Complete subscription flow (subscribe, manage, cancel)
- Secure signing endpoint with HMAC-SHA256
- User authentication setup instructions for Supabase (requires separate configuration)
- Success and cancellation pages
- Environment variable configuration
- Type-safe components and hooks
- SaaS applications
- Subscription-based web apps
- Content platforms with paywalls
- Premium feature gating
Whatโs Inside a Template?
Every utilsio template includes:1. Backend Signing Route
Secure API endpoint that signs requests with your app secret:2. Provider Setup
Configured context provider for your app:3. Subscription Components
Pre-built UI components for subscriptions:4. Success & Cancellation Pages
Redirect pages for subscription flows:5. Environment Configuration
Ready-to-use environment setup:Using a Template
Quick Start
Customization
Templates are designed to be customized:- Styling - Replace Tailwind classes with your design system
- Components - Modify UI components to match your brand
- Features - Add your application-specific functionality
- Pricing - Update subscription amount and pricing logic
Template vs. SDK vs. API
When to use what?| Approach | Best For | Setup Time | Flexibility |
|---|---|---|---|
| Template | New projects, MVPs, learning | 5-10 minutes | Medium |
| SDK | Existing apps, custom UI | 15 minutes | High |
| Direct API | Non-JS apps, full control | 30+ minutes | Maximum |
- Starting fresh? โ Use a template
- Have an existing app? โ Use the SDK
- Using a different language? โ Use the API
Template Features Comparison
All templates include these core features:- โ User authentication setup with Supabase (requires separate configuration)
- โ Subscription management (view and cancel)
- โ Subscription redirect flow (to create new subscriptions)
- โ Secure request signing
- โ Device tracking
- โ TypeScript support
- โ Environment variable configuration
- โ Error handling
- โ Loading states
- โ Success/cancellation flows
- โ Documentation
Learning from Templates
Templates are excellent learning resources: Study the code to understand:- How to structure a subscription app
- Security best practices for API keys
- User flow design for subscriptions
- Error handling patterns
- Loading state management
- TypeScript integration