Skip to content

feat: Implement cost-aligned pricing with early adopter incentives#81

Merged
bcanfield merged 10 commits intomainfrom
copilot/create-pricing-plan
Dec 19, 2025
Merged

feat: Implement cost-aligned pricing with early adopter incentives#81
bcanfield merged 10 commits intomainfrom
copilot/create-pricing-plan

Conversation

Copy link
Contributor

Copilot AI commented Dec 7, 2025

Pricing Plan Implementation ✅

Overview

Implemented a comprehensive pricing strategy with clear value proposition, early adopter incentives, and flexible billing options that align with actual running costs (AI tokens, endpoint executions, execution durations).

Completed Features

✅ Updated Pricing Tiers

  • Free Tier (renamed from "Starter")

    • 5 endpoints (reduced from 10 to drive upgrades)
    • 10,000 executions/month
    • 100k AI tokens/month
    • 1-minute minimum interval
    • Shows value while creating upgrade motivation
  • Premium Tier (renamed from "Professional")

    • $19/month with 35% early adopter discount (original $29)
    • 100 endpoints (20× more than Free)
    • 100,000 executions/month (10× more)
    • 1M AI tokens/month (10× more)
    • 10-second minimum interval (6× faster)
    • Clear value multipliers in features
  • Enterprise Tier

    • Custom pricing
    • Unlimited endpoints
    • 1M+ executions/month (100× more)
    • 10M AI tokens/month (100× more)
    • Sub-second intervals

✅ Billing Options

  • Monthly/Annual toggle with visual feedback
  • Annual pricing: 20% discount (2 months free)
  • Premium annual: $15.20/month (normally $19)
  • Clear billing period indicators on each card

✅ Early Adopter Offer

  • Prominent hero banner: "🎉 Early Adopter Offer: 35% OFF Premium Forever"
  • Orange gradient badge for visibility
  • Strikethrough original price ($29) on Premium card
  • "Early Adopter: 35% OFF" badge on card
  • Forever pricing lock for early adopters

✅ Refund Policy

  • Dedicated section with green-themed card
  • 14-day money-back guarantee
  • "No questions asked" policy
  • Shield icon for trust indicator
  • Positioned prominently before FAQs

✅ Updated FAQs

  • Refund policy FAQ (first position)
  • Early Adopter Offer explanation
  • Annual discount details
  • AI tokens calculation explanation
  • 8 comprehensive FAQs total

✅ Domain Layer Updates

  • Updated packages/domain/src/quota/tier-limits.ts
  • Free: 5 endpoints (was 10)
  • Limits aligned with pricing features
  • Clear multipliers in comments

✅ Code Review Fixes

  • Fixed test name grammar: "should logs" → "should log"
  • Added proper assertion for warning log verification
  • Updated ADR documentation to accurately reflect baseline interval rejection behavior
  • All 14 tests passing

Technical Changes

  • packages/content/src/pricing.ts - Added billing periods, early adopter discounts
  • packages/content/src/pricing-content.ts - Updated FAQs with refund policy
  • packages/domain/src/quota/tier-limits.ts - Adjusted tier limits (5 endpoints for Free)
  • apps/web/src/routes/_public/pricing.tsx - Billing toggle, refund section, early adopter UI
  • .adr/0054-tier-based-limit-enforcement-and-metering.md - Corrected documentation for interval enforcement
  • packages/worker-scheduler/src/domain/__tests__/scheduler-run-limit.spec.ts - Fixed test assertions

Quality Assurance

✅ TypeScript compilation successful
✅ All 14 scheduler run limit tests passing
✅ Visual verification completed
✅ Billing toggle works correctly
✅ FAQ accordion functions properly
✅ All prices display correctly (monthly/annual)
✅ Early adopter discount shows properly
✅ Code review feedback addressed
✅ CodeQL security scan passed (0 vulnerabilities)

Original prompt

Create a pricing plan for the app. It should have a free tier and premium tier. There should be no purchase friction or over-complexity. Ensure we capture the important things to capture as far as our running costs go (first thing that comes to mind is ai tokens / ai runs / endpoint executions / endpoint execution durations). We want to try to make the free tier drive users into the pair tier. free should show value, premium should multiply it

