Getting Structured Data from Web Pages with AI and Re-usable Specs

As I say from time to time, every now and then I build something as a proof of concept and the result is… ok? I’m not really sure if the idea actually made sense and if the final result is usable, but the exploration was interesting enough that I think it warrants sharing with you good people. That’s what today’s post is. This demo all began with a simple idea – how do you handle getting RSS like content from a site that doesn’t actually have an RSS feed? This typically relies on looking at the page as data to be parsed. For a while now, there have been multiple good ways to turn a web page into structured data. As an example, AgentQL lets use a GraphQL-like... more →
Posted in: JavaScript

Getting Image Insights with Built-in Chrome AI and EXIF Data

It’s been a busy few weeks for Chrome’s Built-in AI support. Since the last time I blogged about it, four features have gone GA (which still means they are Chrome only but not behind a flag anymore): Translator Summarizer Language Detector Prompt API (for extensions only) And while announced back at the end of May, Gemma 3n as a model is available in Canary, Dev, and Beta Chrome builds. To be clear, the percentage of folks who can use these new features is still really low, but all of these features also work really well in progressive enhancement, and can be backed up by server calls to an API if need be. I continue to be really excited about the possibilities these APIs unlock,... more →
Posted in: JavaScript

Getting and Displaying a Mastodon Post in Client-Side JavaScript

I’ve got a few pages here that are primarily built for my own use. One of them, my bots page, is a list of all the dumbsuper useful bots I’ve built for Mastodon (and Bluesky). The idea on this page is to show the latest post from each bot. The bots page makes use of two different shortcodes written in Liquid to do this. The first uses the RSS feed of the bot to get their last toot ID: const lastToot = async (instance, user) => { let rssFeedURL = `https://$ {instance}/users/$ {user}.rss`; try { let feed = await parser.parseURL(rssFeedURL); return feed.items[0].guid.split('/').pop(); } catch(e) { console.log(`getting last toot for $ {user} returned an error`); return... more →
Posted in: JavaScript

Car Commutes are Getting Longer

During the height of the Covid epidemic a number of visualizations were created to show the drop in road traffic and public transit use. As people were forced to quarantine and work from home our roads and transit networks saw an observable fall in traffic.For example Buzzfeed teamed up with Mapbox to create a series of interactive mapped visualizations showing the reduction in road traffic in Maps Mania… more →
Posted in: Interactive Maps

Is Light Pollution Getting Better?

David J. Lorenz’s Light Pollution Atlas 2006, 2016, 2020 includes global light pollution layers for three different years. It also includes a layer which shows where light pollution around the world has become better or worse during 2014-2020.This 2014-2020 light pollution trend layer shows that light pollution in most of the UK and France and in the eastern U.S. significantly reduced from Maps Mania… more →
Posted in: Interactive Maps
1 2