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

@libraz/formulon-cell

v0.2.0

Published

Spreadsheet UI for the formulon WASM calc engine — extension-based, i18n-aware, theme-tokenized, and desktop-spreadsheet-style.

Readme

@libraz/formulon-cell

npm version license bundle size

Spreadsheet UI for the formulon WASM calc engine — desktop-spreadsheet-style chrome, canvas-rendered grid, extension-based feature composition, runtime i18n.

Install

npm install @libraz/formulon-cell zustand

zustand is a peer dependency. The WASM engine requires a crossOriginIsolated context (COOP: same-origin + COEP: require-corp); without it, formulon-cell falls back to an in-memory stub engine and recalc/xlsx round-trip degrade to no-ops.

See bundler integration for Vite / webpack / esbuild setup notes.

Quick Start

import { Spreadsheet, WorkbookHandle, presets } from '@libraz/formulon-cell';
import '@libraz/formulon-cell/styles.css';

const host = document.getElementById('sheet')!;
const wb = await WorkbookHandle.createDefault();
const sheet = await Spreadsheet.mount(host, {
  workbook: wb,
  features: presets.full(),
  locale: 'en',
});

sheet.i18n.setLocale('ja');     // runtime locale swap
sheet.setTheme('ink');           // dark mode

Presets

| preset | what's in it | |--------|--------------| | presets.minimal() | formula bar, status bar, basic keymap | | presets.standard() | + View toolbar, Quick Analysis, context menu, find/replace, clipboard, format painter | | presets.full() | + format dialog, paste-special, conditional formatting, named ranges, hyperlink dialog, PivotTable creation, validation, autocomplete, hover comments |

Subpath Exports

| Import path | Description | |---|---| | @libraz/formulon-cell | Core: Spreadsheet, WorkbookHandle, presets, extension factories | | @libraz/formulon-cell/extensions | All extension factories (re-export) | | @libraz/formulon-cell/extensions/* | Individual extensions (statusBar, findReplace, contextMenu, …) | | @libraz/formulon-cell/i18n/ja | Japanese locale dictionary | | @libraz/formulon-cell/i18n/en | English locale dictionary | | @libraz/formulon-cell/styles.css | Default styles bundle | | @libraz/formulon-cell/styles/paper.css | Paper (light) theme | | @libraz/formulon-cell/styles/ink.css | Ink (dark) theme | | @libraz/formulon-cell/styles/contrast.css | High-contrast theme | | @libraz/formulon-cell/styles/tokens.css | Theme tokens only |

Key APIs

| API | Description | |-----|-------------| | Spreadsheet.mount(host, opts) | Mount the spreadsheet UI into a DOM element | | WorkbookHandle.createDefault() | Create a workbook backed by the WASM engine (or stub fallback) | | isUsingStub() | Detect whether the stub engine is in use | | presets.{minimal,standard,full}() | Built-in feature presets | | instance.i18n.setLocale(loc) | Swap locale at runtime — no remount | | instance.setTheme(theme) | Swap theme at runtime | | createSessionChart(store, range, options) | Create session column/line chart overlays | | saveSheetView / activateSheetView | Manage session Sheet Views | | listDefinedNames / upsertDefinedName | Headless Name Manager API |

For the complete API reference, see the project README.

Framework Components

| Package | Description | |---------|-------------| | @libraz/formulon-cell-react | <Spreadsheet> React component + hooks + SpreadsheetToolbar ribbon | | @libraz/formulon-cell-vue | <Spreadsheet> Vue component + composables + SpreadsheetToolbar ribbon |

React:

import { SpreadsheetToolbar, type RibbonTab } from '@libraz/formulon-cell-react';
import '@libraz/formulon-cell-react/toolbar.css';

Vue:

<script setup lang="ts">
import { type RibbonTab } from '@libraz/formulon-cell-vue';
import SpreadsheetToolbar from '@libraz/formulon-cell-vue/toolbar.vue';
import '@libraz/formulon-cell-vue/toolbar.css';
</script>

License

Apache License 2.0