Post

What Else Could I Build? Developing Radiant with ChatGPT and GitHub

How working on a community radio application with ChatGPT got me thinking about other things I could build.

What Else Could I Build? Developing Radiant with ChatGPT and GitHub

I’ve been working with KAAD-LP 103.5 FM, a small community radio station in Sonora, California, and have spent a good part of this year working on its technology. Much of the early work had to do with keeping the internet stream on the air. More recently I’ve been working on an application called Radiant to handle some of the administrative side of running the station, things like programming schedules, logging what played, and getting information onto the station’s website.

I’ve done a considerable amount of the development using ChatGPT, and the experience has been a lot more interesting than I anticipated.

Working on an application through ChatGPT

I’ve used ChatGPT to help me write scripts, but until working on Radiant I hadn’t really explored the extent to which I could use its GitHub integration to develop and maintain an application.

GitHub is where I store the code for Radiant. ChatGPT can go in and read the code, work on a change, and open a pull request (basically a proposed change to the project). I can review what it’s done before merging it. In my case, merging the change can also update the application running on my server.

To give you an idea of how I’ve been using this, I recently sent ChatGPT a screenshot of the user management page. There were some things about the page that bothered me. Why have two separate lists for users and invitations? Why not just put a little “pending” label next to the email address of someone who hasn’t accepted their invitation yet? I also wanted a way to delete and resend invites and reset passwords.

There were changes that needed to be made to both the interface and the backend to accomplish all of that, but I could work through the design of the page conversationally.

What’s neat is that I can do this repeatedly on the same application. If I use it for a few days and find something annoying about it, I can go back and work on that specific thing.

How I got here

In February I wrote about moving the station’s internet stream from Winamp to Liquidsoap. Liquidsoap is software for processing and routing audio; in our case it sends the station’s audio to Icecast, which serves the stream to people listening online.

Prior to that, the stream ran off a computer that the DJs also used. I had resorted to putting notes on the monitor to keep people from inadvertently knocking us off the air. Eventually we got a little dedicated Linux machine and I was able to take that whole process away from the DJ workstation.

Once I had that machine running, there were quite a few other things I wanted to do with it. One was to automate the song information sent to Icecast. I could also see some potential for doing more with the programming information on the website. Radiant is an outgrowth of some of those ideas.

I’m finding that the further I get into this project, the more ideas I have. For instance, if I’m already putting the schedule into an application, surely I should be able to use that same information to show listeners what’s currently on the air. And if I’m keeping track of the shows that aired, there ought to be some useful reporting I can do with that information.

There are plenty of things like this at work, too, where I’ve made do with a spreadsheet or some combination of tools because that’s what I had available. I’ve been thinking about some of those problems a little differently lately.

Working through the problems

The conversations about how to implement something can be interesting in their own right.

I recently wanted to move all of the workflows for managing my server out of Radiant’s public GitHub repository. We initially set up a separate repository that would periodically check the Radiant repository for changes and then update the server.

As I was trying to figure out where I could see the scheduled checks in GitHub, it occurred to me that this was a rather roundabout way of doing things. GitHub already knows when I’ve made a change to Radiant. Why couldn’t it just notify the other repository when that happens?

Anyway, that’s how I have it set up now. I wrote up the deployment configuration here for anyone interested in doing something similar.

The schedule has been another interesting one to work through. We have shows that air on the first and third weekends of the month and others that air on the second and fourth. It’s tempting to think of those as shows that air every other week, but what happens in a month with five Saturdays? I needed to be fairly specific about that before making changes to the scheduling code, particularly since I already had a schedule in use that I didn’t want to mess up.

There is still a good bit of work involved in reviewing changes and testing things. I’ve had to go back and fix things that didn’t work as expected, and I try to distinguish between a successful deployment and a successful change to the application. The fact that I can load the page doesn’t tell me much about whether the scheduling logic is correct.

What else?

One of the things I’ve enjoyed about this is that I can explore an idea without committing a whole lot of time to it up front. If I’ve got an idea for a feature, I can talk through it, look at what’s involved in implementing it, and decide whether it’s worth pursuing.

I’ve even started using the GitHub integration to work on this blog.

I originally wanted to make a few things easier at the radio station. Now I’m finding myself looking around at all sorts of other things I might be able to do with a little self-hosted application. I have no shortage of ideas for things to run on the Linux server at home, either.

This could be a very dangerous development for my spare time.

This post is licensed under CC BY 4.0 by the author.