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

@sindomecorp/toaststunt-db-extractor

v0.1.4

Published

Extract normalized object, verb, property, value, and verb-code data from ToastStunt checkpoint databases.

Readme

toaststunt-db-extractor

Standalone Node.js/TypeScript extractor for ToastStunt checkpoint databases. It emits normalized JSONL records for objects, verbs, property definitions, property values, core object candidates, verb source files, parser errors, and extraction stats.

This package only extracts canonical structured data. It does not run Tree-sitter, build call graphs, resolve inheritance calls, create Codex context, expose an MCP server, or write graph databases.

Install

npm install @sindomecorp/toaststunt-db-extractor

CLI

After installing the package, use the scoped npm package's CLI binaries:

toaststunt-db-extract ./latest.db --out ./extract/latest --snapshot-id latest --overwrite
toaststunt-db-inspect ./latest.db
toaststunt-db-validate ./extract/latest
toaststunt-db-validate ./latest.db

You can also run the extractor without adding it to a project first:

npx @sindomecorp/toaststunt-db-extractor ./latest.db --out ./extract/latest --overwrite

Extraction options:

--out <dir>
--snapshot-id <id>
--overwrite
--include-property-values / --no-property-values
--include-verb-code / --no-verb-code
--max-value-depth <n>
--max-string-bytes <n>
--max-collection-items <n>
--redact-password-properties / --no-redact-password-properties
--pretty
--quiet

Library API

import {
  extractToastStuntDb,
  inspectToastStuntDb,
  validateToastStuntDb
} from "@sindomecorp/toaststunt-db-extractor";

await extractToastStuntDb({
  inputPath: "./latest.db",
  outputDir: "./extract/latest",
  snapshotId: "latest",
  overwrite: true
});

const inspect = await inspectToastStuntDb("./latest.db");
const validation = await validateToastStuntDb("./extract/latest");

validateToastStuntDb() and toaststunt-db-validate accept either an extraction output directory or a checkpoint DB file. Directories get artifact validation, including JSONL sanity checks and verb-code file existence. DB files get parser validation with line-numbered fatal errors.

TypeScript Types

This package exports TypeScript types for all extractor output records:

  • ExtractManifest
  • ExtractedObjectRecord
  • ExtractedVerbRecord
  • ExtractedPropertyDefinitionRecord
  • ExtractedPropertyValueRecord
  • CoreCandidateRecord
  • ExtractErrorRecord
  • ExtractStats
import {
  type ExtractedVerbRecord,
  type CoreCandidateRecord
} from "@sindomecorp/toaststunt-db-extractor";

Output

The extractor writes:

manifest.json
objects.jsonl
verbs.jsonl
properties.jsonl
property_values.jsonl
core_candidates.jsonl
verb_code/*.moo
errors.jsonl
stats.json

Verb IDs are stable #object:verbIndex IDs. Parent data is always emitted as parents: string[]. Programmed verb code is hashed and written under verb_code/.

Privacy Behavior

By default, the extractor only redacts properties named password. Other property values are emitted unless truncated by size/depth limits.

The extractor does not broadly omit mail, notes, messages, logs, player data, tokens, histories, or large strings by category. Configure --max-string-bytes, --max-value-depth, and --max-collection-items to control safety/performance truncation.

Known Limitations

The parser supports the native LambdaMOO/ToastStunt Format 17 layout exercised by the real Sindome checkpoint used during development, plus the small line-oriented fixture format used in tests. Other checkpoint format versions should be added behind the existing parser phase boundaries in src/parser/.

Object, verb, and property metadata maps are kept in memory. Property values are streamed through a temporary JSONL file and then materialized to final output with effective property names.

Tests

For local development:

npm install
npm run build
npm test
npm run lint
npm run typecheck

Release

Releases publish to npm from GitHub Actions when a v* tag is pushed:

npm version patch
git push origin main --follow-tags

The release workflow uses npm trusted publishing and publishes @sindomecorp/toaststunt-db-extractor with public access.