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

@unrdf/cli

v26.5.5

Published

UNRDF CLI - Command-line Tools for Graph Operations and Context Management

Readme

@unrdf/cli

RDF ontology to code generation. Transform your RDF knowledge graphs into typed code artifacts—Zod schemas, OpenAPI specs, JSDoc types, GraphQL schemas—using SPARQL queries and Nunjucks templates.

Version: [VERSION] | Node.js: >=[VERSION]

Installation

Global Install (recommended for CLI usage)

# Using pnpm (recommended)
pnpm add -g @unrdf/cli

# Using npm
npm install -g @unrdf/cli

Verify installation:

unrdf --version
# Output: [VERSION]

Quick Start (5 Minutes)

  1. Initialize Project
unrdf sync init
  1. Run Generation
unrdf sync --config unrdf.toml

For a detailed walkthrough, see Getting Started Guide.


Key Features

🚀 RDF-Driven Generation

Query your ontology with SPARQL and use the results directly in Nunjucks templates. Access URI local names, namespaces, and datatypes automatically.

🧩 Hygen Parity

Full support for Hygen-style frontmatter directives for surgical file modifications:

  • inject: Enable line-based modification.
  • before / after: Inject content relative to string or regex anchors.
  • at_line: Insert at specific line numbers.
  • skip_if: Prevent duplication with regex-based existence checks.
  • chmod: Set file permissions (e.g., 755 for scripts).
  • sh: Run post-generation shell commands.

🔄 Smart Injection

Automatic detection of per-row vs. summary rendering. Use inject: true to automatically iterate over SPARQL results and update a single file (like an index.ts registry).


CLI Usage

Sync (Project-wide Generation)

unrdf sync                 # Run all rules in unrdf.toml
unrdf sync --watch         # Regenerate on ontology changes
unrdf sync --dry-run       # Preview changes without writing

Template (Ad-hoc Generation)

unrdf template generate data.ttl --template service.njk --batch --class-uri owl:Class

WASM Runtimes (AtomVM)

unrdf atomvm doctor        # Check for erlc and packbeam dependencies
unrdf atomvm build <mod>   # Compile .erl to .avm bytecode
unrdf atomvm execute <avm> # Run bytecode on WASM runtime

Diagnostics

unrdf doctor               # Health check and auto-fix

Documentation


API Stability

UNRDF is committed to stable interfaces for automated workflows:

  • Versioned JSON: All machine-readable outputs include a version field for compatibility tracking.
  • Schema Consistency: The unrdf.toml schema follows Semantic Versioning; no breaking changes in minor/patch releases.
  • Backward Compatibility: v6 fully supports legacy ggen.toml configurations.