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

@dcyfr/ai-notebooks

v1.0.1

Published

Data science notebook toolkit with TypeScript tooling for Jupyter notebook management, data pipelines, and visualization

Readme

@dcyfr/ai-notebooks

Data science notebook toolkit for TypeScript — create, execute, and analyze computational notebooks with built-in data pipeline and visualization support.

Features

  • Notebook Engine — Create, manage, and execute computational notebooks with cells, outputs, and metadata
  • Data Pipeline — Build multi-step ETL pipelines with transforms, aggregation, joins, and validation
  • Statistics — Descriptive statistics, correlation analysis, quantiles, and frequency counts
  • Visualization — Chart specification builders and text-based renderers (bar charts, tables, sparklines)
  • Data Utilities — CSV parsing, dataset operations, data validation with composable rules
  • Type-Safe — Full TypeScript support with Zod schema validation

Quick Start

npm install @dcyfr/ai-notebooks

Create and Execute a Notebook

import {
  createNotebook,
  addCell,
  codeCell,
  markdownCell,
  executeNotebook,
  getExecutionSummary,
} from '@dcyfr/ai-notebooks';

// Create a notebook
let nb = createNotebook({ title: 'My Analysis' });
nb = addCell(nb, markdownCell('# Hello World'));
nb = addCell(nb, codeCell('const x = 42;\nconsole.log(x);'));

// Execute
const { result } = await executeNotebook(nb);
const summary = getExecutionSummary(result);
console.log(`Completed: ${summary.completed}/${summary.total}`);

Data Analysis

import {
  createDataset,
  describe,
  sortBy,
  head,
  renderDatasetTable,
  renderStatsTable,
} from '@dcyfr/ai-notebooks';

const data = createDataset([
  { name: 'Alice', score: 92.5 },
  { name: 'Bob', score: 88.0 },
  { name: 'Charlie', score: 95.3 },
], 'students');

// Descriptive statistics
console.log(renderStatsTable(describe(data)));

// Top performers
console.log(renderDatasetTable(head(sortBy(data, 'score', false))));

Data Pipelines

import { createPipeline, filterRows, normalize, aggregate } from '@dcyfr/ai-notebooks';
import type { Dataset } from '@dcyfr/ai-notebooks';

const pipeline = createPipeline<Dataset>('my-pipeline')
  .step('filter', async (data) => filterRows(data, (r) => r.active === true))
  .step('normalize', async (data) => normalize(data, 'score'))
  .step('aggregate', async (data) =>
    aggregate(data, 'category', {
      avg_score: { column: 'score', fn: 'avg' },
      count: { column: 'score', fn: 'count' },
    })
  );

const { result, output } = await pipeline.run(dataset);
console.log(`Status: ${result.status}, Steps: ${result.steps.length}`);

Visualization

import { barChart, renderBarChart, sparkline } from '@dcyfr/ai-notebooks';

const chart = barChart('Sales', ['Q1', 'Q2', 'Q3', 'Q4'], [120, 150, 180, 200]);
console.log(renderBarChart(chart));

console.log('Trend:', sparkline([120, 150, 180, 200]));

Module Structure

| Module | Import Path | Description | |--------|------------|-------------| | Notebook | @dcyfr/ai-notebooks/notebook | Cell/notebook CRUD, execution engine | | Pipeline | @dcyfr/ai-notebooks/pipeline | Dataset ops, transforms, statistics, ETL | | Visualization | @dcyfr/ai-notebooks/visualization | Charts, tables, themes, formatters | | Utils | @dcyfr/ai-notebooks/utils | CSV, formatting, validation |

Examples

# Data exploration
npx tsx examples/data-exploration/index.ts

# Data pipeline
npx tsx examples/data-pipeline/index.ts

# Model analysis
npx tsx examples/model-analysis/index.ts

Development

npm install
npm run test          # Run tests
npm run test:watch    # Watch mode
npm run test:coverage # Coverage report
npm run build         # Build
npm run typecheck     # Type check

License

MIT — See LICENSE for details.