Skip to content

janwilmake/durable-objects-x-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An infinitely scalable X Chat using Durable Objects.

It's super basic but it's cool DO because it's literally scalable to all of X and it's just 1100 lines of code.

janwilmake/xymake.chat context

How I made it:

  • Made possible by the DORM Template and X OAuth Template
  • After that, I just needed a small fix: Claude forgot to put .toArray() behind the query to insert the messages which caused it to fail

Try it here: https://chat.xymake.com

Deploy to Cloudflare

Potential ways to improve things:

  • add websocket or poll reloading
  • add unread count
  • add last message column and ensure contains {username}: {message} (use new migration)

Could this become a real thing? let's discuss

About

An infinitely scalable X Chat Using Durable Objects.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published