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

@approvio/api

v0.0.39

Published

This repository contains the OpenAPI specification for the Approvio backend, the tooling to generate the TypeScript API client, and TypeScript validators for the generated models using `fp-ts`.

Readme

Approvio API

This repository contains the OpenAPI specification for the Approvio backend, the tooling to generate the TypeScript API client, and TypeScript validators for the generated models using fp-ts.

Project Structure

  • openapi.yaml: Main entry point for the OpenAPI 3.0 specification.
  • openapi/: Directory containing split OpenAPI specification files referenced by the main openapi.yaml.
  • src/: Source code directory.
    • src/validators/: TypeScript validators for the generated OpenAPI models using fp-ts/Either.
    • src/utils/: Utility functions, including custom Jest matchers for testing validators.
  • test/: Test directory containing unit tests for the validators.
  • generated/: Auto-generated output directory containing the TypeScript API client models and code.

Getting Started

  1. Install Dependencies:

    yarn install
  2. Generate API Client:

    This command will generate the TypeScript API client in the generated/openapi directory.

    yarn generate:api

Usage

The generated API client can be consumed by other TypeScript/JavaScript projects.

Linting the OpenAPI Specification

To lint the openapi.yaml file and check for adherence to best practices and defined rules:

yarn lint:api

Linking and Publishing

Linking for Local Development

To link this package for local development in another project (e.g., approvio-frontend):

  1. Navigate to your consuming project (e.g., approvio-frontend):

    cd ../approvio-frontend
  2. Link the approvio-api package:

    yarn link "<path-to-approvio-api>"

Now, your consuming project will use the locally linked version of @approvio/api.

Publishing to NPM

To publish this package to an NPM registry:

  1. Ensure you are logged in to the correct NPM registry:

    yarn login
  2. Run yarn publish:

    yarn publish --access public

If you get an error like error Couldn't publish package: "https://registry.yarnpkg.com/@approvio%2fapi: Not found", try running npm login first.