Backend Patterns

The backend examples in vara-dapp-patterns/infrastructure cover the trusted off-chain services that often sit beside a Vara application.

Included patterns

PatternFocusSource
REST Gateway for Sails ProgramsExpose on-chain commands and queries through a conventional HTTP APIinfrastructure/gateway
Gasless Voucher ServerIssue, prolong, revoke, and inspect vouchers on behalf of usersinfrastructure/gasless-server
Token-Gated AuthenticationVerify wallet signatures, read VFT balances, and issue JWT access tokensinfrastructure/token-gate-server

When you need these patterns

Use a backend pattern when your architecture needs one of the following:

  • a trusted signer that should not live in the browser,
  • voucher lifecycle management for gasless UX,
  • server-side authentication or authorization based on on-chain state,
  • a conventional REST interface for frontend or third-party clients.

On this page