Icarus: Testing the Limits of What a Browser Can Do
Hey,
It's Bee again.
Some people do not know where to stop... and when. If Daedalus had told me not to fly too low or too high, my fate would have been like Icarus's. In recent weeks I have been making a bunch of small tools. Most probably you will find a use for one or two, so please check them out.
The context
Remember Vision-SL and how the browser kept doing stuff so that the server would work less? So yeah, I went on a wave of tinkering around to see what I could do lol. If you haven't noticed, I run my blog and my tools on GitHub Pages, which is free and only serves static pages. This comes with a few problems that inspired the architectural design behind the apps:
- I do not have the compute to process data and stuff, which is why I push for your machine to do all the work.
- I cannot save data anywhere (I have options, but I do not see the need to have your data or track who uses what app).
- I come from an era where people made apps for fun, so no, I do not intend to monetize the apps.
The vision
I might be one of the crazy ones. However, I believe that if we distribute compute power and push some of the operations to the user, we save a lot on costs. If my app can run on 4GB of RAM and use your 8GB of RAM to serve and save compute, that means I can charge less for my services. Then again, we are now in an era where surveillance reigns supreme, and I believe that users (me included...) do not trust systems. (I wrote more about this in Data-Sovereign AI and Automated Workflows.) So what if we could make sure that no data leaves your device? (The only app that sends data is the QR Generator, which checks the availability of the entered URL.) See, I am one of you guys, and I make stuff for people like us.
So we made stuff that runs offline
Think of it: your machine sends a request to my server, which serves static files, but thanks to JavaScript, it sends code you can use to do stuff. First it was the QR generator, which would generate and download offline. (The catch is that you have to wait for all the tools to be received from my server first, but after that you can cut off the internet and use them forever... or for the few days I actually used to test.) Then there was the business card maker, and then the flyer generator. The browser would save the structure and instructions, then allow you to customise. Just like that.
.... then came evil thoughts
In every sport, the history makers are those who dared to test the limits. Be it Ronaldo shooting from 40 yards out, Bolt thinking what if someone did sub-9 seconds in the 100m?, or so many incidents like that. And I wanted to join the club. So I asked myself, what if I could test / taste the limits of what the browser could do for me?
- The first idea was a rock-paper-scissors game that ran offline, and you would actually play with your camera on. Well, that would have been fun, but then it was the same use of hand-tracking, and I am kinda tired of tracking hands lol (I already did that in No Data, No Problem). So as I was asking myself what else I could track, an idea came. Gestures. Facial expressions. And then what? That brought me to the next stage: tracking and giving feedback was light work. I wanted the browser to work. So I settled on making an avatar twin that captured expressions, translated them to the avatar and saved a video of the avatar. All offline.
Setting to work
And so I did that. Just like that. Track the eyes and mouth, and make the avatar do monkey see, monkey do. Easy peasy, right? I mean, I could just prompt it to life.... The funny thing is that when I tried, it worked. But if there is one thing you should know by now, it's that we do not just want it to work; we want it to work the right way. Initially:
- There was heavy lagging as the browser used resources to track images, draw outlines and make stuff move.
- The models being transferred to the browser were 37 MB. For a Zimbabwean user, that is way too much to transfer without even using the app.
- On my 16 GB RAM machine, it worked fine. On my phone, it was a bad UI.
.... back to the drawing board again
To make it usable for me and the few who will ever visit my stuff, I set out to design a better experience. As I did so, there were a few lessons that I got to learn, and trust me, it was kinda fun.
- Less is more. Reduce the resolution to 480p: smaller sizes (17MB) and less lagging. Reduce the model artefacts and weights being downloaded: less wait (pun intended). Reduce clutter: less control but more oomph in the design. By the time I was done, the avatar could mimic in near real time, and it now worked on my phone.
- Data privacy still remained. The idea never changed. The approach did. Sending data to a server for processing was an option that was intentionally never exploited. The browser ended up doing the work.
As I built the next app, another thing happened. A eureka moment. A real use case (this was just inspired by testing the limits of browser computing). The teleprompter app. The core concept never changed, just the implementation. What's even more amazing is that the app could cache relevant files in a Progressive Web App kinda way. I have a downloaded shortcut on my phone that I use now.
Up next, I have had this idea of turning these blogs into a podcast. Will I use the teleprompter? Or the avatar? Time will tell, but one thing is clear to me now. Edge compute has a limit, and as I think about my next app, I will try to be kind to your browser.
Sincerely
Yours Truly
Let's connect via the following platforms: LinkedIn, on X as @Rogue0015, or check the Sessionize speaker profile if you want this signal live on your stage. And if you're new here, start with the talks — this blog is their echo.