Then come up with a minimal plan for a procing page that is simple - offers monthly and annual villing , and theres a refund policy “No questions asked within 14 days”). Also we should have an 'Irresistible Early Adopter Offer' - that has a discount.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: bcanfield <12603953+bcanfield@users.noreply.github.com>
Copilot AI changed the title [WIP] Add pricing plan with free and premium tiers Implement cost-aligned pricing with early adopter incentives Dec 7, 2025
Copilot AI requested a review from bcanfield December 7, 2025 04:27
@bcanfield bcanfield marked this pull request as ready for review December 13, 2025 19:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a cost-aligned pricing strategy with early adopter incentives, introducing execution metering to enforce tier-based monthly run limits. The pricing structure is simplified to three tiers (Free, Premium, Enterprise) with clear value multiplication (5→100→1000 endpoints, 10k→100k→1M runs/month), while using a 35% early adopter discount on Premium to drive conversions.

Key changes:

  • Free tier reduced from 10 to 5 endpoints to create upgrade pressure
  • Premium tier priced at $19/month (35% off $29) with annual billing option at $15.20/month (20% discount)
  • Monthly execution limits enforced via scheduler with soft-limit deferral to next month
  • Comprehensive test coverage (14 tests) for execution metering across all tiers

Reviewed changes

Copilot reviewed 12 out of 12 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
packages/domain/src/quota/tier-limits.ts Updated Free tier from 10 to 5 endpoints; clarified comment documentation
packages/content/src/pricing.ts Added Premium tier with annual pricing fields and early adopter discount structure
packages/content/src/pricing-content.ts Enhanced FAQs with refund policy, early adopter offer details, and AI token explanations
apps/web/src/routes/_public/pricing.tsx Added billing period toggle (monthly/annual), early adopter hero banner, and refund guarantee section
packages/worker-scheduler/src/domain/scheduler.ts Implemented checkRunLimit() with soft-limit monthly execution metering and deferral logic
packages/worker-scheduler/src/domain/__tests__/scheduler-run-limit.spec.ts Added 14 comprehensive tests covering free/pro/enterprise tier limits, boundaries, errors, and cross-month behavior
packages/services/src/jobs/manager.ts Enforced minimum interval clamping for minIntervalMs field based on tier limits
packages/services/src/jobs/__tests__/manager.test.ts Updated test assertions to reflect new Free tier limit (5 endpoints)
apps/api/src/routes/jobs/__tests__/jobs.api.test.ts Updated API integration tests for 5-endpoint Free tier limit enforcement
packages/adapter-http/src/__tests__/http-dispatcher.test.ts Fixed flaky test assertion from toBeGreaterThan(0) to toBeGreaterThanOrEqual(0)
packages/adapter-drizzle/src/quota-guard.ts Clarified comment documentation for soft-limit token quota behavior
.adr/0054-tier-based-limit-enforcement-and-metering.md Comprehensive ADR documenting tier-based limit enforcement architecture and execution metering strategy

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bcanfield bcanfield changed the title Implement cost-aligned pricing with early adopter incentives feat: Implement cost-aligned pricing with early adopter incentives Dec 18, 2025
bcanfield and others added 2 commits December 18, 2025 15:53
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI and others added 2 commits December 18, 2025 20:59
…ccuracy

- Fixed test name grammar: "should logs" → "should log"
- Added proper assertion for warning log in test
- Updated ADR to accurately reflect baseline interval rejection vs guardrail clamping
- All tests passing

Co-authored-by: bcanfield <12603953+bcanfield@users.noreply.github.com>
@bcanfield bcanfield merged commit 8959edb into main Dec 19, 2025
1 check passed
github-actions bot pushed a commit that referenced this pull request Dec 19, 2025
# [1.17.0](v1.16.2...v1.17.0) (2025-12-19)

### Features

* Implement cost-aligned pricing with early adopter incentives ([#81](#81)) ([8959edb](8959edb))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants