Lead for Chrome Developer Relations at Google. Web Developer. Avid user of AI tooling.
I live in the beautiful town of Rhuthun in North Wales. Learning Welsh and loving Wales.

@paul.kinlan.me
Lead for Chrome Developer Relations at Google. Web Developer. Avid user of AI tooling.
I live in the beautiful town of Rhuthun in North Wales. Learning Welsh and loving Wales.
I'm doing some experiments with adding ATProto support directly to my blogs.
in-browser LLM router without exposing API keys to every page Sites can invoke LLMs without exposing API keys using a dedicated browser origin. https://aifoc.us/in-browser-ai-router/
I've tested that quite extensively. There is no way to send it through the same port because the port if given to the frame and its vended by the picker that is only openable from the origin that initiated the request.
Circle to search on a live article
Draw a lasso over a live article drawn in a 2D <canvas layoutsubtree>: everything outside the loop greys and dims in ten radial steps behind an iridescent rim, and caretPositionFromPoint() and…
There's an option to use a window, however the new cross origin storage API is designed to solve that.
Infinite board of live pages
A canvas you can zoom and pan where every tile is a working document: notes, a spreadsheet, a sketch pad and whole pages in iframes. Text is rasterised again at each zoom level.
Just trialing posting HTML in Canvas Experiments as I make them via ATProto @html-in-canvas.page
I wrote about it here: aifoc.us/dangerous/
I was thinking about some sort of "Subscription" or "Session" object - like the CryptoKey it could be opaque (i.e, not visible to the page) and it would expose the URL or the API key, but it could be passed into a fetch or something similar. Might enable you to extend to any 3P API
I've just added Quota usage in too
It caps it based on number of turns, but it should be possible to add billing caps in
I don't believe the message port can be comprised once it's delivered to the window and frame. But yes, the router can revoke because that is the single point of management
Simple but Very Giant ...
who has the most points?
I made a lot of progress with an experiment to see if I can let enable you to talk to Gemini, Anthropic and OpenAI APIs directly from the browser without exposing your API to every web page that would use the API. Effectively an in-browser LLM router.
Check it out.
Dear President von der Leyen Listen to what Europe's sayin'. Do it, Ursy! Show no mercy! Big Tech's the dragon that needs slayin'.
🇪🇺 Europe has spoken! The response to our open letter has been phenomenal. A huge thank you to everyone who signed, shared and helped unite such a broad coalition in support of the open web. Now it's time for the European Commission to act. action.open-web-advocacy.org?s
I just published Modern Web Weekly #86 🚀 In this edition: Why Apple doesn't want web apps to be installable An in-depth look at Apple's concerns, possible solutions, and what could really be behind it. Subscribe link 👇
Thread. TL;DR, sign the letter to tell my mate Ursula that, 1000 days since the Digital Markets Act came into force, Apple must be made to obey the law. It doesn't matter how many millions Apple donated to a ballroom: in the EU, the law is the law.
🚨 1,000 DAYS. STILL WAITING. Apple was legally required to comply with the Digital Markets Act 1000 days ago. Yet not a SINGLE browser vendor has been able to upgrade its existing EU users to its own browser engine. Last Day to Sign the Open Letter! open-web-advocacy.org/blog/1000-da... 1/14🧵
Oh, very interesting proposal from the Chrome team:
A sort of iframe that persists top-level navigations.
Main use case: a media player, or chat widget that continues playing, uninterrupted by page navigations.
Persistent widgets ➡️ github.com/WICG/persist...
UI style guides
I leveraged OpenAI's Astra on high and the awesome demos that @paul.kinlan.me shared to build this out with me steering it where I wanted it to go. I'll open source the repo soon.