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

@sablier/price-data

v1.0.0-beta.0

Published

Centralized price data repository for Sablier projects

Readme

Sablier Price Data

Centralized repository for cryptocurrency and forex exchange rate data used across Sablier projects.

Overview

This repository serves as a single source of truth for price data shared between multiple Sablier repositories:

By centralizing the data here, we avoid duplication and ensure consistency across projects.

Data Sources

All price data is sourced from industry-standard APIs:

Data Structure

Price data is organized in data/crypto/ (cryptocurrency prices in USD) and data/forex/ (foreign exchange rates).

TSV Format

All files use tab-separated values (TSV) format with the following structure:

id	output
"2025-02-01"	3296.390634843652
"2025-02-02"	3125.0386801320924

We use this data structure to make it easier to use the files in our Envio indexers.

Columns:

  • id: Date in ISO 8601 format (YYYY-MM-DD), wrapped in double quotes
  • output: USD price as a decimal number (high precision)

Notes:

  • Dates are in UTC timezone
  • Dates are sorted chronologically
  • No duplicate dates within a file
  • Prices are daily closing prices (00:00 UTC)

Installation

Install the package via npm:

npm install @sablier/price-data

Or using Bun:

bun add @sablier/price-data

Usage

Package Import

Once installed, you can access the TSV data files from node_modules/@sablier/price-data/data/:

import { readFileSync } from "node:fs";
import { join } from "node:path";

// Read ETH prices
const dataPath = join(process.cwd(), "node_modules", "@sablier/price-data", "data/crypto/ETH_USD.tsv");
const ethPrices = readFileSync(dataPath, "utf-8");

// Parse TSV (skip header)
const lines = ethPrices.split("\n").slice(1);
const prices = lines.map((line) => {
  const [dateQuoted, price] = line.split("\t");
  return {
    date: dateQuoted.replace(/"/g, ""), // Remove quotes
    price: parseFloat(price),
  };
});

Direct File Access

Alternatively, you can read the TSV files directly from this repository without installing the package.

Example: curl:

curl -s https://raw.githubusercontent.com/sablier-labs/price-data/main/data/crypto/ETH_USD.tsv | head -n 10

Example (fetch with Node.js):

const response = await fetch("https://raw.githubusercontent.com/sablier-labs/price-data/main/data/crypto/ETH_USD.tsv");
const ethPrices = await response.text();

// Parse TSV (skip header)
const lines = ethPrices.split("\n").slice(1);
const prices = lines.map((line) => {
  const [dateQuoted, price] = line.split("\t");
  return {
    date: dateQuoted.replace(/"/g, ""), // Remove quotes
    price: parseFloat(price),
  };
});

Git Submodule

For projects that need version-locked data, add this repository as a Git submodule:

git submodule add https://github.com/sablier-labs/price-data.git

Updating Data

TODO