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.
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
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