June 22, 2025
I just refinished refactoring my code to use files instead of hard coding HTML in JS.
Tech rant: Our entire stack is Cloudflare, and one of the features is called static assets but that's only for serving websites. I wasted so much time trying to either use static assets or the file system. Cloudflare Workers doesn't really have a file system and file names are changed in the bundling process. The only way to get CSS to load properly and fonts is to have them bundled but there is this really confusing mapping required since everything is compressed.
A lot of bug fixes later and my app is still not stable. I need more time to work on handling errors.
In the meanwhile, I just finished adding CSS for markdown support and improving the Puppeteer implementation to reuse sessions instead of launching a new browser every time a message is clipped.
Moved from discord.js to discord-interactions with itty-router because it works on Cloudflare Workers. Tried to use Express for a bit but chose itty-router for being more lightweight.
Here's a screenshot of my project running with wrangler. I need to get Cloudflare Workers to properly deploy and fix the CI (again).
This was widely regarded as a great move by everyone.