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

@graypirate/tabula

v1.0.1

Published

Flexible object-oriented relational storage for agents

Readme

Tabula Core

Core API and command-line interface for Tabula.

Global Installation

Install the Core package and tabula CLI with Bun:

bun add --global @graypirate/tabula

Or with npm:

npm install --global @graypirate/tabula

Bun is required at runtime regardless of which package manager installs it.

Verify:

command -v tabula
tabula list

Upgrade or remove the Core package with Bun:

bun update --global @graypirate/tabula
bun remove --global @graypirate/tabula

# npm equivalents
npm update --global @graypirate/tabula
npm uninstall --global @graypirate/tabula

To import the public API in another project, install it as a project dependency:

bun add @graypirate/tabula
# or
npm install @graypirate/tabula

CLI

Most commands follow one of these forms:

tabula <command> [arguments] [options]
tabula <command> <subcommand> [arguments] [options]

Current command groups:

  • init [options]
  • list [id] [options]
  • read [id] [options]
  • create object [options]
  • create block [options]
  • write [options]
  • search <query> [options]
  • delete [id] [options]

Common argument patterns:

  • [id] is an optional entity identifier for commands that can target either a root context or a specific entity.
  • <query> is a required search string.
  • [options] includes flags such as --workspace, --parent, --name, --content, --type, and repeatable --property key=value.

Entity IDs identify their type:

  • d_...: workspace
  • o_...: Object
  • b_...: Block

Commands that operate inside a workspace require --workspace NAME.

Workspaces

tabula init --workspace example
tabula list
tabula read --workspace example
tabula list --workspace example
tabula delete --workspace example

init creates or opens ~/.tabula/<name>.sqlite and returns workspace metadata. Bare list returns managed workspace names. read --workspace returns metadata, while list --workspace returns ordered root Object IDs.

Workspace deletion removes the SQLite file and its sidecars. Interactive terminals ask for confirmation; non-interactive commands do not prompt.

Create Objects and Blocks

tabula create object \
  --workspace example \
  --name "Project" \
  --property status=active

tabula create block \
  --workspace example \
  --parent o_parent \
  --content "First task" \
  --property complete=false

Objects may be created at the workspace root or under an Object or Block. Blocks require --parent. Repeat --property key=value to add properties; values are parsed as JSON when valid and otherwise remain strings.

Write Recursive Trees

write accepts exactly one recursive Object or Block JSON value from stdin:

tabula write --workspace example <<'JSON'
{
  "type": "object",
  "name": "Document",
  "properties": { "status": "draft" },
  "children": [
    {
      "type": "block",
      "content": "Introduction",
      "properties": { "level": 1 },
      "children": []
    }
  ]
}
JSON

New entities omit id. Supplying an existing ID replaces that entity. Submitted children arrays are complete replacements: omitted child subtrees are deleted. Existing children included by ID may be moved. Object roots may be written at workspace root; Block roots require --parent ID.

Read, List, Search, and Delete

tabula read o_example --workspace example
tabula list o_example --workspace example
tabula search "draft" --workspace example
tabula search "draft" --workspace example --type block
tabula delete b_example --workspace example

read ID returns the parent ID and complete recursive entity tree. list ID returns ordered direct child IDs. search checks Object names and properties plus Block content and properties. Entity deletion removes the entity and all descendants.

Output and Errors

Successful commands write one compact JSON value plus a newline to stdout and exit 0. Input and validation failures write structured JSON to stderr and exit 2; operation failures exit 1.

{"error":{"code":"MISSING_OPTION","message":"Required option missing: --workspace"}}