Reduced motion on

Contact

Astro Migration: Building Interactive Components

We're migrating the Outer Loop website from Hugo to Astro 5 to build interactive components that bring data visualisation to life.

An interactive map showing Sydney's transport demand

If you’ve been to our website before, you might have noticed that it has had a bit of a facelift. We’ve been working with Beinc (opens in a new tab) to revamp both our brand and our website. One of the key features that led us to choosing Beinc was that they were able to deliver a redesigned site using Astro 5, a modern framework for building fast, interactive websites. We didn’t want a locked down WordPress site; we wanted something flexible, performant, and capable of handling the interactive data visualizations we want to build for our clients.

Why Astro?

Our previous site used Hugo, which made it simple to write and publish content in Markdown. We wanted to keep that simplicity while giving the site a more modern web experience. Astro lets us use Markdown for regular content and add interactive components where they make the experience better, without turning the whole site into a JavaScript application.

  • Markdown-first publishing: Keep writing articles in a straightforward, familiar format.
  • Fast pages: Build a responsive site that delivers only the code each page needs.
  • Interaction where it helps: Add components for maps, visualisations, and other experiences without requiring them for ordinary content.
  • Room to choose the right tools: Use libraries such as deck.gl and MapLibre GL for interactive transport visualisations.

The DesireLine Component

To showcase what’s now possible, I’ve built an interactive OD (Origin-Destination) flow visualizer using deck.gl and MapLibre GL. It demonstrates Sydney’s synthetic transport demand with:

  • Desire lines (arcs): Color-coded flows between zones
    • Navy = Work trips
    • Steel = Education trips
    • Orange = Leisure trips
  • Interactive filtering: Select one trip purpose at a time and adjust volume thresholds
  • Live statistics: See trip volumes and arc counts update in real time
  • Responsive panning and zooming: Explore the map while the visualization stays in sync

The visualization

The interactive map at the end of this post uses a realistic trip demand pattern across Sydney’s major zones, generated using a gravity model that reflects how people travel based on distance and zone attractiveness.

You can:

  • Choose a trip purpose using the selector
  • Adjust the minimum volume with the slider
  • Pan and zoom the map to explore different areas
  • Hover over arcs to see detailed trip information

What’s Next

This is just the beginning. With Astro’s architecture, we can:

  • Add more transport modes and scenarios
  • Integrate with real OD matrices and transit networks
  • Build scenario comparison tools
  • Create network analysis dashboards

Stay tuned as we continue building interactive tools for transport planning and analysis.

Trip purpose
Min volume
20% of peak

Related thoughts

  • Test Driven Development (now with AI)

    When I started writing software professionally, one of the most compelling practices I encountered was pair programming combined with test-driven development (TDD).

    Jamie Cook, PhD5 min read
  • Errors: Making them less intimidating

    Recently I've had the opportunity to work on a number of projects that aim to put the advanced power of Python into the hands of modelling practitioners.

    Jamie Cook, PhD2 min read
  • AequilibraE Performance Wins

    As part of a wider effort to improve the overall performance of the AequilibraE transport modelling package, we have recently identified that the current performance of the traffic assignment module lags other general purpose path finding libraries.

    Jamie Cook, PhD2 min read

Get in touch

Talk to the right person

Questions about this post, or a project like it? Email the team and we will connect you with the author or the right lead.