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

@oriva/sdk

v0.3.0

Published

Typed TypeScript SDK for the Oriva public API. Generated from the OpenAPI v3 spec.

Downloads

404

Readme

@oriva/sdk

Typed TypeScript SDK for the Oriva public API. Generated from the OpenAPI v3 spec — every endpoint, every request body, every response is fully typed.

Install

npm install @oriva/sdk

Quick start

import { createOrivaClient } from '@oriva/sdk';

const oriva = createOrivaClient({
  apiKey: process.env.ORIVA_API_KEY!, // oriva_pk_live_... or oriva_pk_test_...
});

const me = await oriva.getCurrentUser();
console.log(me.data?.email);

Get an API key at https://api.oriva.io/developer.

Examples

List profiles

const profiles = await oriva.listProfiles({
  query: { limit: 10, status: 'active' },
});

if (profiles.error) {
  console.error('API error:', profiles.error);
} else {
  for (const p of profiles.data?.profiles ?? []) {
    console.log(p.id, p.displayName);
  }
}

Create a group

const result = await oriva.createGroup({
  body: {
    name: 'Engineering',
    description: 'Eng team workspace',
    visibility: 'private',
  },
});

if (result.data) {
  console.log('Created group:', result.data.id);
}

Error handling

Every SDK method returns { data, error, response }. Check response.ok for HTTP-level success, or check error for structured error payloads:

const result = await oriva.getProfile({ path: { profileId: 'xyz' } });

if (!result.response.ok) {
  // HTTP 4xx/5xx
  console.error(`HTTP ${result.response.status}:`, result.error);
} else {
  console.log('Got profile:', result.data);
}

Advanced: raw client + per-call overrides

createOrivaClient configures a singleton client. For multi-tenant scenarios or per-request overrides, import the raw generated SDK:

import { rawClient, rawSdk } from '@oriva/sdk';

rawClient.setConfig({ baseUrl: 'https://staging.api.oriva.io' });
const result = await rawSdk.getCurrentUser({
  headers: { Authorization: `Bearer ${differentKey}` }, // per-call override
});

Generated from OpenAPI

This package is generated from the Oriva OpenAPI v3 spec using @hey-api/openapi-ts. When the API surface changes, regenerate with:

npm run generate

License

MIT