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

@aveltens/pi-kit-linked-data

v0.8.0

Published

Pi Coding Agent skills and extensions to work with RDF, SPARQL and other Linked Data technologies

Readme

@aveltens/pi-kit-linked-data

Pi Coding Agent skills and extensions to work with RDF, SPARQL, and other Linked Data technologies.

Adds tools and matching skills to the Pi Coding Agent:

| Tool | What it does | |---|---| | sparql_query_files | Run SPARQL 1.1 queries against local RDF/Turtle files | | sparql_query_endpoint | Query any remote SPARQL endpoint by URL | | sparql_query_wikidata | Query the Wikidata Knowledge Graph for real-world facts |

Two discovery tools are also included: discover_rdf_files and discover_sparql_queries.

Quick Start

Install

pi install npm:@aveltens/pi-kit-linked-data

To try the package without installing it permanently:

pi -e npm:@aveltens/pi-kit-linked-data

To install per-project (shared with your team via .pi/settings.json):

pi install -l npm:@aveltens/pi-kit-linked-data

Query local RDF files

Put some Turtle files in your workspace, then ask Pi in plain English:

"What classes are defined in my ontology?" "List all SKOS concepts with their labels." "Find all resources of type schema:Person."

Pi will run discover_rdf_files to locate the files and sparql_query_files to query them.

Query a remote SPARQL endpoint

"Query DBpedia for population of Germany." "List the classes available at https://example.org/sparql."

Pi uses sparql_query_endpoint and handles PREFIX declarations automatically.

Query Wikidata

"Who were the presidents of France in the 20th century?" "What is the capital of Japan?" "List all Nobel Prize winners in Physics since 2010."

Pi uses sparql_query_wikidata, which pre-injects all standard Wikidata prefixes (wd:, wdt:, wikibase:, etc.) — no declarations needed.

What's Included

Tools

| Tool | Description | |---|---| | sparql_query_files | Executes SPARQL 1.1 (SELECT/ASK/CONSTRUCT/DESCRIBE) against local .ttl, .rdf, .n3, .jsonld, .trig, .nq, .nt files using Comunica | | sparql_query_endpoint | Executes SPARQL 1.1 against any remote endpoint over HTTP | | sparql_query_wikidata | Executes SPARQL 1.1 against the Wikidata Query Service with standard prefixes pre-injected | | discover_rdf_files | Finds all RDF data files in the workspace | | discover_sparql_queries | Finds all .rq / .sparql query files in the workspace |

Commands

| Command | Description | |---|---| | /rdf-memory-explorer | Starts a local HTTP server and prints the URL in the chat — open it in any browser to browse stores and run SPARQL queries visually. Works in containers and remote environments. |

Skills

Skills guide Pi on when and how to use the tools:

  • sparql-query-files — semantic graph traversal, class/property discovery, reusing existing .rq files
  • sparql-query-endpoint — endpoint exploration, output format selection, PREFIX declarations
  • sparql-query-wikidata — entity/property model, label service patterns, multi-hop traversal

CLI Tools

The package ships two command-line tools you can run directly from your project.

Add convenience scripts to your package.json:

{
  "query": "cd .pi/npm && npx pi-kit-query",
  "validate": "cd .pi/npm && npx pi-kit-validate"
}

Then use them like:

npm run query
npm run validate

Requirements