clerk-cost-tuning

Featured

Optimize Clerk costs and understand pricing. Use when planning budget, reducing costs, or understanding Clerk pricing model. Trigger with phrases like "clerk cost", "clerk pricing", "reduce clerk cost", "clerk billing", "clerk budget".

AI & Automation 2,359 stars 334 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Clerk Cost Tuning ## Overview Understand Clerk pricing and optimize costs. Clerk charges by Monthly Active Users (MAU). Covers pricing tiers, MAU reduction strategies, caching to reduce API calls, and usage monitoring. ## Prerequisites - Clerk account active - Understanding of MAU (Monthly Active Users) - Application usage patterns known ## Instructions ### Step 1: Understand Clerk Pricing Model | Plan | Price | MAU Included | Extra MAU | |------|-------|-------------|-----------| | Free | $0/mo | 10,000 MAU | N/A | | Pro | $25/mo | 10,000 MAU | $0.02/MAU | | Enterprise | Custom | Custom | Custom | Key pricing concepts: - **MAU** = unique user who authenticates at least once per month - Users who only visit public pages are not counted - Bot/crawler sessions are not counted - Test/development instances are free and unlimited ### Step 2: Reduce MAU Count ```typescript // Strategy 1: Defer authentication — don't force sign-in until necessary // middleware.ts import { clerkMiddleware, createRouteMatcher } from '@clerk/nextjs/server' const requiresAuth = createRouteMatcher([ '/dashboard(.*)', '/settings(.*)', '/api/protected(.*)', ]) export default clerkMiddleware(async (auth, req) => { // Only require auth for specific routes (not entire site) if (requiresAuth(req)) { await auth.protect() } }) ``` ```typescript // Strategy 2: Use anonymous access for read-only features // app/blog/[slug]/page.tsx import { auth } from '@clerk/nextjs/server' export def...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
8 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category