Durability offers modular alternative to Agents SDK
Durability is an open-source library that adds composable operations, named alarms, and typed WebSocket sync to Cloudflare Durable Objects. It provides modular background execution and retries without adopting full workflow frameworks or the heavier Cloudflare Agents SDK.
While Cloudflare's Agents SDK is rapidly becoming the standard for stateful AI agents, many workloads need durable execution without adopting heavy opinionated frameworks. Durability turns individual Durable Objects into composable, SQLite-backed job runners and sync engines while keeping developers in full control of their application classes.
- –Modular primitives over monolithic frameworks: Decouples operations, named alarms, fanout routing, and browser WebSocket sync into discrete classes sharing a single physical alarm and SQLite schema.
- –Native SQLite durability: Retries, idempotency tracking, and task execution run directly inside the Durable Object's co-located SQLite engine without external queue dependencies.
- –Lean alternative to the Agents SDK: Developers building background workers, task scheduling, or real-time event sync avoid the overhead of full agent base classes.
- –Typed client RPC and stream rewind: Built-in socket and retained log primitives provide browser RPC with replayable events and cursor resumption for reliable real-time dashboards.
DISCOVERED
1h ago
2026-11-22
PUBLISHED
1h ago
2026-11-22
RELEVANCE
AUTHOR
mattzcarey