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

@oxilite/common

v0.2.2

Published

RDF/JS terms and result conversion shared by the oxilite JavaScript packages

Readme

@oxilite/common

npm license

RDF/JS terms and the shared TypeScript types of oxilite, used by @oxilite/node and @oxilite/d1.

Website · npm · Guide and architecture · Changelog and issues

You rarely install it directly: both packages re-export everything here.

import { namedNode, literal, quad, DataFactory, type Term } from "@oxilite/node";   // or "@oxilite/d1"

const q = quad(namedNode("http://example.com/ada"), namedNode("http://example.com/name"), literal("Ada", "en"));

What is inside

  • RDF/JS terms: NamedNode, BlankNode, Literal (with language and direction), DefaultGraph, Variable and Quad (also usable as an RDF 1.2 triple term), plus DataFactory and its shortcuts namedNode, blankNode, literal, defaultGraph, variable, quad, triple. They follow the RDF/JS data model, so they mix with other RDF/JS libraries.
  • SPARQL types: QueryOptions (with oxilite's reasoning and include_inferred), LoadOptions, DumpOptions, QueryResult.
  • Cypher types: CypherValue, CypherNode, CypherRelationship, CypherPath, CypherTemporal, CypherResult, CypherStats and CypherOptions (base, prefixes, names, multiValue, reasoning, shapes…).
  • JSON-LD and credential types: JsonLdOptions, CredentialOptions, KeyStrategy, GraphStrategy, StoredDocument, DocumentFilter, Drift, PresentationKeys and the JsonLdError class (with its JSON-LD error code).
  • JSON helpers: toJson / fromJson convert terms to and from the JSON form the oxilite core exchanges.

The oxilite family

oxilite is an Oxigraph-compatible RDF database and SPARQL 1.1 engine that stores its data in SQLite, so it runs anywhere SQLite runs: in-process, on a system or vendor libsqlite3, on Cloudflare D1 and in Durable Objects. The same data can be queried with SPARQL and openCypher, reasoned over with RDFS / OWL, and validated with SHACL and ShEx. Read the overview on oxilitedb.com and the full guide in the main README.

| Package | What it is for | |---|---| | oxilite | The store: a drop-in for oxigraph::store::Store, plus AsyncStore for D1 | | oxilite-core | The sans-IO core: term encoding, schema, SPARQL → SQL compiler and planner | | oxilite-rusqlite | In-process backend with a bundled SQLite (the default) | | oxilite-dylib | Backend that loads your own libsqlite3 at runtime | | oxilite-d1 | Cloudflare D1 backend for Rust Workers | | oxilite-cypher | openCypher over the same data, OWL- and SHACL-aware | | oxilite-jsonld | JSON-LD documents stored verbatim, one named graph each | | oxilite-vc | Verifiable Credentials: stored under their id, indexed, queryable | | oxilite-reason | OWL 2 RL materialization with reasonable | | oxilite-validate | SHACL and ShEx validation with rudof | | oxilite-cli | The oxilite command and a SPARQL endpoint like oxigraph serve | | @oxilite/node | Node.js bindings, API of Oxigraph's JS package | | @oxilite/d1 | Cloudflare D1 and Durable Objects from TypeScript (WebAssembly core) | | @oxilite/common | RDF/JS terms and shared TypeScript types |

License

Dual-licensed under MIT or Apache-2.0, at your option, like Oxigraph.