Member-only story
The JavaScript Side Hustle That Runs While I Sleep
How I built a Chrome Extension + Firebase app that earns passive income by automating affiliate link sharing
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