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

@inklyre/oes-lint

v0.2.0

Published

Referential-integrity linting for OES content: dangling references, duplicate ids, pool select bounds, answer cross-references, answer_key file existence, and content_hash mismatches.

Readme

@inklyre/oes-lint

Referential-integrity linting for OES content, built on @inklyre/oes-core's resolve() rather than reimplementing a second tree-walker.

Install

npm install -D @inklyre/oes-lint

CLI

npx oes lint ./my-course
npx oes lint ./my-set --entry set.json
npx oes lint ./my-course --json   # machine-readable output, e.g. for a GitHub Action

Exits 0 when no "error"-severity issue is found, 1 otherwise. The entry document (course.json/set.json/module.json/lesson.json) is auto-detected from the given directory unless --entry is passed.

GitHub Action

Since OES content lives in git, lint-on-every-PR is a near-zero-friction way to keep a course/set repo trustworthy. Any repo can use this one's composite action without installing anything first:

# .github/workflows/lint.yml, in a course/set repo (not this one)
on: pull_request
jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: inklyre/oes/.github/actions/lint@main
        with:
          path: ./my-course

What it checks

Everything resolve() already catches while walking the tree:

  • Dangling references — a path/*_url that doesn't resolve, or a document that fails schema validation.
  • content_hash mismatches — a declared hash that doesn't match the referenced document's actual content.

Plus checks that need a whole-tree or single-document view resolve() doesn't attempt on its own:

  • Duplicate ids — within any array addressed by id: course.modules, a module's lessons, a lesson's articles/video_lessons/practice_sets, a set's questions, a pool's from, and every question type's own id-bearing array (options, left/right, items, blanks, test_cases, labels).
  • Pool select bounds — a pool's select must be between 1 and from.length; not expressible in JSON Schema since it relates two sibling fields.
  • Dangling answer cross-references — an mcq/msq answer(s), a match pair's left_id/right_id, or an order's correct_order pointing at an id that doesn't exist in the corresponding option array. Only checked in self-practice mode: a secured answer_key means there's no inline answer to check.
  • answer_key.file existence — checked directly by this package, not by resolve(), which deliberately never fetches answer_key content at all: a public/student-facing consumer built on resolveCourse/resolveSet must never gain a path to the answer through the shared resolver.

Programmatic API

import { fsSource } from "@inklyre/oes-core";
import { lintCourse } from "@inklyre/oes-lint";

const { issues, ok } = await lintCourse(fsSource("./my-course"));

lintSet, lintLesson, and lintModule are the equivalent entry points for linting a smaller subtree in isolation (e.g. a set-only repo, or an authoring tool previewing one lesson).

What this doesn't do

  • Grading, or anything answer-key-content-aware beyond existence — this package checks the file exists, never what's inside it.
  • Anything resolve() doesn't already cover as a side effect of walking the tree — this package adds checks, it doesn't re-implement reference resolution.