πŸ“Š Analyze npm packages with Firecrawl, GitHub, npm APIs, Gemini and GPT

⚑ 69 views Β· πŸ“Š Market Research & Insights

πŸ’‘ Pro Tip β€” If you need GitHub data beyond what the REST API gives you, ScraperNode has a repository scraper that extracts metadata at scale without token rate limits.

View All Scrapers

Description

This workflow analyzes any npm package and delivers a data-driven recommendation using Firecrawl + APIs + AI reasoning.

πŸ”₯ Why Firecrawl is Important Here

At the core of this workflow is Firecrawl, which is used to:

β€’ Discover accurate npm package URLs dynamically β€’ Identify the correct GitHub repository (even for tricky packages) β€’ Enable AI agent to search & validate package context β€’ Provide a fallback when direct API mapping is not straightforward

πŸ‘‰ Instead of hardcoding URLs, Firecrawl makes this workflow fully dynamic and scalable.

πŸ” What it does

This workflow:

β€’ Accepts a package name via form β€’ Uses Firecrawl Search to find npm + GitHub sources β€’ Extracts clean URLs using logic layer β€’ Fetches real-time data using APIs (GitHub + npm) β€’ Calculates health metrics (activity, issue ratio) β€’ Uses AI to generate insights + recommendations β€’ Sends a clean Slack-ready report

βš™οΈ How it works (High-level)

β€’ User submits package name β€’ Firecrawl searches npm & GitHub (dynamic discovery layer) β€’ Code node extracts clean, usable URLs β€’ GitHub API β†’ stars, issues, license β€’ GitHub API β†’ last commit activity β€’ npm API β†’ weekly downloads β€’ Metrics calculated (health signals) β€’ AI Agent analyzes + recommends β€’ Slack message sent

🧠 Key Capabilities

β€’ Firecrawl-powered dynamic URL discovery (no hardcoding) β€’ Real-time package evaluation using APIs β€’ AI-powered reasoning (not just raw data) β€’ Risk scoring (Low / Medium / High) β€’ Handles invalid or missing packages gracefully β€’ Produces structured + human-readable output

⚠️ Error Handling

β€’ Firecrawl ensures fallback discovery for URLs β€’ API failures β†’ handled using β€œcontinue on fail” β€’ Missing package β†’ fallback response with suggestions β€’ Partial data β†’ marked as β€œunknown” β€’ URL detection failures β†’ fallback to default npm URL

πŸ“¦ Requirements

β€’ Firecrawl API key ⭐ (core component) β€’ GitHub OAuth credential β€’ Google Gemini API key β€’ Slack credential (optional for output)

πŸ’‘ Example Use Cases

β€’ Package evaluation before production use β€’ Comparing npm alternatives β€’ Developer productivity tooling β€’ Automated tech due diligence

🎯 Output

β€’ Structured JSON (for automation) β€’ Slack-ready formatted report (for humans)

πŸ”— Nodes Used

GitHub, HTTP Request, Slack, AI Agent, OpenAI Chat Model, Structured Output Parser

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup