Skip to content

Every 12 hours

Get Slack and Discord alerts for new npm package releases

When a package you depend on publishes a new version, the release is posted to your Slack and Discord channels.

Runs
Every 12 hours
Apps
Discord, Slack
AI
Not needed
Access
Slack chat:write; Discord Send Messages

Send this to your assistant

Create a ClickRuntime automation: every 12 hours, check these npm packages for new versions and post any release to Slack and Discord.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

A development team relies on a dozen open-source packages for its product. Security fixes and breaking changes are announced in release notes nobody has time to watch. The team finds out about an important patch weeks later, often from an audit warning or a bug report, and has to upgrade in a hurry.

This automation checks the packages you care about twice a day and posts each new release to Slack and Discord, so upgrades are planned when releases happen instead of discovered late.

What you get out of it

  • Security fixes are not missed

    A patch release shows up in your channels within hours. You can decide quickly whether to upgrade. That narrows the window where you run a known-vulnerable version.

  • Breaking changes are seen early

    Major versions are announced as soon as they appear. The team can read the notes and plan the upgrade into a sprint. Surprise breakages at install time become rare.

  • Only real changes are posted

    A message is sent only when a version number changes, never as a twice-daily status report. Channels stay quiet when nothing happened. Each alert is worth reading.

  • Both chats stay informed

    Staff in Slack and contributors or contractors in Discord see the same release at the same time. Nobody has to relay the news. Everyone discusses the upgrade with the same information.

  • A short list you control

    You choose exactly which packages matter, usually the few with the biggest impact on your product. The list is easy to change. It grows with your project.

How it works

What happens, step by step

  1. Every 12 hours, ClickRuntime looks up the latest published version of each package on your list.

  2. It compares each version with the one it saw last time.

  3. When a package has a new version, a message with the package name, version and link is posted to your Slack and Discord channels.

  4. The new version is remembered, so each release is only announced once.

Before it runs live

  • Connect Discord
  • Connect Slack, then invite the app to the channel (type /invite @ClickRuntime there)

What you get

RunsEvery 12 hours
Get Slack and Discord alerts for new npm package releasestoday, 9:00Succeeded
Slack · #releasesNew release: express 5.1.0 -> 5.2.0 https://www.npmjs.com/package/express

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Run it at a different time, more or less often, or only on weekdays
  • Add an AI step, for example to summarize, sort or draft a reply
  • Add another app, for example also send it to Google Sheets
  • Combine it with other Discord and Slack steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
watch_an_external_feed_and_alert_slack_and_discord.pyexample
from slack_sdk import WebClient
from clickruntime import on_trigger, state_initializer, credentials, http, state, report_fetched

PACKAGES = ["react", "next", "express"]
DISCORD_CHANNEL_ID = "your-discord-channel-id"

def latest_versions():
    return {p: http.get(f"https://registry.npmjs.org/{p}/latest").json()["version"] for p in PACKAGES}

@state_initializer
def init():
    state.set("versions", latest_versions())

@on_trigger
def run(event):
    known = state.get("versions") or {}
    latest = latest_versions()
    changed = [p for p, v in latest.items() if known.get(p) != v]
    report_fetched(len(changed))
    if not changed:
        return {"summary": "No new releases"}
    text = "\n".join(f"New release: {p} {known.get(p, 'new')} -> {latest[p]} https://www.npmjs.com/package/{p}" for p in changed)
    WebClient(token=credentials.connection("slack", "work")).chat_postMessage(channel="#releases", text=text)
    http.post(f"https://discord.com/api/v10/channels/{DISCORD_CHANNEL_ID}/messages",
              headers={"Authorization": f"Bot {credentials.secret('DISCORD_BOT_TOKEN')}"}, json={"content": text[:2000]})
    state.set("versions", latest)
    return {"summary": f"{len(changed)} new releases"}

FAQ

Common questions

Can it watch packages other than npm?
Yes. Any registry or project with a public version feed works the same way, such as PyPI packages or GitHub releases.
Does it post pre-release versions?
No, only the version marked as latest is checked. Beta and release candidate tags can be included if you want early warning.
What happens the first time it runs?
It records the current version of each package without posting, so you are not flooded with old releases. From then on only new versions are posted.
What permissions does it need?
Slack chat:write; Discord Send Messages. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it runs (every 12 hours). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Get Slack and Discord alerts for new npm package releases” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.