Sunbreak is a programmable compliance platform for DeFi applications that executes compliance checks and enforces them at the smart contract level. Sunbreak combines an SDK that integrates with frontend applications, an offchain compliance engine and onchain policy enforcement contracts to deliver DeFi’s first end-to-end compliance system. Sunbreak is configured on an application by application basis, giving developers the ability to define a custom policy that suits their needs.
What’s Inside
React SDK
Integrate the Sunbreak SDK to manage user authentication, verification, and session handling in your React app.
Svelte SDK
Svelte 5 wrapper for wallet-based authentication and compliance checking in SvelteKit apps.
Smart Contracts
Use the SessionRegistry contract to read and enforce session states within your matching engine or smart contracts.
API Reference
Direct API access for wallet screening and session management.
How It Works
- SDK: authenticates users and issues verifiable session tokens.
- API: writes valid sessions to the onchain SessionRegistry.
- Contracts: use the registry to evaluate whether a session is active or revoked before executing a transaction.