Sitemap

The JavaScript Side Hustle That Runs While I Sleep

4 min readOct 26, 2025

How I built a Chrome Extension + Firebase app that earns passive income by automating affiliate link sharing

Press enter or click to view image in full size
Photo by Juanjo Jaramillo on Unsplash

1. How It All Began

I didn’t set out to make money with JavaScript — I just wanted to automate my own browsing habits.
Every day, I’d open dozens of e-commerce tabs (Amazon, eBay, AliExpress), search for deals, and share them in group chats.

Then it hit me: What if I could automate all of that — and get paid for it?

So I built a JavaScript-based Chrome Extension that:

  • Detects product links I visit
  • Automatically converts them into affiliate links
  • Syncs them with Firebase
  • Shares trending ones to my Telegram group daily

A few hundred users later… it started making me $800+ a month in commissions.

2. The Tools That Made It Work

Here’s what my money-making JS stack looked like:

  • Chrome Extension API → inject JS scripts into browser tabs
  • Firebase Firestore → real-time storage and sync
  • Node.js (Express) → handles API routing and link conversion

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Already have an account? Sign in
Suleman Safdar

Written by Suleman Safdar

Freelancer IT specialist web developer

No responses yet

Write a response