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

@oml/cli

v0.10.0

Published

The cli specific package

Readme

OML CLI

@oml/cli is the command-line interface for linting, compiling, reasoning over, rendering, and validating OML workspaces.

Package Layout

  • package.json - package manifest and published CLI entry
  • bin/cli.js - executable entrypoint used by the published oml command
  • src/main.ts - TypeScript entrypoint
  • src/cli.ts - command registration and top-level CLI wiring
  • src/commands - lint, compile, reason, render, and validate command implementations
  • src/backend - shared RDF/reasoning and markdown execution support

Instructions

Use the public npm registry for @oml/* packages:

registry=https://registry.npmjs.org/
@oml:registry=https://registry.npmjs.org/

From the repo:

node ./packages/cli/bin/cli.js --help

When installed, the command name is oml.

The CLI uses the built-in production OML Platform endpoint by default. Set OML_PLATFORM_API_URL=<url> to override it.

Quick Start

# Lint the current workspace
node ./packages/cli/bin/cli.js lint

# Lint against a local platform dev server
OML_PLATFORM_API_URL=http://127.0.0.1:8787 \
node ./packages/cli/bin/cli.js lint

# Compile RDF output
node ./packages/cli/bin/cli.js compile -w . -owl build/owl

# Check consistency only
node ./packages/cli/bin/cli.js reason -w . -owl build/owl --check-only

# Render markdown to static HTML
node ./packages/cli/bin/cli.js render -w . -md src/md -web build/web -owl build/owl

Commands

  • login Runs GitHub device-flow sign-in, exchanges the GitHub token with the OML Platform, and stores the returned platform session.
  • logout Removes the local sign-in session.
  • whoami Prints the current sign-in session.
  • lint [-w <workspace>] Validates one file, or the current workspace when no file is given.
  • compile [-w <workspace>] [-owl <dir>] [-f <ttl|trig|nt|nq|n3>] [--clean] [--only] [--pretty] Compiles OML to RDF.
  • reason [-w <workspace>] [-owl <dir>] [-f <ttl|trig|nt|nq|n3>] [--clean] [--only] [--pretty] [--check-only] [-u <true|false>] [-e <true|false>] [-p <true|false>] Runs consistency checking and, unless --check-only is used, generates entailments.
  • render [-w <workspace>] -md <dir> -web <dir> [-owl <dir>] [-f <ttl|trig|nt|nq|n3>] [-c <model-uri>] [--clean] [--only] [--pretty] [-u <true|false>] [-e <true|false>] [-p <true|false>] Runs the compile/reason pipeline, then renders markdown to static HTML.
  • validate -md <dir> [-w <workspace>] [-owl <dir>] [-f <ttl|trig|nt|nq|n3>] [--clean] [--only] [--pretty] [-u <true|false>] [-e <true|false>] [-p <true|false>] Validates markdown table-editor SHACL blocks against their context models.

Notes

  • The CLI uses OML_PLATFORM_API_KEY when it is set. Otherwise, operational commands use the token from oml login for platform authorization.
  • OAuth login refresh uses built-in Supabase defaults. Set OML_SUPABASE_URL or OML_SUPABASE_ANON_KEY to override them.
  • GitHub device-flow login requires OML_AUTH_GITHUB_CLIENT_ID, unless you embed DEFAULT_GITHUB_CLIENT_ID in src/auth.ts.
  • oml login exchanges the GitHub token with the platform at OML_PLATFORM_API_URL or the built-in default endpoint, then stores the platform session locally.
  • The CLI depends on @oml/reasoner.
  • reason runs ontology consistency checks in dependency order.
  • render runs the compile/reason pipeline unless --only is provided, then renders markdown, resolves workspace:/ links, executes markdown blocks, and copies referenced non-markdown assets.
  • If the reasoner reports an inconsistent ontology, the CLI exits with code 1 and prints the raw JSON result returned by the reasoner.
  • When installed from npm, the CLI checks the npm registry for newer @oml/cli releases and prints npm install -g @oml/cli@latest when an update is available. Set OML_NO_UPDATE_NOTIFIER=1 to disable the check.