trend-watcher
Trend-Watcher /project/trend-watcher The Story I started Trend-Watcher as a random fun project, mostly just to figure out what niches are actually trending in Indonesia right now. Google Trends just doesn't quite cut it
Read raw project notes
Trend-Watcher
/project/trend-watcher
The Story
I started Trend-Watcher as a random fun project, mostly just to figure out what niches are actually trending in Indonesia right now. Google Trends just doesn't quite cut it for this; the data doesn't feel like it truly represents what's happening on the ground. The idea was to build something similar to my daily news digest cron job, but with a much better quality of news and trend insights. I have this special API that can search across X/Twitter, Reddit, Instagram, and TikTok data, which is fantastic for getting a real pulse on things. The catch? It comes with a credit limit, so I mostly just tested out its capabilities to see what was possible. It sucks that X is charging for their API to keep it going, but honestly, it's reasonable given the value. So yeah, the core problem I wanted to solve was simply to know what people are doing and interested in right now. That's it. This project definitely has potential, but I need more time to develop it further.
The hardest part by far, and totally unexpected, was trying to get a Meta Ads Library API key. It requires an app review and a business review, which I don't even have – yet. That was a significant roadblock to integrating all the data sources I initially envisioned. But despite that hurdle, there's a real win here: while Google can give you some answers about what's trending, they don't have direct access to X/Twitter data. My pipeline does, and that's huge. X is massive, and people use it to get updates on literally everything, so tapping into that feed is a major advantage for understanding what's truly buzzing.
Features
- Scans global trends from YouTube and RSS feeds (
collect_trends). - Collects social media data from X/Twitter, Reddit, Instagram, and TikTok via the Xpoz API (
collect_social). - Gathers Meta Ads data using the Meta Graph API (
collect_meta_ads). - Synthesizes actionable niche opportunities from collected data using AI, specifically OpenCode Zen (
synthesize). - Provides an automated market intelligence pipeline for continuous trend monitoring.
Technical Specs
Trend-Watcher is a JavaScript application built on a modern TypeScript stack, utilizing tsx for execution. It integrates several external services through a series of API connections: YOUTUBE_API_KEY for trend collection, XPOZ_API_KEY for social media data (X/Twitter, Reddit, Instagram, TikTok), OPENCODE_ZEN_API_KEY for AI-driven synthesis, and META_ACCESS_TOKEN for Meta Ads data via the Meta Graph API. Core dependencies include @xpoz/xpoz for social data, openai for AI interactions, fast-xml-parser for RSS feed processing, and node-fetch for HTTP requests. The pipeline sequentially collects YouTube and RSS trends, then social media insights, attempts to fetch Meta Ads data, and finally processes all aggregated information using AI to identify niche opportunities.
Most Interesting Code
async function collectTrends(rssFeedUrl, youtubeApiKey) { const rssResponse = await fetch(rssFeedUrl); const rssText = await rssResponse.text(); const parser = new XMLParser(); const rssData = parser.parse(rssText); // ... more collection logic for YouTube ... return { rss: rssData, youtube: {} }; }
This collectTrends function stands out as it forms the initial data ingestion step, elegantly combining node-fetch for external API calls and fast-xml-parser to efficiently process and structure diverse RSS feed data. It exemplifies the project's foundation in gathering raw trend information from multiple disparate sources.
Changelog
- v1.0 — 2026-06-15 — Initial documentation generated.