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

@sukoyaka-dopeness/e2r-validator

v0.4.0

Published

Validator for E2R Datasets.

Readme

e2r-validator

Validator for E2R Datasets.

This repository is the implementation home for a UI-independent E2R validator. It will validate the E2R Core and supported official Extensions while preserving forward compatibility with unknown fields and Extensions.

Initial scope

  • E2R Core Dataset structure and Dataset-level semantic rules
  • Metadata Extension 1.0.0
  • History Extension 1.0.0
  • Specification Extension draft 0.1.0 declarations and dependencies
  • Coordinate interoperability prototype 0.1.0 structure and references
  • Coordinate Extension draft 0.1.0 read-only structure and references
  • Names Extension draft 0.1.0 declaration-gated local structure and Dataset-wide recognized expression-ID uniqueness
  • Presentation Extension draft 0.1.0 read-only Relation arrow display, line style, and orphan semantic warnings
  • stable diagnostic codes, JSON Pointer paths, and related IDs
  • read-only CLI validation

Usage

Run the CLI against an E2R JSON file:

node src/cli.js path/to/dataset.json

The command writes a machine-readable JSON result to standard output.

0  valid Dataset (warnings are allowed)
1  parsed Dataset with validation errors
2  input, JSON syntax, or command-line error

Run the complete local verification suite:

npm test
npm run validate:fixtures

The fixture suite reads examples from the sibling e2r-spec repository.

The same validator is available as a library:

import { validateDataset } from "@sukoyaka-dopeness/e2r-validator";

const result = validateDataset(dataset);

The E2R specification repository remains the source of truth:

../e2r-spec

The validator does not edit or repair input Datasets. Presentation validation is read-only and does not auto-repair Relation records; unknown Presentation tokens and fields remain preservable for forward compatibility.

Status

The diagnostic contract is defined in docs/diagnostic-contract.md. Core, Metadata, and History validation are implemented for the initial MVP. Published version 0.4.0 also supports Specification draft 0.1.0, the unregistered Coordinate prototype 0.1.0, and the distinct Coordinate draft 0.1.0. The current implementation also supports Presentation Draft 0.1.0 and exact Names draft 0.1.0 when selected by a valid exact Specification declaration. Implementation support does not make any candidate Stable or authorize application writes or automatic migration.

See docs/release-process.md for the tag-based npm publication process and CHANGELOG.md for release notes.