π 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.
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