Aman Bhargava Bangalore India Data Visualization Designer & Developer aman@diagramchasing.fun
Aug 21, 2025 Note

Rebuilding the site gives me a chance to get things done better. I wanted to add a small sparklines section for the various micronotes I’ll be adding, like the one Aaron Parecki has on his site, and my initial attempt was the tried and tested way I was using for everything else: go through the files and folder structure at build time, count files and parse dates and create a json data structure with the summary (how many bookmarks, notes, etc.). This is fine for a couple of hundred files but the build and processing time will probably grow linearly with it too. I want to keep this lean.

Since I’m already using a server which is hosting getindiekit.org, I thought of making it work within that set-up. IndieKit uses MongoDB for some state-management (files and actual content are stored in my repo), and it provides a very nice way to add more endpoints/routes for whatever you want: https://getindiekit.com/api/add-endpoint

I got Claude to write a small script that would access the DB, create the summary data and return it on a stats endpoint. Problem solved.