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

@distyra/sdk

v0.5.0

Published

TypeScript SDK for the Distyra Transaction Enrichment & SME Underwriting API. Generated from the committed OpenAPI spec; thin, typed wrapper around openapi-fetch.

Readme

@distyra/sdk

TypeScript client for the Distyra Transaction Enrichment & SME Underwriting API.

Type-safe by construction: the types are generated from the same committed OpenAPI spec that powers the API and the public reference, so requests and responses never drift from the live API.

Install

npm i @distyra/sdk

Node 20+. The package ships ESM + CommonJS types and depends only on openapi-fetch.

Quickstart

Get a free sandbox key (10,000 calls/month, no card) at distyra.com.

import { createDistyraClient } from '@distyra/sdk';

const distyra = createDistyraClient({ apiKey: process.env.DISTYRA_KEY! });

const { data, error } = await distyra.POST('/v1/enrich', {
  body: {
    descriptor: 'CARREFOUR MARKET 75011 PARIS FR 14/03',
    amount: -23.47,
    currency: 'EUR',
    country_hint: 'FR',
    mcc: '5411',
  },
});

if (error) {
  // `{ error, detail? }` envelope on 4xx/5xx
  throw new Error(error.detail ?? error.error);
}

// `data` is fully typed against the EnrichResponse schema
console.log(data.merchant.name, data.category.primary);

Options

createDistyraClient(options):

| Option | Type | Default | Notes | |---|---|---|---| | apiKey | string | — | Required. Your API key (sk_…). | | baseUrl | string | https://api.distyra.com | Override for local dev / staging. | | headers | Record<string, string> | — | Extra headers merged on every request. |

The returned client is a typed openapi-fetch client — use .GET, .POST, etc. against any path in the spec, with full request/response typing.

Lower-level access

The generated paths and operations types are re-exported if you want to build your own openapi-fetch client or reference response shapes directly:

import type { operations } from '@distyra/sdk';

type EnrichResponse =
  operations['enrichSingle']['responses']['200']['content']['application/json'];

Reference

Full API reference (every endpoint, live parameters, response schemas): https://api.distyra.com/docs

License

MIT