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

@blocknote/block-view

v0.0.5

Published

A Notion-like database library for building block-based databases.

Readme

Block View

A front-end library for building Notion-like databases: a flexible data model and React UI primitives to display document metadata as a table, kanban, gallery, or other views.

A "database" here is a collection of documents, each with typed properties (title, status, dates, relations, etc.). The library handles the in-memory model, transactions, and table rendering -- you plug in persistence and sync via the transaction API.

Features

  • In-memory data model -- Collections, views, documents, properties, and values with a central registry and traversable graph.
  • Transaction-based updates -- All changes go through a Transaction; you get an ordered, replayable log of ops with rollback support and hooks for sync/persistence.
  • Table view -- React hooks and column definitions built on TanStack Table, with drag-and-drop (rows and columns) and column resizing.
  • Cell adapters -- Pluggable cell renderers (plain text, checkbox, date, number, single/multi select) with tree-shakeable imports.
  • TypeScript -- Strict types throughout; no any or unknown in the public API.

Installation

bun add @blocknote/block-view
# or
npm install @blocknote/block-view

Peer dependencies: react and react-dom ^19.0.0.

Usage

Core (model + transactions)

import { core } from "@blocknote/block-view";

const { CollectionManager, initializeCollection } = core;

The core module provides the data model (Collection, CollectionView, Document, Property), the transaction system, and the collection manager with undo/redo and pagination.

React (table components)

import { DataTable, useCollectionTableView } from "@blocknote/block-view/react";

The React module provides the DataTable compound component, cell adapters (checkbox, date, number, plain text, select), hooks for collection table views, drag-and-drop, and column resizing.

How it works

  • Model -- In-memory entities (collections, views, documents, properties, values) with a central registry. Serializable to/from JSON with change notifications.
  • Transactions -- The only way to mutate the model. Each change is recorded in an ordered log (forward op + inverse). The log can be synced, replayed, or rolled back.
  • Table -- Integrates the model with TanStack Table, with optional drag-and-drop and column resizing.

Contributing

See CONTRIBUTING.md for development setup, commands, and guidelines.