Levi Routes

Paul Kinlan

Malte Ubl: 'Did you mean to do that?' Me: 'Yes, of course.' Malte: 'You meant to leak screenshots of Holo Android UI' Me: '........... Shit. No of course not.' Me: 10 hours of panicing and working with the PR team.

I'm not sure Malte remembers this, but I do because it's the genesis of LeviRoutes as a project. Well not really, I had made it for a project at Google IO in 2011 with Mike Mahemoff, however just after that I attempted to post some photos of myself with a pack Levi Roots Reggae Reggae sauce peanuts (I'm good with puns), the early version of Android that I was using selected photos as you swiped through the list of photos and my thumb must have caught a couple of screenshots.

Levi Routes is a simple Express-like URL routing framework. It was built so that our IO Reader application could use 'real' URLs (those that don't use "#" syntax) from the address bar and respond to PushState events so that we can update the UI without hitting the server.

Fun fact: This library was responsible for my first ever commit to WebKit. It turned out that WebKit didn't let you create 'PushStateEvent's so I couldn't Unit Test the library... now my code is on billions of devices, but only ever used by me.

Later in 2018, I updated Levi Routes to also work inside a Service Worker.

I lead the Chrome Developer Relations team at Google.

We want people to have the best experience possible on the web without having to install a native app or produce content in a walled garden.

Our team tries to make it easier for developers to build on the web by supporting every Chrome release, creating great content to support developers on web.dev, contributing to MDN, helping to improve browser compatibility, and some of the best developer tools like Lighthouse, Workbox, Squoosh to name just a few.

I love to learn about what you are building, and how I can help with Chrome or Web development in general, so if you want to chat with me directly, please feel free to book a consultation.

I'm trialing a newsletter, you can subscribe below (thank you!)