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

@openverb/format

v2.0.0-beta.3

Published

OpenVerb document format (.ov) parser, validator, and runtime bridge

Readme

@openverb/format

The official parsing and validation engine for the .ov file format.

The .ov file format is a declarative, portable YAML blueprint for AI-driven semantic software workflows. Instead of executing arbitrary generated code, .ov files orchestrate standardized actions (Verbs) and seamlessly pipe data between them, allowing AI to generate safe, executable actions for your applications.

Installation

npm install @openverb/format

What is a .ov file?

A .ov file consists of metadata, user prompts (inputs), and a sequential pipeline of actions that map directly to the OpenVerb 2.0 runtime.

Example: gis-overlap.ov

version: "1.0"
name: "Location Overlap Analysis"
description: "Geocodes two locations, buffers them, and highlights where the zones overlap."

inputs:
  loc_a:
    type: "string"
    description: "The first location"
    default: "Empire State Building, New York"
  loc_b:
    type: "string"
    description: "The second location"
    default: "Times Square, New York"
  radius:
    type: "number"
    description: "Buffer radius in meters"
    default: 800

actions:
  # 1. Geocode both locations
  - verb: gis.geocode_address
    params:
      address: "${inputs.loc_a}"
    returns: pt_a

  - verb: gis.geocode_address
    params:
      address: "${inputs.loc_b}"
    returns: pt_b

  # 2. Draw buffers around both points using the returned geometry
  - verb: gis.buffer_geometry
    params:
      geometry: "${pt_a.geometry}"
      distance: "${inputs.radius}"
      units: "meters"
    returns: buffer_a

  - verb: gis.buffer_geometry
    params:
      geometry: "${pt_b.geometry}"
      distance: "${inputs.radius}"
      units: "meters"
    returns: buffer_b

  # 3. Find and highlight the intersecting area between the two buffers
  - verb: gis.intersect_geometry
    params:
      geometry_a: "${buffer_a.geometry}"
      geometry_b: "${buffer_b.geometry}"
    returns: overlapping_zone

API Usage

parseOV(yamlString: string): OVScript

Parses a raw YAML string into a validated OVScript AST object. It will throw detailed errors if the YAML structure is malformed or if required fields are missing.

import { parseOV } from '@openverb/format';

const fileContent = await fs.readFile('script.ov', 'utf-8');
const script = parseOV(fileContent);

console.log(script.name); // "Location Overlap Analysis"
console.log(script.inputs); // { loc_a: { type: "string", ... }, ... }

bridgeToRuntime(script: OVScript, options: BridgeOptions): ExecuteRequest[]

Converts a parsed .ov script into an array of ExecuteRequest objects that can be directly fed into the @openverb/runtime engine.

import { parseOV, bridgeToRuntime } from '@openverb/format';
import { createRuntime } from '@openverb/runtime';

// 1. Parse the script
const script = parseOV(yamlContent);

// 2. Collect inputs from the user (e.g., via UI prompt or CLI)
const variables = {
  inputs: {
    loc_a: "Central Park",
    loc_b: "Times Square",
    radius: 500
  }
};

// 3. Bridge the script to runtime requests
const requests = bridgeToRuntime(script, {
  actor: { type: 'user', id: 'user-123' },
  context: { planId: 'pro' },
  variables
});

// 4. Pass the requests to the OpenVerb runtime (pseudo-code)
for (const req of requests) {
  await runtime.execute(req);
}

Variable Interpolation

The @openverb/format engine relies heavily on dynamic variable substitution to pipe data between steps.

Variables are denoted using the ${variable.path} syntax.

  • ${inputs.*}: References values provided by the user prior to execution.
  • ${step_returns.*}: References the output data of a previous action.

Note: As of version 2.0.0-beta.2, variable substitution between steps must currently be implemented in the execution loop by your application logic while we finalize the native executeScript method in @openverb/runtime.