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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@openverb/cli

v2.0.0-alpha.6

Published

OpenVerb CLI tools

Downloads

509

Readme

@openverb/cli

Command-line tools for the OpenVerb Framework.

Installation

npm install -g @openverb/cli

Or use with npx:

npx @openverb/cli --help

Commands

openverb validate [path]

Validate verb definitions.

# Validate all verbs in current directory
openverb validate

# Validate specific directory
openverb validate ./verbs

# Validate single file
openverb validate ./verbs/user.create.json

Output:

✓ user.create.json - Valid
✓ user.update.json - Valid
✗ todo.create.json - Invalid
  - inputSchema.properties.title: Required field missing
  - effects: Must be an array

openverb init [options]

Initialize OpenVerb in a project.

# Interactive setup
openverb init

# With options
openverb init --typescript --example todo

Options:

  • --typescript - Use TypeScript
  • --javascript - Use JavaScript
  • --example <name> - Include example verbs (todo, user, blog)

Creates:

openverb/
├── verbs/           # Verb definitions
│   └── example.ping.json
├── handlers/        # Handler implementations
│   └── example/
│       └── ping.ts
└── runtime.ts       # Runtime configuration

openverb generate <type> <name>

Generate boilerplate code.

# Generate a verb + handler
openverb generate verb user.create

# Generate just a verb definition
openverb generate verb todo.update

# Generate a handler
openverb generate handler user/create

Generated files:

openverb/
├── verbs/
│   └── user.create.json    # Generated verb definition
└── handlers/
    └── user/
        └── create.ts       # Generated handler

Verb Validation Rules

The validator checks:

  • ✅ Required fields: id, version, summary, handler
  • ✅ Schema validation: inputSchema, outputSchema are valid JSON Schema
  • ✅ Effects array: Valid effect names
  • ✅ ID format: Follows namespace.action pattern
  • ✅ Version format: Semantic versioning (e.g., 1.0.0)
  • ✅ Handler path: Exists in handlers directory

Example Workflow

# 1. Initialize project
openverb init --typescript

# 2. Generate a new verb
openverb generate verb user.register

# 3. Edit the generated files
# openverb/verbs/user.register.json
# openverb/handlers/user/register.ts

# 4. Validate before deployment
openverb validate

# 5. Deploy your app!

Configuration

Create .openverbrc.json in your project:

{
  "verbsDir": "./openverb/verbs",
  "handlersDir": "./openverb/handlers",
  "typescript": true
}

Integration with Build Tools

package.json scripts

{
  "scripts": {
    "validate": "openverb validate",
    "generate": "openverb generate",
    "prebuild": "openverb validate"
  }
}

CI/CD

# .github/workflows/validate.yml
name: Validate Verbs
on: [push]
jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: npx @openverb/cli validate

Related Packages

License

MIT