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

sfvalidator

v1.1.0

Published

Dataset validator

Readme

sfvalidator

In-browser dataset validation.

Goals

Validating data sets against the rules listed here within a terminal or browser.

Legal

Technical

Syntactic

Semantic

  • Maximum use of standards

Querying

  • Fragmented data: Check for hydra links and timestamps

  • European DCAT-AP standard

Usage

Node

First install the package:

npm install sfvalidator

Then require it and start validating:

const sfv = require("sfvalidator")

sfv.validate_url("https:://www.example.com").then(result => { console.log(result); }

Terminal

Install the package globaly:

npm install -g sfvalidator

Now you are able to run:

sfvalidator <URL>
sfvalidator --file <file-path>

In-browser

  1. Firstly install or download the module.

  2. Secondely install browserify:

     npm install -g browserify
  3. Then use browserify to bundle the module and its dependencies:

     browserify <path-to-module>/lib/browserify-validator.js -o bundle.js
  4. Now you are able to include this bundle as a script in your webpage and use it:

     <script src="bundle.js"></script>
     <script>
     	validator = new window.sfvalidator();
     	validator.validate_url("https:://www.example.com").then(result => { console.log(result); }
     </script>

See the example folder for a more extensive example.

Output

{
	Accessable: { 
		first_attempt: Score,
	  	seconde_attempt: Score
	},
	License: Score,
	Headers: { 
		Cache: Score,
	   	ETag: Score,
	   	Cors: Score
	},
	Rdf: Score,
	Fragmented: Score,
	Timestamped: Score
}

A Score is of this structure:

{
	score: int -> -1 if failed, 0 if not checked or 1 if passed
	message: Object -> the message from the validator
}

The message attribute can have different values when the element passed the validation: - In case of accessable, rdf and timestamped it is just a string. - In case of the headers it is the value of the header in the returned package. - In case of license and fragmented it is a list of found licenses and hydra links respectfully.

Examples

####Terminal Run npm test.

In-browser

Run npm run-script build-example and then run an http server in the example folder.