The E-commerce Infrastructure for Developers

Build a store in
5 lines of code.

SwatBloc gives you a complete e-commerce backend with a typed SDK. Focus on your frontend, we handle the boring stuff.

Free until production
Fully Typed SDK
Next.js Ready
store.ts
import { SwatBloc } from '@swatbloc/sdk'

// Initialize the client
const store = new SwatBloc({
apiKey: 'sb_live_123...'
})

// Create a checkout session
const cart = await store.cart.create([
{ productId: 'prod_123', quantity: 1 }
])