Coming Across Modal

I attended HackIllinois held on Feb 27th, 2026, where Modal was a sponsor with a dedicated track.

We built **HackBitz,** one autonomous agent per habit you want to track and get better at. We used Modal to deploy Telegram webhooks, cron jobs, a vLLM on a GPU container for inference. A lot learned in the chaotic 36 hours.

How I Dug Into Modal's Frontend

While the hackathon was over, as a frontend engineer I couldn't ignore how performant and smooth the dashboard felt while building our project. I had to know at least some of the recipe behind it.

I kept DevTools open and started navigating across the dashboard.

swr.ts initiated everything

Almost every API call traced back to one file: swr.ts. One file, orchestrating all the polling, revalidation, and deduplication across the entire dashboard.

image.png

Unminified source code

I checked the Sources tab on a hunch, half expecting minified garbage. As the source maps was enabled, I could read the entire client side source code. Found a Chrome extension that downloads the entire codebase with folder structure intact, and that was my week sorted.

Understanding the mental model

Going through the client-side source gave me a pretty good picture of how useSWR was designed to abstract away the complexity.

Alongside it, useInViewport worked together with useSWR to gate API calls to only visible components, which was a really smart pairing.

Observations I found worth noting :