Feature Comparison: dracory/auth vs Clerk

Comparison of github.com/dracory/auth with Clerk, a managed auth service known for polished drop-in UI components.

High-Level Differences

Aspectdracory/authClerk
TypeGo library embedded in your appHosted SaaS; frontend components + backend APIs
LanguageGo onlyBest for React/Next.js; JS SDKs, limited others
DeploymentNo extra infrastructureVendor cloud only
Data ownershipYour database, your schemaUser data on Clerk's servers
UIBuilt-in server-rendered HTMLPre-built React components (SignIn, UserButton)
PricingFree (license)Free tier ~10k MAU; paid beyond

Feature Matrix

Featuredracory/authClerk
Email/password✅✅
Otp (OTP, magic link)✅ Email codes + magic links✅ Email/SMS OTP, magic links
Social / OAuth providers❌ (only via AuthKnight)✅ Many providers
Enterprise SSO (SAML, OIDC)❌✅ (paid)
MFA / TOTP❌✅
Passkeys / WebAuthn❌✅
Session management✅ Your store + cookies✅ Managed sessions, device tracking
Organizations / B2B❌✅
User roles & permissions❌✅ Org roles + custom claims
Impersonation✅ Built-in✅ User impersonation
Bot detection / CAPTCHA❌✅
Rate limiting / lockout✅ Built-in✅ Managed
Ready-to-use UI✅ Server-rendered, Bootstrap✅ Best-in-class React UI
User profile management UI❌✅ UserProfile component
JSON API✅ Built-in✅ REST + SDKs
Middleware✅ Web/API/optional✅ Per-framework SDK middleware
Vendor lock-in✅ None❌ High
Offline / self-hosted✅❌
Multiple login methods simultaneously✅ Composable via NewMultiMethodAuth + types.Method (otp, magiclink, password, authknight, custom methods){mm}
Remember-me (extended sessions)✅ Built-in opt-in session extension{rm}

Legend: ✅ built-in · ⚠️ partial/conditional · ❌ not available

Branding & Layout Options

Aspectdracory/authClerk
Full layout control✅ FuncLayout wraps any page body in your own site shell (own <head>, nav, footer)⚠️ Prebuilt components restyled via appearance prop; custom flows for full control (React-only)
Theming / CSS✅ ThemeCSS (any hosted stylesheet / Bootlegance) + CustomCSS inline overrides✅ @clerk/themes prebuilt themes, CSS variables, layout & logo options
Brand name / logo✅ BrandName, BrandTagline, BrandLogoURL rendered above the login card✅ Application logo, favicon, colors in dashboard
Email templates✅ Per-flow FuncEmailTemplate* callbacks — full control✅ Customizable templates

When to Choose dracory/auth

When to Choose Clerk