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

@aahoughton/oav

v1.1.1

Published

HTTP-aware OpenAPI request/response validator. Batteries-included distribution: re-exports @aahoughton/oav-core, adds YAML readers, ships the `oav` CLI. For a zero-runtime-dep install, use @aahoughton/oav-core directly.

Downloads

376

Readme

oav

Batteries-included distribution of oav-core. Adds YAML readers and the oav CLI on top of the lean validator package; the programmatic surface is identical.

import { createValidator, createYamlFileReader } from "@aahoughton/oav";
import { loadSpec } from "@aahoughton/oav/spec";

const { document } = await loadSpec({
  reader: createYamlFileReader(),
  entry: "openapi.yaml",
});
const validator = createValidator(document);

When to use which

| Package | When to use | | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | oav | Includes YAML readers and the oav CLI binary. Pulls in yaml, commander, and esbuild (CLI-only). | | oav-core | Lean. Zero runtime dependencies. JSON specs only (or pre-parsed objects via the memory reader). Use on Cloudflare Workers, Vercel Edge, Lambda@Edge, or anywhere the YAML/CLI footprint isn't worth it. |

oav re-exports every subpath of oav-core at matching paths (oav/schema, oav/spec, oav/formats, oav/core, oav/schema/internals, oav/validator/internals). Code written against one swaps to the other by changing the package name in imports — no surface changes.

What this package adds

  • createYamlFileReader() — file reader for .yaml / .yml paths. Calling oav-core's createFileReader() on a YAML path throws an install-hint pointing here.
  • createSmartHttpReader() — HTTP reader that parses both JSON and YAML by inspecting Content-Type / file extension.
  • parseYamlString(source) — exposed for callers loading YAML out-of-band (e.g. fetched from a config service).
  • The oav CLI binaryoav resolve, oav validate, oav compile-schema, oav compile-spec. See packages/cli/README.md for commands and flags.

Everything else (createValidator, compileSchema, error helpers, formatters, formatSummary, toProblemDetails, HTTP-status helpers, …) is re-exported from oav-core. Documentation for those lives in:

Framework integration

oav is a validator, not a middleware package. Companion adapter packages cover the framework wiring: oav-express4, oav-express5, oav-fastify. See INTEGRATION.md for adapter recipes plus manual integration patterns for Next.js, Hono, Bun, and Deno via the Web Standards adapter.

See also