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

@fluencelabs/vodopad-api

v0.8.135

Published

Vodopad API types to use together with openapi-fetch

Readme

Vodopad API Typescript types

Usage example

How to start vodopad

In https://github.com/fluencelabs/vodopad root directory

just start

Where to get JWT Token

Generate JWT on http://demo.web3auth.io

After login, see the JWT Token in View User Info under idToken

package.json

{
  "type": "module",
  "scripts": {
    "start": "tsx main.ts"
  },
  "devDependencies": {
    "@fluencelabs/vodopad-api": "^0.0.3-files-2",
    "openapi-fetch": "^0.13.0",
    "tsx": "^4.19.2"
  }
}

main.ts

import type { paths } from '@fluencelabs/vodopad-api'
import createClient from 'openapi-fetch'

const client = createClient<paths>({ baseUrl: 'http://localhost:3000' })

let jwt = `eyJhbGciOiJFUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6IlRZT2dnXy01RU9FYmxhWS1WVlJZcVZhREFncHRuZktWNDUzNU1aUEMwdzAifQ.eyJpY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Q.wTKjl-60H2_nGd8dJ3ORfA6K17FppVFXjGSUa4k8G3YkfKu_qwcEJ4fO7Lx7VZndb6AyQRqW65se6XQdogiupg`

let user_response = await client.POST('/users', {
  body: {
    walletPublicKey: '03a9cdc32f43afadecb574cd53ff779a0793d246e2e135788750a48fb997c2adef',
    typeOfLogin: 'google'
  },
  params: {
    header: {
      Authorization: `Bearer ${jwt}`,
    },
  },
})
let user = user_response.data
console.log('user:', user)

// the same as just using fetch, but typechecked
let api_key_response = await client.POST('/api_keys/jwt', {
  body: {
    scopes: [],
  },
  params: {
    header: {
      Authorization: `Bearer ${jwt}`,
    },
  },
})

let apiKey = api_key_response.data?.apiKey
console.log('API key:', apiKey)