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

eyeling

v1.13.3

Published

A minimal Notation3 (N3) reasoner in JavaScript.

Readme

eyeling

A compact Notation3 (N3) reasoner in JavaScript.

  • Single self-contained bundle (eyeling.js), no external runtime deps
  • Forward (=>) + backward (<=) chaining over Horn-style rules
  • Outputs only newly derived forward facts by default (optionally with compact proof comments)
  • If the input contains one or more top-level { ... } log:query { ... }. directives, the output becomes the unique instantiated conclusion triples of those queries (a forward-rule-like projection)
  • Works in Node.js and fully client-side (browser/worker)

Links

Eyeling is regularly checked against the community Notation3 test suite; the report above tracks current pass/fail results.

If you want to understand how the parser, unifier, proof search, skolemization, scoped closure, and builtins are implemented, start with the handbook.

Quick start

Requirements

  • Node.js >= 18

Install

npm i eyeling

CLI

Run on a file:

npx eyeling examples/socrates.n3

See all options:

npx eyeling --help

log:query output selection

If your input contains one or more top-level directives of the form:

{ ?x a :Human. } log:query { ?x a :Mortal. }.

Eyeling will still compute the saturated forward closure, but it will print only the unique instantiated conclusion triples of those log:query directives (instead of printing all newly derived forward facts).

JavaScript API

CommonJS:

const { reason } = require('eyeling');

const input = `
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix : <http://example.org/socrates#>.

:Socrates a :Human.
:Human rdfs:subClassOf :Mortal.

{ ?S a ?A. ?A rdfs:subClassOf ?B } => { ?S a ?B }.
`;

console.log(reason({ proofComments: false }, input));

ESM:

import eyeling from 'eyeling';
console.log(eyeling.reason({ proofComments: false }, input));

Streaming / in-process reasoning (browser/worker, direct eyeling.js):

const { closureN3 } = eyeling.reasonStream(input, {
  proof: false,
  onDerived: ({ triple }) => console.log(triple),
});

// With log:query directives present, closureN3 contains the query-selected triples.
// The return value also includes `queryMode`, `queryTriples`, and `queryDerived`.

Note: the npm reason() helper shells out to the bundled eyeling.js CLI for simplicity and robustness.

Builtins

Builtins are defined in eyeling-builtins.ttl and described in the HANDBOOK.

Testing (repo checkout)

npm test

License

MIT (see LICENSE).