dcartertwo
19
0
100% credibility
Found Mar 02, 2026 at 19 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

A Cloudflare Durable Objects adapter for Chat SDK that enables persistent chat subscriptions, distributed locking, and key-value caching for building reliable chat bots.

How It Works

1
🔍 Find the memory booster

You discover a handy tool that lets your chat bot remember conversations, track who's chatting, and store quick notes without forgetting.

2
📦 Add it to your bot

You easily include this memory tool into the setup for your chat bot project.

3
🔗 Connect the memory

You link the memory storage right into your bot so it can save chat histories and details securely.

4
Unlock smart powers

Your bot lights up with abilities to follow multiple chats at once, avoid mix-ups, and recall info instantly.

5
⚙️ Adjust for crowds

You set simple rules on how the memory spreads across busy chat groups to keep everything running smooth.

6
🚀 Send it live

You launch your upgraded bot to the web, ready for real conversations.

🎉 Perfect chat flow

Your bot now manages endless chats flawlessly, remembers every detail, and delights users with speedy, smart replies.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 19 to 19 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is chat-state-cloudflare-do?

This TypeScript library is a state adapter for the Chat SDK, letting you build persistent chat bots on Cloudflare Workers using Durable Objects backed by SQLite. It handles subscriptions to threads, distributed locking for concurrent ops, and key-value caching with TTLs—all without external databases like Redis. Setup is simple: npm install, bind the Durable Object namespace in wrangler.toml, and pass it to createCloudflareState for plug-and-play state in your bot.

Why is it gaining traction?

It stands out for zero dependencies beyond Workers runtime, leveraging Durable Object single-threading for atomic locks and alarms for auto-cleanup of expired entries—cheaper than Redis with Cloudflare Durable Objects free tier and low costs. Sharding via thread ID prefixes scales to high-traffic bots beyond single DO limits (500-1k req/s), and it beats KV for strongly consistent, per-thread state. Devs dig the persistence across deploys and location hints for low-latency.

Who should use this?

Cloudflare Workers devs building Slack or Discord bots with Chat SDK, especially those needing reliable thread subscriptions and locks without managing extra infra. Ideal for solo indie hackers prototyping multi-platform bots or teams hitting KV consistency limits in websocket-heavy apps. Skip if you're not on Workers or prefer managed DBs.

Verdict

Solid for Chat SDK on Workers—thorough docs, full test coverage, and production tips like sharding make it production-ready despite 17 stars and 1.0% credibility score signaling early maturity. Try it for low-cost state; watch for community growth before heavy production lifts.

(198 words)

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.