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

kodo-core

v0.2.1

Published

It's bulky, but it's powerful.

Readme

kodo-core

It's bulky, but it's powerful.

Install

  • npm install kodo-core
  • bun install kodo-core

Summary

kodo-core is used to describe & connect Heterogeneous data (source) together. By doing so, kodo-core could be able to load & query data from one kodo node to another, in a predefined kodo network.

Key Ability

  • Pre-Condition-A: Link data model | structure together into a network, or a map.

    Data model can be based on heterogeneous data source (i.e. Postgre, DynamoDB, Memory, API-JSON etc.). This ability provided by IDataProvider as a plugin can be registered.

  • Pre-Condition-B: Query from one point of the data model you defined above.

    This ability provided by INodeTranslator as a plugin can be registered.

  • Kodo.explore() can then auto. query based on the datasource & network defined in Pre-Condition-A & Pre-Condition-B.
  • Kodo.checkRules() can be used for data validation among the query result - DataNode(s).

Init & Usages

  • We first need to prepare the data provider for kodo-core, here's a default inside momory provider embeded in kodo-core.

    Check the test cases please there's a few examples.

  • Then we need write expression to describe the data relationship & connect them together.
  • By doing the 2 preparations, we can then give a detailed data from any kodo node & start to query.
  • It then will select & load all the related data via your giving.

Version Updates

  • v0.0.4: Support query expression on QueryNode<T> when explore.

    i.e. expression: p => p.orderid === "o3" && p.id === "p3-2"

  • v0.1.1: Swtich compiler tools from NodeJs to Bun
  • v0.1.2: Add DynamoDB Data Provider, note only support Query, Scan is not supported. Add option limit as well to avoid unintentional of massive query
  • v0.1.3: Try AI Coding
  • v0.1.4: Add KodoOption, openspec
  • v0.1.5: Fix bug & simplify link-expression
  • v0.1.6: Add object {get $id(): string;} to support custom id
  • v0.1.7: Add rule & notification
  • v0.1.8: [break-change][interface] fix multi-nodes w/ the same parent issue, change type of $fromQN from obj => arr
  • v0.1.9: Add $from, $to onto DataNode, plan to use those 2 as formal linkage usage.
  • v0.2.0: [break-change][interface]

    Take Rule | Notification out of Kodo as they're seperated functions. Change match to matchExpression to support both CEL and QueryMatch<T> function. Move notify function out from Kodo to KodoNotifier.validate()

  • v0.2.1: Clear up, remove seldom use of cline | oepnspec, remove json-decycle for license reason, remove test db logging mode.

Plan to Support Features

  • (✓) CEL (Google - Common Expression Language)
  • (✓) Enhanced Rule | Notification via CEL | Map Query
  • (✓) Support $from & $to simplify the map query in further
  • (?) Customzied Map Query based on CEL
  • (?) Support JSON Object | Path grammar in QueryExpression
  • (?) Support JSON Object | Path grammar in CEL | Notification

Plan to Fix

  • (✓) Customized JSON.stringify() to allow Node (DataNode | LinkNode | QueryNode) to go across network.

    use wrap() please.

Design

  • Kodo-Overview: Kodo-Overview

  • Kodo-Design: Kodo-Design