Back to browse
GitHub Repository

Local, offline emulator for Clerk auth (Backend API + FAPI). Real JWT signing, orgs, M2M tokens & webhooks. Works with @clerk/backend.

3 starsTypeScript

Local Clerk emulator for isolated dev environments

by psnyder·Jun 18, 2026·1 point·0 comments

AI Analysis

MidSolve My Problem

Local Clerk emulator when teams share preview instances for local dev.

Strengths
  • Real JWT signing means @clerk/backend and clerk-js work unmodified against it
  • In-process mode for tests via Hono app — no separate server process needed
  • Supports organizations, M2M tokens, sessions, and webhook emulation
Weaknesses
  • Clerk-specific only — doesn't help if you're using Auth0, Supabase, or custom auth
  • In-memory state resets every run unless you configure persistence manually
Target Audience

Developers using Clerk authentication

Similar To

LocalStack · MSW · WireMock

Post Description

Spun up a local Clerk emulator for testing and local developer stacks. Previously, engineers were sharing a single "preview" Clerk instance for local development, which led to a poor local dev experience for our team +Can also be used for isolated integration testing

Similar Projects

Developer Tools●●Solid

Machine – One VM per Project

VM isolation beats containers for security, plus Touch ID git signing from host.

Solve My ProblemCozy
katspaugh
411mo ago