npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@riskidev/grafana-alloy-downloader-node

v1.0.0

Published

An installer/wrapper to download the Grafana Alloy executable based on platform

Readme

Grafana Alloy Downloader (Node)

A utility for downloading and caching a specific version of Grafana Alloy for use in local development and CI environments.

Allows sending data to Grafana Cloud instances that are restricted to Mimir rather than Pushgateway.

Features

  • Version-locked Grafana Alloy to ensure predictable CI behavior.
  • Allows the executable to be cached in CI environments
  • Cross-platform as it automatically determines the appropriate executable to download

Version Mapping

| Release | Grafana Alloy | |----------------|---------------| | 1.0.0 - latest | 1.12.1 |

Supported platforms

  • Linux
    • x64
    • arm64
  • macOS
    • x64
    • arm64
  • Windows
    • x64
    • ia32 (Assumes 64-bit host)

Installation

npm install @riskidev/grafana-alloy-downloader-node

Basic Usage

import GrafanaAlloyDownloader, {getOrSaveToCache} from "@riskidev/grafana-alloy-downloader-node";
import {ChildProcess} from "node:child_process";

const pathToGrafanaAlloyExecutable = await GrafanaAlloyDownloader.getOrSaveToCache();

// child_process.spawn(pathToGrafanaAlloyExecutable);

API

getOrSaveToCache(): Promise<string>

This is the primary method to use. All other methods modify behaviour.

Downloads the relevant Grafana Alloy executable and saves it cache if not already there.

Returns the path to the cached executable.

setVerbose(boolean): void

Enables console output for several steps, including download progress (per percent).

getCacheDirectory(): string

Defaults to {{process.cwd}}/.cache

Returns the path to the cache directory.

setCacheDirectory(string): void

Sets the path to a custom cache directory.

isPlatformSupported(): boolean

Called internally but exposed to prevent an error being thrown if preferred.

Returns true if the current platform is supported.

See Supported platforms for more details.