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

@nesso-how/vocab-learning

v0.2.0-beta.10

Published

Nesso Learning Vocabulary — graph vocabulary (relation types, node params, palettes) shared across app and MCP

Readme

@nesso-how/vocab-learning

The Nesso Learning Vocabulary for Nesso — a self-contained graph vocabulary: 52 typed relation types in 8 categories, category palettes, and private node parameters (FSRS review fields).

Graph JSON files declare which vocabulary they use via VOCABULARY.id and a normative version. File I/O builds on @nesso-how/schema and adds learning-vocabulary validation (elaboration shape, known relation type ids).

Install

npm install @nesso-how/vocab-learning

Usage

Relation catalog and palettes

import {
  VOCABULARY,
  RELATION_CATEGORIES,
  RELATION_TYPES,
  RELATION_TYPE_VALUES,
  PALETTES,
  defaultConceptReviewFields,
} from '@nesso-how/vocab-learning'

const def = RELATION_TYPES['causes']
// { cat: 'causal', label: 'causes', inverse: 'caused-by' }

const freshNode = defaultConceptReviewFields()
// { stability: 0, difficulty: 0, due: 0, ... }

Graph document I/O

import { deserialize, serialize, type NessoGraphDocument } from '@nesso-how/vocab-learning'

const json = serialize({
  vocabulary: { id: '@nesso-how/vocab-learning', version: '0.2.0' },
  name: 'My graph',
  concepts: [{ id: 'n1', label: 'Idea', x: 0, y: 0, data: { elaboration: { definition: '...' } } }],
  relations: [{ id: 'e1', source: 'n1', target: 'n2', type: 'causes' }],
})
const doc: NessoGraphDocument = deserialize(json)

Shared content vs review state. serialize / deserialize handle the portable graph file: concept labels, positions, elaboration, relation types, and layout hints. FSRS fields (stability, difficulty, due, etc.) are runtime node parameters for spaced repetition — they are typed here via defaultConceptReviewFields() but are not written into shared graph JSON; the Nesso app persists them separately.

Notes documents (elaboration)

The current 0.2.0 ConceptElaboration is { definition, notes? }. notes is a native TipTap JSON document ({ type: 'doc', content: [...] }) persisted verbatim, including custom block types. Unknown block types pass the guard within this supported 0.2.0 vocabulary because validation is block-agnostic. This does not make newer vocabulary versions supported: documents declaring a version newer than 0.2.0 are rejected by the forward guard.

  • NOTES_MAX_DEPTH / NOTES_MAX_SERIALIZED_CHARS bound nesting and serialized size.
  • notesToPlainText flattens any document (blocks joined with newlines); unknown blocks degrade to their text, never destroyed.
  • paragraphNotesFromPlainText(text) builds the minimal paragraph document used by plain-text boundaries (MCP).

Relation types reference: Relation types.

Persisted vocabulary compatibility

Learning-vocabulary documents must declare @nesso-how/vocab-learning and a supported normative vocabulary version. The current version is 0.2.0: concept elaboration is { definition, notes? } where notes is an optional bounded TipTap JSON document (block-agnostic guard).

Legacy vocabulary 0.1.0 (definition-only elaboration) is migrated by the app's graphLoadNormalizer sequential ladder; the source shape is validated before relabeling. Removed alpha-only examples, string notes, and image fields are not migrated or discarded — documents containing them are rejected.

License

Copyright © 2026 Omar Desogus, Paolo Manfredotti. Licensed under the MIT License. See LICENSE.