2 hours ago · 16 min read3147 words · Tech · hide

A forewarning, this is a really long post, but I think you will like it. I have a very soft spot for the MessageChannel API. I think it’s magical, and I’ve been building a side-passion project port-authority.dev that aims to showcase some of the patterns for inter-site or inter-frame communication that is enabled by the entangled Port API. It enables some experiences that I think most web developers don’t know, including features like delegated discovery and subsequent communication between two apps that don’t know about each other. During the development of this project it enabled me to answer a problem that I found in “calling apis from the browser shouldn’t mean exposing keys” which highlighted the problem for anyone building a client-side web app that calls a language model, you have to either: Run a backend proxy just to hide a provider API key, which means paying for every visitor’s inference calls, operating a server, and securing a new proxy surface. Or Ask visitors to paste…

Commenting on Bubbles has been removed. Why? If you want to talk about this post, write to the author, use the comments on their blog if it has them, or reply with a "RE:" post on your own blog. Suggestions? feedback@bubbles.town