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

delightloop-spreadsheet-wasm

v0.1.0

Published

High-performance spreadsheet engine compiled to WebAssembly

Readme

@delightloop/spreadsheet-wasm

High-performance spreadsheet engine compiled to WebAssembly using Rust.

Features

  • High-Performance CSV Parsing: Parse large CSV files efficiently
  • Multi-Column Sorting: Stable sort with multiple columns support
  • Advanced Filtering: Text, number, date, and enum filters
  • Global Search: Fuzzy matching across all cells
  • Data Validation: Email, phone, URL, LinkedIn validation
  • Aggregations: Count, sum, avg, min, max, unique operations

Installation

npm install @delightloop/spreadsheet-wasm
# or
pnpm add @delightloop/spreadsheet-wasm

Usage

import init, { SpreadsheetEngine } from '@delightloop/spreadsheet-wasm';

// Initialize WASM
await init();

// Create engine instance
const engine = new SpreadsheetEngine();

// Load CSV data
const response = await fetch('/data.csv');
const bytes = new Uint8Array(await response.arrayBuffer());
const result = engine.load_csv(bytes);

if (result.success) {
  console.log(`Loaded ${result.rowCount} rows with ${result.columnCount} columns`);
}

// Get rows (paginated)
const rows = engine.get_rows(0, 100);

// Sort by column
engine.sort([
  { columnId: 'col1', direction: 'asc' },
  { columnId: 'col2', direction: 'desc' },
]);

// Filter rows
engine.filter([
  { columnId: 'col1', operator: 'contains', value: 'search term' },
]);

// Search across all columns
engine.search('query');

// Update cell
const validation = engine.update_cell('row-id', 'email', '[email protected]');
if (validation.valid) {
  console.log('Cell updated successfully');
}

// Export to CSV
const csvBytes = engine.export_csv();

API Reference

SpreadsheetEngine

Constructor

const engine = new SpreadsheetEngine();

CSV Operations

  • load_csv(bytes: Uint8Array): CsvParseResult - Parse CSV data
  • export_csv(): Uint8Array - Export data as CSV

Data Operations

  • set_data(rows: Row[]) - Set all rows
  • set_columns(columns: ColumnConfig[]) - Set column configuration
  • get_rows(start: number, count: number): Row[] - Get paginated rows
  • get_row(rowId: string): Row | null - Get single row
  • get_columns(): ColumnConfig[] - Get all columns
  • update_cell(rowId: string, colKey: string, value: any): ValidationResult
  • add_row(row: Row): string - Add row and return ID
  • delete_rows(rowIds: string[]) - Delete multiple rows
  • duplicate_rows(rowIds: string[]): string[] - Duplicate rows

Column Operations

  • add_column(config: ColumnConfig): string - Add column
  • update_column(colId: string, config: ColumnConfig) - Update column
  • delete_column(colId: string) - Delete column
  • reorder_columns(colIds: string[]) - Reorder columns

Sort/Filter/Search

  • sort(configs: SortConfig[]) - Apply sort
  • filter(configs: FilterConfig[]) - Apply filters
  • search(query: string) - Global search
  • clear_filters() - Clear all filters, sorts, and search

Validation

  • validate_cell(value: any, dataType: string): ValidationResult

Aggregations

  • aggregate(colKey: string, op: string): AggregationResult
  • get_unique_values(colKey: string): any[]

State

  • get_total_rows(): number - Total row count
  • get_visible_rows(): number - Visible row count (after filter)

Building from Source

Prerequisites

  • Rust (latest stable)
  • wasm-pack (cargo install wasm-pack)

Build

# Build WASM
wasm-pack build --target web --release

# Run tests
cargo test

License

MIT