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

molniya

v0.0.2

Published

A simply typed DataFrame library with zero dependencies that honors your memory.

Downloads

203

Readme


What is Molniya?

Molniya is a DataFrame library built specifically for Bun. It helps you load, transform, and analyze structured data without the complexity of heavy frameworks.

Think Pandas for Python, but designed for TypeScript and Bun from the ground up.

Install

bun add molniya

Quick Start

Simple and clean - operations throw errors when they fail:

import { fromArrays, filter, select } from "molniya";

const df = fromArrays({
  name: ["Alice", "Bob", "Charlie"],
  age: [25, 30, 35],
  city: ["NYC", "LA", "Chicago"],
});

// Throws if error occurs - no Result unwrapping needed
const adults = filter(df, "age", ">=", 30);
const result = select(adults, ["name", "city"]);

console.log(result.toString());

Error handling: Wrap in try/catch when you need to handle errors:

try {
  const df = fromArrays({ ... });
  const filtered = filter(df, "age", ">=", 30);
} catch (error) {
  console.error("Operation failed:", error);
}

Type inference: TypeScript infers schema types automatically:

const df = fromArrays({
  name: ["Alice"], // Type: DataFrame<{ name: "string", age: "float64" }>
  age: [25],
});

Why Molniya?

  1. Schema-first design
    Define your data types once, get type safety and optimizations everywhere.

  2. Built for Bun
    Uses Bun's file I/O and SIMD capabilities. No polyfills, and unfortunately no Node.js compatibility layers.

  3. Zero dependencies
    The entire library has zero runtime dependencies. Install with confidence.

  4. Clean error handling
    Operations throw errors when they fail - simple and predictable. Wrap in try/catch when needed.

LazyFrame for Large Files

For big datasets, use LazyFrame for automatic query optimization:

import { LazyFrame, DType } from "molniya";

const schema = {
  product: DType.String,
  category: DType.String,
  revenue: DType.Float64,
};

const result = await LazyFrame.scanCsv("sales.csv", schema)
  .filter("category", "==", "Electronics") // Pushed down to scan
  .filter("revenue", ">", 1000)
  .select(["product", "revenue"]) // Only load these columns
  .collect(); // Execute optimized plan

LazyFrame analyzes your query and:

  • Predicate pushdown - Filters during CSV parsing
  • Column pruning - Only reads needed columns
  • Query fusion - Combines operations when possible

Real impact: For a 1GB CSV file, this can mean reading only 100MB.

Learn More

New to Molniya?

Ready to build?

Need details?

Community

License

MIT License. See LICENSE for details.