Skip to content

Latest commit

 

History

History

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Examples

Minimal, runnable integrations showing the uselimit check → operate → consume flow.

Example Stack Shows
express-api Express Protected route, tenant from x-tenant-id, 402 when out of credits
nextjs-ai-route Next.js (App Router) Route handler guarding a mocked AI call, 402 when blocked
sqlite-persistence Plain Node Balances and usage events that survive a restart, via @uselimit/storage-sqlite

These folders are intentionally outside the pnpm workspace, so they don't affect the root install or CI. Each links the packages it needs locally via file:../../packages/<name> — build them first (pnpm --filter "@uselimit/*" build), then pnpm install inside the example.