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

@trevixal/extension-table

v1.0.5

Published

Tables for the Trevixal editor: insert, row/column editing, cell merge/split, header row, alignment, keyboard navigation.

Readme

@trevixal/extension-table

CI npm types license

Documentation · Live editor · Changelog · Issues

The Trevixal editor

Features

  • Insert, merge, split, sort; row and column editing
  • Column resize, header rows, alignment and borders
  • Keyboard navigation and CSV import/export
  • 10.2 kB minified and gzipped, with TypeScript types in the package

Tables: structure, merging, sorting, borders, CSV, and the keyboard.

npm install @trevixal/extension-table

Usage

Merge the nodes into your schema:

new Schema({ nodes: { ...defaultNodes(), ...tableNodes() }, marks: defaultMarks() })
import { tableKeymap, insertTable, addRow, toggleHeaderRow } from '@trevixal/extension-table'

const editor = createEditor({ schema, element, keymap: tableKeymap() })

editor.exec(insertTable({ rows: 3, cols: 3 }))
editor.exec(addRow('after'))
editor.exec(toggleHeaderRow)

tableKeymap() makes Tab and Shift+Tab move between cells, then fall through to code-block indentation and list nesting. Each binding chains through every context the key means something in, because an override replaces the base binding wholesale.

What it can do

Structure: insertTable, addRow, addColumn, deleteRow, deleteColumn, deleteTable, mergeCells, splitCell, toggleHeaderRow, goToNextCell.

Appearance: setCellAlign, setCellBackground, setTableBorders (all, outer, horizontal, none), setTableBorderColor.

Data: sortTable, convertTextToTable, convertTableToText, parseCSV, insertTableFromCSV, tableToCSV, csvAtSelection, detectDelimiter.

Sizing: createTableResizeHandles for drag handles, plus setColumnWidth, setRowHeight, setTableWidth, distributeColumnsEvenly, clearTableSizing.

Moving: moveRow, moveColumn, swapCellContent.

Two decisions worth knowing

Cells merge across columns only. rowspan is not in the model, which keeps every row a flat list of cells and every structural edit simple arithmetic (ADR-0006). A column move that would cut through a merged cell declines rather than silently rewriting the merge.

A drag stores proportions, not pixels. A width measured in a fullscreen window is meaningless in a narrow one, and table-layout: fixed will widen a table past any max-width to fit its columns. Columns are stored as a share of the table, the table as a share of the space it sits in.

License

Apache-2.0