Skip to main content

Track npm package downloads with Telegram commands and reports

Workflow preview

Workflow preview
100%
Track npm package downloads with Telegram commands and reports preview
Open on n8n.io

1. Workflow Overview

Title Monitor npm package downloads from Telegram with commands, weekly digests, milestone alerts,... Short description Track npm package adoption directly from Telegram. This workflow provides on ...

Best for

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

Tools used

n8n-nodes-base.switch, n8n-nodes-base.scheduletrigger, n8n-nodes-base.code, n8n-nodes-base.if, n8n-nodes-base.telegram, n8n-nodes-base.telegramtrigger, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Monfort N. Brian | 宁俊.

Original n8n.io source

1.1 Workflow description

Title
Track npm package downloads with Telegram commands and reports
Workflow name
Track npm package downloads with Telegram commands and reports

Title

Monitor npm package downloads from Telegram with commands, weekly digests, milestone alerts,...

Short description

Track npm package adoption directly from Telegram. This workflow provides on-demand download stats, automated weekly and monthly reports, growth trends, and milestone alerts using the public npm Downloads API.

What it does

The workflow combines Telegram commands with scheduled reports to provide quick insights into package usage.

Commands

  • /downloads - all-time totals, sorted highest first
  • /weekly - last 7 days per package
  • /status - weekly and all-time combined
  • /trending - this week vs last week
  • /help - available commands

Automated reports

  • Weekly digest with package performance
  • Monthly summary comparing usage trends
  • Daily milestone checker that sends alerts when packages cross download thresholds

Smart defaults:

  • Typo-tolerant command matching via Levenshtein distance
  • Slash optional, case insensitive
  • Auto-discovers packages from npm registry - new packages appear without code changes
  • Milestone check is silent on days with no crossings - zero noise

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 - Switch Command

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

Block 2 - 1st of Month 6PM

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 3 - Fetch Trending

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

Block 4 - Fetch Monthly Digest

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

Block 5 - Check Milestones

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

Block 6 - Has Milestones?

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

Block 7 - Send Trending

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 8 - Send Weekly Digest

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 9 - Send Monthly Digest

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 10 - Send Milestone Alert

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 11 - Send Downloads

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 12 - Send Weekly

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 13 - Send Status

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 14 - Send Help

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 15 - Send Unknown

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 16 - Fetch All-Time Downloads

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

Block 17 - Fetch Weekly Downloads

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

Block 18 - Fetch Status

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

Block 19 - Help Message

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

Block 20 - Unknown Command

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

Block 21 - Parse Command

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

Block 22 - Every Friday 6PM

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 23 - Milestone (daily check 9AM)

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 24 - Fetch Weekly Digest

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

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

3. Summary Table

Workflow Track npm package downloads with Telegram commands and reports
Complexity advanced
Nodes 29
Categories Market Research, AI Chatbot
Author Monfort N. Brian | 宁俊
Published 08 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13945/13945.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 Track npm package downloads with Telegram commands and reports do?

Title Monitor npm package downloads from Telegram with commands, weekly digests, milestone alerts,... Short description Track npm package adoption directly from Telegram. This workflow provides on ...

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 Chatbot use case.