Skip to content

Commit fe6b810

Browse files
authored
Merge pull request #805 from CodingCatDev/feat/trend-radar-firebase-aws-cf-priority
feat(trend-radar): prioritize Firebase, AWS, and Cloudflare signals
2 parents b4f9660 + e3799e5 commit fe6b810

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

‎scripts/run-trend-radar.mjs‎

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ const TOPIC_RULES = [
2929
{ tag: { label: "Python", value: "python" }, regex: /\b(python|pydantic|fastapi|pytorch|uv)\b/i, weight: 10 },
3030
{ tag: { label: "PHP", value: "php" }, regex: /\b(php|laravel|wordpress|zend)\b/i, weight: 14 },
3131
{ tag: { label: "Security", value: "security" }, regex: /\b(cve-\d{4}-\d+|vulnerability|rce|zero-day|0-day|auth|oauth|passkey|spicedb|security|exploit)\b/i, weight: 18 },
32-
{ tag: { label: "Firebase", value: "firebase" }, regex: /\b(firebase|firestore|data connect)\b/i, weight: 16 },
32+
{ tag: { label: "Firebase", value: "firebase" }, regex: /\b(firebase|firestore|data connect|genkit|app hosting|firebase studio|crashlytics|fcm|cloud functions for firebase)\b/i, weight: 28 },
33+
{ tag: { label: "AWS", value: "aws" }, regex: /\b(aws|amazon web services|lambda|s3|dynamodb|bedrock|amplify|cloudformation|cdk|ecs|eks|eventbridge|step functions)\b/i, weight: 28 },
34+
{ tag: { label: "Cloudflare", value: "cloudflare" }, regex: /\b(cloudflare|workers|workerd|d1|r2|durable objects|hyperdrive|pages|wrangler|workers ai)\b/i, weight: 28 },
3335
{ tag: { label: "Supabase", value: "supabase" }, regex: /\b(supabase|pgvector|postgres|postgresql)\b/i, weight: 16 },
3436
{ tag: { label: "Sanity", value: "sanity" }, regex: /\b(sanity|groq|headless cms|portable text)\b/i, weight: 18 },
35-
{ tag: { label: "Cloudflare", value: "cloudflare" }, regex: /\b(cloudflare|workers|workerd|d1|r2)\b/i, weight: 16 },
36-
{ tag: { label: "AWS", value: "aws" }, regex: /\b(aws|lambda|s3|dynamodb|bedrock|amplify|cloudformation|cdk)\b/i, weight: 15 },
3737
{ tag: { label: "CSS", value: "css" }, regex: /\b(css|tailwind|tailwindcss|view transitions|anchor positioning)\b/i, weight: 14 },
3838
{ tag: { label: "Docker", value: "docker" }, regex: /\b(docker|kubernetes|k8s|container|linux)\b/i, weight: 10 },
3939
{ tag: { label: "GitHub", value: "github" }, regex: /\b(github|git|open source|oss)\b/i, weight: 10 },
@@ -158,6 +158,16 @@ function parseSimpleRssItems(xmlText) {
158158
async function fetchGoogleTrendsSignals() {
159159
const signals = [];
160160
const feeds = [
161+
{
162+
url: "https://firebase.blog/rss.xml",
163+
label: "Official Firebase Blog Feed",
164+
baseScore: 68,
165+
},
166+
{
167+
url: "https://news.google.com/rss/search?q=(%22Firebase%22+OR+%22Firestore%22+OR+%22Firebase+Genkit%22+OR+%22Firebase+Data+Connect%22+OR+%22AWS+Lambda%22+OR+%22AWS+Bedrock%22+OR+%22AWS+Amplify%22+OR+%22Cloudflare+Workers%22+OR+%22Cloudflare+D1%22)+when:3d&hl=en-US&gl=US&ceid=US:en",
168+
label: "Firebase, AWS & Cloudflare Priority Trend Radar (72h)",
169+
baseScore: 65,
170+
},
161171
{
162172
url: "https://trends.google.com/trending/rss?geo=US",
163173
label: "Google Trends US Realtime",
@@ -274,7 +284,7 @@ async function fetchGitHubTrendingSignals() {
274284
// 4. Fetch Reddit Developer Subreddits (r/webdev, r/nextjs, r/reactjs, r/LocalLLaMA, r/sveltejs)
275285
async function fetchRedditSignals() {
276286
const signals = [];
277-
const subreddits = ["webdev", "nextjs", "reactjs", "LocalLLaMA", "sveltejs"];
287+
const subreddits = ["Firebase", "aws", "Cloudflare", "webdev", "nextjs", "reactjs", "LocalLLaMA", "sveltejs"];
278288
for (const sub of subreddits) {
279289
try {
280290
const res = await fetch(`https://www.reddit.com/r/${sub}/hot.json?limit=12`, {

0 commit comments

Comments
 (0)