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

@mnde/orbit-validator

v1.0.0

Published

Orbit Protocol v1.0 reference validator (JavaScript)

Readme

Orbit Protocol – JavaScript Validator & CLI

Orbit is a minimal, fail-closed protocol for encoding single-action intents as JSON. This package provides the reference JavaScript (Node.js) validator for Orbit Protocol v1.0, plus a small CLI for validation in terminals and CI.

This library is deliberately boring:

  • Deterministic
  • Schema-locked
  • No side effects
  • No execution of intents
  • Validation only

If an intent is invalid, it is rejected. There is no “best guess.”


What this package is

  • A reference validator for Orbit Protocol v1.0
  • A Node.js SDK for programmatic validation
  • A CLI tool for validating JSON files
  • A baseline for cross-language parity (Java, Kotlin, etc.)

What this package is NOT

  • An intent executor
  • A workflow engine
  • A permission system
  • A UI framework
  • A smart interpreter

Orbit separates intent validation from intent execution by design.


Install

Global (CLI)

npm install -g @mnde/orbit-validator

Local (library)

npm install @mnde/orbit-validator

CLI Usage

Validate an intent file:

orbit validate intent.json

Exit codes

| Code | Meaning | |----|--------| | 0 | Valid Orbit v1.0 intent | | 1 | Invalid intent | | 2 | Usage, file, or JSON error |

Example

orbit validate valid.json
# VALID
orbit validate invalid.json
# INVALID: ERR_OPEN_URL_REQUIRED

Programmatic Usage

import { validateOrbitIntent } from "@mnde/orbit-validator";

const intent = {
  orbit: "1.0",
  id: "example-123",
  action: "open",
  payload: {
    url: "https://example.com"
  }
};

const result = validateOrbitIntent(intent);

if (result.valid) {
  console.log("Intent is valid");
} else {
  console.error("Invalid intent:", result.code);
}

Orbit v1.0 Validation Rules

Required fields

  • orbit — must be exactly "1.0"
  • id — non-empty string
  • action — string from the allowed vocabulary
  • payload — object

Allowed actions (v1.0)

| Action | Requirements | |------|-------------| | open | payload.url must be a non-empty string |

Unknown actions are rejected.


Error Codes

Error codes are stable and intentional. They are designed to match across all Orbit SDKs.

| Code | Meaning | |----|--------| | ERR_NOT_OBJECT | Root value is not an object | | ERR_ORBIT_VERSION | Missing or invalid Orbit version | | ERR_ID_INVALID | Missing or invalid id | | ERR_ACTION_INVALID | Missing or invalid action | | ERR_ACTION_UNKNOWN | Action not in v1.0 vocabulary | | ERR_PAYLOAD_INVALID | Missing or invalid payload | | ERR_OPEN_URL_REQUIRED | open action requires payload.url |


Design Guarantees

This validator guarantees:

  • Fail-closed behavior
  • No side effects
  • No execution
  • Deterministic results
  • Protocol correctness over convenience

If the input is invalid, the output is invalid. Always.


Versioning

  • This package implements Orbit Protocol v1.0
  • Future protocol versions will be released as explicit updates
  • Backward compatibility is never guessed

License

MIT


Project philosophy

Orbit is infrastructure. Infrastructure should be boring, predictable, and hard to misuse.

This validator exists to make incorrect behavior impossible.