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

@equationalapplications/schema-org-llm-wiki

v7.1.0

Published

Curated schema.org warm-agent ontology manifest for LLM Wiki Memory: 9 node types, 28 edges, fully schema.org-standard. Data-only.

Readme

@equationalapplications/schema-org-llm-wiki

Curated schema.org warm-agent ontology manifest for hybrid LLM memory. Seeds a knowledge graph with 9 standard node types and 28 polymorphic edges — token-efficient, JSON-LD-ready, data-only with no runtime code.

npm version npm downloads TypeScript License: MIT

GitHub · ScopeLab · WikiDemo · Changelog · Issues

Ontology manifest for LLM Wiki Memory, inspired by Andrej Karpathy's LLM Wiki memory spec.

Why curated?

Full schema.org has ~800 types and ~1,400 properties. Injecting that into every librarian/ingest prompt would blow token budgets and collapse LLM classification accuracy. This manifest selects the high-value warm-agent subset (~2 KB serialized, 9-way classification) while keeping every type and property standard, so stored facts and edges map 1:1 onto schema.org for future JSON-LD export.

Why this is the GraphRAG ontology

This manifest is designed as the canonical taxonomy bundle for warm-agent GraphRAG: the 9 node types and 28 polymorphic edges cover the people, places, organizations, projects, events, and creative works that dominate personal and professional knowledge graphs. Pair it with core-llm-wiki's traverseGraph() and you get a SQL-only GraphRAG stack with no Neo4j.

Why a curated ontology prevents hallucination in edge extraction

The librarian and ingest LLM passes that write llm_wiki_edges only see this manifest's node types and edge properties in their prompt context. Without that constraint, an unconstrained LLM will invent edge types and node types on every call — producing a noisy graph where WITH RECURSIVE walks return orphaned nodes and arbitrary relationships.

With the manifest:

  • Every edge has a valid (type, source_type, target_type) triple — the manifest validates edge structure and reduces invalid relationships.
  • Polymorphic edges (location, organizer, about, itemReviewed) cover the cases where a single property name applies to many source/target type combinations.
  • Token budget stays small — ~2 KB serialized, vs ~50 KB for the full schema.org catalog. Edge classification accuracy stays high.

Use it with core-llm-wiki for GraphRAG

import { createWiki } from '@equationalapplications/core-llm-wiki';
import { schemaOrgWarmAgentManifest } from '@equationalapplications/schema-org-llm-wiki';

const wiki = createWiki(db, {
  llmProvider,
  config: {
    ontology: {
      mode: 'strict',
      seedManifests: {
        [entityId]: { mode: 'strict', manifest: schemaOrgWarmAgentManifest },
      },
    },
  },
});

// After ingestDocument / runLibrarian populate edges:
const graph = await wiki.traverseGraph(entityId, { sourceId, maxDepth: 2 });

Requirements

Requires @equationalapplications/core-llm-wiki at the same release or newer — this manifest uses polymorphic edge rows (one property name with several source/target types), which core validates by the (type, source_type, target_type) triple.

Installation

npm install @equationalapplications/schema-org-llm-wiki

Usage

import { createWiki } from '@equationalapplications/core-llm-wiki';
import { schemaOrgWarmAgentManifest } from '@equationalapplications/schema-org-llm-wiki';

const wiki = createWiki(db, {
  llmProvider,
  config: {
    ontology: {
      mode: 'strict',
      seedManifests: {
        [entityId]: { mode: 'strict', manifest: schemaOrgWarmAgentManifest },
      },
    },
  },
});

Or seed an existing entity directly:

await wiki.setOntologyManifest(entityId, schemaOrgWarmAgentManifest, { mode: 'strict' });

Node types

| Type | schema.org | Covers | |------|-----------|--------| | person | Person | Friends, family, colleagues, public figures | | organization | Organization | Companies, schools, clubs, teams, institutions | | place | Place | Cities, venues, landmarks, addresses | | event | Event | Meetings, conferences, concerts, celebrations | | project | Project | Multi-step initiatives and goals | | action | Action | Individual tasks, chores, steps | | creativework | CreativeWork | Books, movies, articles, songs, recipes | | review | Review | Personal opinions and evaluations | | product | Product | Owned items, devices, software |

Edge properties (19 names, 28 rows)

All standard schema.org properties: knows, spouse, parent, worksFor, memberOf, homeLocation, workLocation, location (×2), containedInPlace, subOrganization, object, agent, attendee, organizer (×2), author, publisher, about (×4), itemReviewed (×5), owns.

Polymorphic properties appear as multiple rows with distinct source/target types, mirroring schema.org's own domain/range definitions — e.g. about targets person, organization, place, and event.

JSON-LD export notes

  • Property names keep schema.org camelCase (worksFor, itemReviewed); core validation compares case-insensitively but stores the given casing, so names survive to storage and future JSON-LD export unchanged.
  • Literal-valued properties (birthDate, startTime, reviewRating values, …) live inside fact content, not as edges. Only object-valued properties (pointing at other facts) are edges.

Monorepo Ecosystem

| Package | Purpose | | ----- | ----- | | @equationalapplications/schema-org-llm-wiki | Curated schema.org warm-agent ontology manifest | | @equationalapplications/core-llm-wiki | Persistent episodic memory | | @equationalapplications/expo-llm-wiki | Persistent episodic memory for Expo/React Native | | @equationalapplications/react-llm-wiki | Persistent episodic memory for Web | | @equationalapplications/prisma-outbox | Sync SQLite outbox events to Prisma | | @equationalapplications/core-llm-tools | Gemini tool schemas and capability injector | | @equationalapplications/core-okf | Zero-dependency Open Knowledge Format (OKF) v0.1 + v0.2 primitives — parse and produce interoperable knowledge bundles. | | @equationalapplications/schema-software-org | Software-organization executive ontology manifest — 17 node types, 40 edges, warm-agent superset, data-only |

License

MIT


Made with ❤️ by Equational Applications LLC. https://equationalapplications.com/