Running faster using Bun instead of Node.js & some 💡 ideas #162
Replies: 2 comments 2 replies
-
Hi @africa552036012020255252355634346346346, thanks for sharing your ideas. I'll respond to each one.
I'd prefer to stick with Node/Webpack for now, as they are the established standards in their respective spaces. Generally speaking, I prefer to optimize for stability and ecosystem when it comes to tooling. If Bun ever becomes the mainstream solution, we can revisit this.
I'd prefer not to do that, as my understanding is that Preact is not compatible with the entire React ecosystem. I'd prefer to maintain that compatibility for Chitchatter.
That seems like a great idea. I'd be open to accepting a PR that implements this.
I don't think this functionality is appropriate for Chitchatter. It's critical for privacy that room names remain unlisted, so I don't see a place for any kind of live room lists in this project.
It's not clear to me what a practical use case for this might be. Can you explain what you're envisioning here?
I'd be open to accepting a PR that implements cryptocurrency transaction support within Chitchatter, provided that the functionality is unobtrusive, opt-in, and private. |
Beta Was this translation helpful? Give feedback.
-
Been experimenting with Bun (quick video explainer) a little bit and it seems to be running fine, even without changing anything in the code, just swapping out
npm
forbun
(bun start
etc.). Can also deploy on Cloudflare pages using Bun, guide.I haven't timed it but it feels faster on my wooden pc and chat works just as usual (inspect console when running tho, some things may not load). It should also be possible to use Bun instead of Webpack, Im not too familiar with this field yet tho.
Few more random ideas: (written here so they're not forgotten, will be testing some when i get on my carbon fiber pc)
Switching to Preact instead of React, no clue if it works or if it's worth it.
If the viewport can't fit the menu, chat and peerlist at once (mobile devices) simply activate a
:focus
css tag that only allows either the menu, chat or peerlist to be focused at once, blurring the chat when either of the other is focused (+ something likeoverflow:hidden
on the chat to prevent odd scrollbars / squished chat).Peerlist (& the entire page) never extending beyond the initial viewport (fixing this) (& tiny scroll in there Discord style for when having many connections if it's not there already).
Can Deno KV (beta open for everyone now) / Cloudflare KV make for a simple active public rooms list (?) (& possibly even offline notifications (ntfy integration needed (?)) + persistent (timed autodelete) messages, letting users bring their own KV keys (?)).
LLM integration where users can simply shove in their API keys (&/ something like openrouter)
plus parameters to define interactive bots, (overkill: AgentGPT &/ MetaGPT-like integration; spawn and run entire software companies directly from the chat).
$ & Crypto integration, vision to have users be one or two clicks away from getting paid & sending payments in their chosen currencies (anonymously if desired) and for devs to be receiving a % cut of exchange fees. Even something like a simple Trocador (API) integration can work.
Beta Was this translation helpful? Give feedback.
All reactions