Cookbook
Recipes for Ritual-native dApps.
End-to-end patterns combining precompiles. Each recipe ships with a diagram, Solidity contract, viem TS, and notes on the gotchas. Open any precompile cell to deep-link into the playground.
starter
AI Price Oracle
On-chain price feed without an oracle network.
ᚺHTTPᛋJQᛏScheduler
intermediate
AI-Judged Dispute Resolution
Smart contract escrow where an LLM rules on disputes, in a TEE.
ᛅLLM Inference
intermediate
Passkey wallet authentication
No seed phrase. Sign with Face ID via WebAuthn directly to chain.
ᛗsecp256r1 / Passkey
advanced
ZK credit score gate
Prove credit ≥ 700 without revealing the score.
ᛉZK ProofsᛚLong-running HTTP
advanced
Always-on Twitter agent
An autonomous AI account that posts, replies, and survives forever.
ᛟPersistent AgentᚺHTTPᛅLLM InferenceᚲDKMS
advanced
Image-and-Mint
Generate an image in a TEE, mint it as an ERC-721 in one flow.
ᛇImage Generation
More patterns coming. Want yours featured? Submit on GitHub →