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

@rivet-one/rivet

v0.0.4

Published

The library that calls your APIs for you

Downloads

34

Readme

Rivet

The library that calls your APIs for you

Rivet parses third party API documentation and automatically transforms requests and responses to the shapes of your choosing, so you can leverage data structures that your application already uses. Any external API you use in your application will "just work."

Installation

npm install @rivet-one/rivet

Or the equivalent in your package manager.

You must use the @rivet-one-scoped package. Omitting the scope will install something else.

Use

There are two steps to using Rivet to make an API call: configuring the Proc in the Rivet dashboard; and calling the Proc from your code.

  1. Configuring a Proc in the Rivet dashboard
    1. Visit the Rivet dashboard, log in, and select a Project or create a new Project.
      1. Projects are one-to-one with your apps. For each application you build which uses Rivet, you will create one Project.
      2. Note the API Key in the Project view; you will need this later
    2. Select a Proc or create a new Proc.
      1. Procs are one-to-one with external API calls. For each request you send to a third-party API, you will create one Proc.
      2. Note the Proc ID in the Proc view; you will need this later
    3. Follow the prompts, which will guide you to select a library, provide authentication secrets, define a request and response shape, and a text prompt.
  2. Calling a Proc from your code
    1. Set the environment variable RIVET_API_KEY to the API Key found in your Project.
    2. Import rivet and call rivet.rpc with an options object and a data object.
      1. If using TypeScript, rivet.rpc can optionally be parameterized with a request type and response type.

A full example in TypeScript and NodeJS might look like this:

import rivet from "rivet";
...
type Req = { foo: string };
type Rsp = { bar: string };
const rsp = await rivet.rpc<Req, Rsp>({procId: "proc1234"}, {foo: "abc"});
console.log(rsp.response?.bar);