saas-platform-patterns

Implements monetization and subscription management in NestJS applications.

Updated Mar 14, 2026
One-click install
npx skills add https://github.com/ironkid90/Lucky5-v7 --skill saas-platform-patterns-ironkid90
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: saas-platform-patterns
Source: https://github.com/ironkid90/Lucky5-v7/tree/main/.ptah/skills/saas-platform-patterns
Command: npx skills add https://github.com/ironkid90/Lucky5-v7 --skill saas-platform-patterns-ironkid90

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires nestjs, prisma, stripe, paddle, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill guides you in designing, implementing, and managing monetization, licensing, subscription management, and checkout flows in NestJS applications for freemium, trial/paid tiers.

Core Features & Use Cases

  • Monetization Models: Covers Freemium, Trial-to-Paid, Usage-Based, and Seat-Based models.
  • License System: Automates key generation, verification, and status tracking.
  • Subscription Engine: Manages state machines driven by payment webhooks.
  • Checkout Flow: Handles pre-checkout validation, portal integration, and pricing architecture.
  • Trial Manager: Tracks periods, sends reminders, and auto-downgrades.
  • Integration: Works with payment providers and other related skills.

Quick Start

To define plans, run ./scripts/define-plans.sh. Generate a license with ./scripts/generate-license-key.sh user_id plan_slug.

Frequently Asked Questions about saas-platform-patterns

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement subscription management and checkout flows in NestJS?

You can manage SaaS subscription state machines in NestJS by processing payment webhooks and automating license verification. It requires Prisma for data modeling and payment provider SDKs like Stripe or Paddle for transaction processing.

What is the best way to handle trial periods and auto-downgrades for freemium applications?

You can automate freemium trial management by tracking periods, sending user reminders, and triggering auto-downgrades. This Skill provides a trial manager component that handles these transitions for trial-to-paid tier applications.

Does this NestJS monetization pattern support both Stripe and Paddle integrations?

Yes, this NestJS monetization pattern supports both Stripe and Paddle integrations. It uses payment provider SDKs to handle pre-checkout validation, portal integration, and subscription state updates across both platforms.

How do I generate and verify software licenses for a SaaS platform?

You can generate SaaS licenses by running the provided script with a user ID and plan slug. The license system automates key generation, verification, and status tracking to secure your subscription tiers.

Can I use Prisma to model usage-based and seat-based SaaS monetization models?

Yes, you can use Prisma to model usage-based and seat-based SaaS monetization models. This Skill covers multiple monetization architectures, allowing you to structure database schemas to track usage, seats, and subscription states.