Building a YouTube Summary Chrome Extension — II

Pranav Tiwari
2 min readFeb 3, 2024

--

Day 34 / 366

This is a continuation of the blog I wrote yesterday, you can read it here —

To recap quickly, I have the front end ready, and I had to create the backend with a REST API that gave me the summary of the video.

I could have used Django for this since that’s my core expertise, but I try and use tech I don’t know for hobby projects like this one. I have always wanted to try FastAPI, and it felt like the perfect fit since I needed a lightweight API and no Database connections.

So I build the API using FastAPI. It was quite quick and took less than 50 lines of code.

Now to deploy this, I used Render. This was new for me as well, as so far I had just deployed my Django apps on simple Linux servers like ec2. Render came with a nice CI-CD solution, and I could push changes to the APIs just by pushing commits to my Git repo.

So the API was done and deployed. The next step was just calling the API when the summarize button was clicked.

And with this, the Chrome Extension was finally working!

You can check the demo in this video -

This worked well, and it's a bit rough around the edges but definitely usable. The next step would be to see how I can add it to the extension store so that I can share it with others as well.

--

--

Pranav Tiwari
Pranav Tiwari

Written by Pranav Tiwari

I write about life, happiness, work, mental health, and anything else that’s bothering me

No responses yet