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

@vectojs/numera-core

v0.5.0

Published

Pure spreadsheet document, formula, clipboard, and history primitives for the Numera family.

Readme

@vectojs/numera-core

Pure spreadsheet document primitives for the Numera family.

MIT license

@vectojs/numera-core owns spreadsheet state, cell formatting, formula evaluation, clipboard serialization, workbook snapshots, and transactional history. It intentionally has no VectoJS, Canvas, DOM, browser, or MCP dependency, so a website, CLI, skill, or MCP tool can operate on the same document semantics.

It also provides undoable structural row and column insertion/deletion. Structural operations rebuild the sparse document while preserving cell formats and rewrite A1-style formula references (including ranges and absolute markers) so every consumer shares one predictable spreadsheet contract.

Sheet-level row and column metrics use sparse overrides: default-sized axes remain implicit, while resized axes survive snapshots, structural transforms, and transactional undo/redo for use by any rendering or automation adapter.

Range transfer is also a Core document operation. captureRange() records a logically dense but sparsely stored value/format payload, transferRange() tiles it while translating relative A1 references, and SheetHistory.applyCellStates() commits exact raw values and formats as one undoable transaction. Canvas fill handles, internal clipboard actions, CLI, and MCP consumers can therefore share one spreadsheet contract without importing rendering or browser state.

sortRange() produces sparse exact-state writes for a complete selected row range, orders by computed values with stable ties and blanks last, moves exact formats, and translates formulas by their source-to-destination row delta. The result can be committed through SheetHistory.applyCellStates() as one undoable operation by Website, CLI, or MCP adapters.

Supported formulas

The evaluator supports arithmetic, references, ranges, percent, exponentiation, and text concatenation. Built-in functions include SUM, AVG/AVERAGE, MIN, MAX, COUNT, IF, CONCAT, ABS, ROUND, ROUNDUP, ROUNDDOWN, AND, OR, NOT, and IFERROR.

Install

bun add @vectojs/numera-core

Use

import { SheetHistory, SheetModel } from "@vectojs/numera-core";

const sheet = new SheetModel();
const history = new SheetHistory(sheet);
history.apply([{ row: 0, col: 0, raw: "2" }]);
history.apply([{ row: 0, col: 1, raw: "=A1*3" }]);
history.applyStructure({ kind: "insert", axis: "row", index: 0, count: 1 });

sheet.getDisplay(1, 1); // "6", because the formula moved with its row

Verify

bun install
bun run format:check
bun run lint
bun test
bun run build

Release governance

Public API changes start with a Changeset, then the reviewed version bump is published through the repository's exact @vectojs/numera-core@<version> tag workflow. CHANGELOG.md remains the human-readable release record.

License

MIT © 2026 Xuepoo