01 · Install
Four lines of code. Live in 4 minutes.
One env var, one import, one provider. Latch works with Next.js, Remix, Rails, Django, Go, anything that can read an environment variable. Local evaluation means zero network round-trips in production.
- ~12 KB gzipped SDK, no dependencies
- Works in edge runtimes (Vercel, Cloudflare)
- Open-source SDKs in 7 languages
- SOC 2 Type II, EU and US data residency
// 1. Install
npm i @latch/sdk
// 2. Set your key
LATCH_KEY=lk_live_••••••••••••
// 3. Use it
import { latch } from '@latch/sdk'
if (latch.isOn('checkout-v3-redesign')) {
return <NewCheckout />
}
return <LegacyCheckout />