Protocol docs for La Crypta coupons — the Nostr framework to advertise a Coupon Manager Service, mint vouchers, and redeem them once.
Live implementation: merchant.lacrypta.ar
Canonical implementation repo: lacrypta/merchant
Intended host: coupons.lacrypta.ar (Vercel-friendly Next.js app).
- Fumadocs + Next.js App Router
- OpenAPI + Scalar playground against production Merchant
- La Crypta dark / lime branding (Standerd)
nvm use # Node 24+
npm install
npm run devOpen http://localhost:3000.
| Command | What |
|---|---|
npm run dev |
Local docs site |
npm run build |
Production build |
npm run start |
Serve the build |
npm run types:check |
TypeScript |
| Path | Topic |
|---|---|
/ |
Branded landing → Merchant CTA |
/docs |
Roles, why Postgres + Nostr |
/docs/protocol/* |
Discovery 30078, voucher 20402, auth, benefits |
/docs/flows |
Activate → mint → claim |
/docs/api |
OpenAPI + live playground |
/docs/guides/* |
POS checklist, practices |
/docs/examples |
Compact snippets |
Protocol narrative is rewritten from merchant/docs/cupones*.md. Merchant remains the implementation; this site is the public protocol surface.
Any Node 24 host that runs Next.js (Vercel recommended). Set the project root to this repo and build with npm run build.