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

versoly-js-client

v0.0.3

Published

Node.js SDK client for the Versoly API

Readme

Versoly JS Client

npm shield

The Versoly JavaScript SDK provides convenient access to the Versoly Data API for apps written in JS/TS.

Documentation

Explore the API reference documentation.

Install

pnpm install versoly-js-client

Usage

import { VersolyClient } from 'versoly-js-client';

const client = new VersolyClient({ token: 'f77e6400-0814-4582-9185-03dd13f7ef8a' });
const { data: sites, error } = await client.sites.list();
// {
//   data: [
//     {
//       id: 'a813080b-2e29-4a1e-838f-dc510e49290a',
//       name: 'exceed-kindly-1706940885',
//       workspaceId: 'a813080b-2e29-4a1e-838f-dc510e49290a',
//       createdAt: '2024-02-03T06:14:45.000Z',
//       updatedAt: '2024-10-04T04:19:15.966Z'
//     },
//   ]
// }

const siteId = 'a813080b-2e29-4a1e-838f-dc510e49290a';
const { data: site, error } = await client.sites.get({ path: { siteId } });

if (error) {
  console.log('Error:', error);
  return;
}
console.log(site);
// {
//   id: 'a813080b-2e29-4a1e-838f-dc510e49290a',
//   name: 'exceed-kindly-1706940885',
//   workspaceId: 'a813080b-2e29-4a1e-838f-dc510e49290a',
//   createdAt: '2024-02-03T06:14:45.000Z',
//   updatedAt: '2024-10-04T04:19:15.966Z'
// }

FAQ

Why do you use path, body and query?

We currently use @hey-api/openapi-ts to autogenerate the API, it is possible to simplify the function parameters. However we decided that being explicit will make adding new features easier in the future. Features such as pagination, ordering and filtering.

Why do return {data, error} instead of the object

Clean code bases will explicitly handle errors instead of throwing. Other SDKs recommend wrapping in try/catch, however it can be automated here instead. Also the errors follow web dev best practices such as having 401 (auth issues), 404 (not found), 409 (conflicts) and 500 (server issues).

Beta Status

This SDK is in Preview, and there may be breaking changes between versions without a major version update.

To ensure a reproducible environment (and minimize risk of breaking changes), we recommend pinning a specific package version.

Contributing

This SDK is mostly auto-generated, if you have feature request or ideas how to improve it feel free to use issues.

If you want to contribution to the README, those are always very welcome!