๐Ÿ“Š Send Slack alerts for new npm or PyPI package releases with Apify

โšก 0 views ยท ๐Ÿ“Š Market Research & Insights

๐Ÿ’ก Pro Tip โ€” HTTP Request scraping tends to break when sites update their markup. If youโ€™re scraping a major platform, check if ScraperNode covers it โ€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Quick overview

This workflow checks a list of npm packages every 12 hours using Apifyโ€™s Package Registry Scraper and posts a Slack message only when it detects a new package version.

How it works

  1. Runs every 12 hours on a schedule.
  2. Defines the package registry (npm) and the list of package names to monitor.
  3. Uses Apify (dami_studio~package-registry-scraper actor) to fetch each packageโ€™s current version and metadata such as description, license, repository, URL, and downloads.
  4. Filters out invalid lookups by keeping only results marked as successful.
  5. Suppresses repeat alerts by deduplicating on package name plus version across workflow executions.
  6. Posts a formatted release alert to a selected Slack channel for each newly detected version.

Setup

  1. Add an Apify API token credential to the Apify node and confirm the actor run settings (including the $1 max charge cap) fit your needs.
  2. Add a Slack OAuth2 credential, select the target channel in the Slack node, and ensure the workflow has permission to post messages.
  3. Update the package list (and optionally the registry and includeDownloads flag) in the โ€œPackages to watchโ€ step to match the dependencies you want to track.

๐Ÿ”— Nodes Used

HTTP Request, Slack, Discord, Gmail, Notion, Schedule Trigger

๐Ÿ“ฅ Import

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

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup