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

@ai-path/tb-io

v0.3.0

Published

Import/export for Taible: CSV/TSV parsing & serialization, clipboard (TSV + HTML) interop, and dependency-free XLSX (OOXML) export.

Readme

@ai-path/tb-io

Import/export and clipboard interop for Taible, with no runtime dependencies. It includes an RFC 4180 delimited-text (CSV/TSV) codec, clipboard text/HTML helpers, and a from-scratch XLSX reader and writer (built on an embedded ZIP/deflate implementation). Everything operates on plain string/value matrices so it stays decoupled from the grid models.

Install

pnpm add @ai-path/tb-io

API overview

CSV / TSV

parseDelimited / serializeDelimited follow RFC 4180 quoting; parseTsv / serializeTsv are tab-delimited shortcuts.

import { parseDelimited, serializeDelimited, parseTsv } from '@ai-path/tb-io';

const rows = parseDelimited('name,age\n"Doe, J",42'); // [['name','age'],['Doe, J','42']]
const csv = serializeDelimited(rows);                  // back to a CSV string
const tsv = parseTsv('a\tb\nc\td');

DelimitedOptions lets you override the delimiter and quote characters.

Clipboard

import { toClipboardText, toClipboardHtml, parseClipboard } from '@ai-path/tb-io';

const text = toClipboardText([['a', 'b'], ['c', 'd']]); // TSV for the clipboard
const html = toClipboardHtml([['a', 'b']]);             // an HTML <table>
const matrix = parseClipboard({ text, html });          // prefers HTML when present

XLSX write

Build a workbook from cell matrices (XlsxCell = string | number | boolean | null).

import { writeXlsx, matrixToXlsx, type XlsxWorkbook } from '@ai-path/tb-io';

const bytes = matrixToXlsx([['Name', 'Qty'], ['Widget', 3]], 'Sheet1');

const workbook: XlsxWorkbook = {
  sheets: [{ name: 'Data', rows: [['a', 1], ['b', 2]] }],
};
const wbBytes = writeXlsx(workbook); // Uint8Array

XLSX read

import { readXlsx, type ReadWorkbook } from '@ai-path/tb-io';

const wb: ReadWorkbook = readXlsx(bytes);
wb.sheets[0]?.name;
wb.sheets[0]?.rows; // (string | number | boolean | null)[][]

Low-level building blocks (crc32, buildZip, inflateRaw, parseHtmlTable) are also exported for advanced use.