Skip to main content

Analyze npm packages with Firecrawl, GitHub, npm APIs, Gemini and GPT

Workflow preview

Workflow preview
100%
Analyze npm packages with Firecrawl, GitHub, npm APIs, Gemini and GPT preview
Open on n8n.io

1. Workflow Overview

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

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.set, @mendable/n8n-nodes-firecrawl.firecrawltool, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.lmchatopenai, n8n-nodes-base.formtrigger, @mendable/n8n-nodes-firecrawl.firecrawl, n8n-nodes-base.merge

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Divyanshu Gupta.

Original n8n.io source

1.1 Workflow description

Title
Analyze npm packages with Firecrawl, GitHub, npm APIs, Gemini and GPT
Workflow name
Analyze npm packages with Firecrawl, GitHub, npm APIs, Gemini and GPT

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)

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Google Gemini Chat Model1

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 2 - Commit deatils

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 3 - Github details

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 4 - /search in Firecrawl

Type / Role
@mendable/n8n-nodes-firecrawl.firecrawlTool - firecrawlTool
Config choices
Version 1

Block 5 - /scrape in Firecrawl

Type / Role
@mendable/n8n-nodes-firecrawl.firecrawlTool - firecrawlTool
Config choices
Version 1

Block 6 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 8 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 9 - Enter Package Name

Type / Role
n8n-nodes-base.formTrigger - formTrigger
Config choices
Version 2.5

Block 10 - Normalize Input

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 11 - Search NPM URL

Type / Role
@mendable/n8n-nodes-firecrawl.firecrawl - firecrawl
Config choices
Version 1

Block 12 - Search GitHub Repo

Type / Role
@mendable/n8n-nodes-firecrawl.firecrawl - firecrawl
Config choices
Version 1

Block 13 - Merge Search Results

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 14 - Extract Clean URLs

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Fetch GitHub Stats

Type / Role
n8n-nodes-base.github - github
Config choices
Version 1.1

Block 16 - Fetch Last Commit

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 17 - Fetch NPM Downloads

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.4

Block 18 - Merge All Metrics

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 19 - Compute Health Metrics

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 20 - Check Package Valid

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Block 21 - Package Not Found Handler

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 22 - AI Analysis Engine

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 23 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 24 - Send Slack Report

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.4

Showing the first 24 of 31 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Analyze npm packages with Firecrawl, GitHub, npm APIs, Gemini and GPT
Complexity advanced
Nodes 31
Categories Market Research, AI Summarization
Author Divyanshu Gupta
Published 08 Apr 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14911/14911.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Analyze npm packages with Firecrawl, GitHub, npm APIs, Gemini and GPT do?

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

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.