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

@pi-harness/plugin-yaml-validator

v0.1.34

Published

Validate workspace-contained UTF-8 multi-document YAML through bounded, cancellable reads and line-aware diagnostics.

Readme

@pi-harness/plugin-yaml-validator

YAML Validator — Validate workspace-contained UTF-8 multi-document YAML through bounded, cancellable reads and line-aware diagnostics.

Install

npm install --save-exact @pi-harness/plugin-yaml-validator

Enable

Add the entry to the Cordis profile the harness starts from:

- id: yaml-validator
  name: "@pi-harness/plugin-yaml-validator"
  config: {}

The Pi Harness plugin marketplace installs and enables this package for you; the steps above are the manual equivalent.

Validation contract

yaml_validate({ path }) reads a regular file inside the current native Pi session workspace, validates UTF-8 YAML, and returns syntax errors and warnings with line and column positions. Switching the session, manager, session identity, or workspace clears the panel; an operation started in an old workspace cannot publish into the new one. Caller cancellation and plugin disposal prevent late results.

Aliases must refer to an anchor already encountered in the same document. Recursive aliases are allowed, and references are never expanded into JavaScript objects. Unknown custom tags may produce warnings without making the document invalid. This is syntax and alias validation; it does not validate application schemas or instantiate custom tags. rootType describes only the first document.

Files are limited to 512 KiB, paths to 4,096 characters, and streams to 100 documents. The document limit is checked after parsing the bounded input. Diagnostics retain full error and warning counts, with at most 1,000 entries in tool details, 50 combined entries in model text and panel data, and 20 in the rendered panel. Errors take priority over warnings. Individual diagnostic messages are limited to 2,000 characters; omitted entries are reported explicitly.

The tool accepts only the documented path property. Invalid UTF-8, oversized files, non-regular files, and paths resolving outside the current workspace fail. File contents are not modified or uploaded. Parsing runs synchronously on the bounded input; cancellation checks do not impose a hard CPU deadline on the parser.