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

@crispy-streaming/crispy-addon-client

v2.0.1

Published

Modern TypeScript client for the Stremio add-on protocol (v3) for Web, React Native, and Node 18+

Readme

@crispy-streaming/crispy-addon-client

Modern, TypeScript-first client for the Stremio add-on protocol (v3).

Based on (and API-inspired by) the upstream stremio-addon-client.

  • Works in Web apps, React Native, and Node 18+.
  • Promise-first API with optional callback adapter.
  • Strong typed errors and transport-level cache metadata.
  • ESM-first package with CJS compatibility and tree-shakable transport entrypoints.

Compatibility notes

  • Errors are real Error instances (AddonClientError) with string codes (for example, ERR_NOT_FOUND).
  • detectFromURL() does not run stremio-addon-linter by default. Linting is an optional hook.
  • stremio:// and crispy:// URLs are accepted as input and normalized to https://.
  • http:// add-on URLs are kept as-is (no forced upgrade to https://).
  • IPFS support is provided through an HTTP gateway shim (ipfs:// / ipns:// URLs are preserved as transportUrl).
  • Legacy transport behavior is preserved for /stremio/v1 and /stremio/v1/stremioget endpoints.

Install

npm install @crispy-streaming/crispy-addon-client

Quick start (Web / Node)

import { detectFromURL } from "@crispy-streaming/crispy-addon-client";

const detected = await detectFromURL("https://v3-cinemeta.strem.io/manifest.json");

if (detected.addon) {
  const addon = detected.addon;
  const catalog = await addon.get("catalog", "movie", "top", { skip: 0 });
  console.log(catalog);
}

React Native usage

import { fromDescriptor } from "@crispy-streaming/crispy-addon-client";

const addon = await fromDescriptor({
  manifest: {
    id: "org.example.addon",
    resources: ["meta"],
    types: ["movie"],
  },
  transportUrl: "https://example.com/manifest.json",
});

const meta = await addon.get("meta", "movie", "tt0111161");

Core API

AddonClient

  • manifest (readonly/frozen)
  • transportUrl
  • flags (readonly/frozen)
  • isSupported(resource, type, id): boolean
  • get(resource, type, id, extra?): Promise<unknown>
  • get(resource, type, id, extra?, callback) optional callback adapter
  • getWithMeta(resource, type, id, extra?) to access cache metadata
  • destroy(): Promise<void>
  • toDescriptor(): AddonDescriptor

Top-level functions

  • fromDescriptor(descriptor): Promise<AddonClient>
  • detectFromURL(url, options?): Promise<{ addon?: AddonClient; collection?: AddonCollectionLike }>
  • mapURL(url): string
  • stringifyRequest(args): string

AddonCollection

  • load(descriptors): Promise<void>
  • save(): AddonDescriptor[]
  • getAddons(): AddonClient[]
  • add(addon): void
  • remove(addon): void
  • includes(addon): boolean
  • clone(): AddonCollection

Error handling

import { ERR_NOT_FOUND, isAddonClientError } from "@crispy-streaming/crispy-addon-client";

try {
  await addon.get("meta", "movie", "tt123");
} catch (error) {
  if (isAddonClientError(error) && error.code === ERR_NOT_FOUND) {
    console.log("Resource not found");
  }
}

Optional lint hook for detectFromURL

import { detectFromURL } from "@crispy-streaming/crispy-addon-client";

const result = await detectFromURL("https://example.com/manifest.json", {
  lint: async ({ kind, value }) => {
    // Plug in stremio-addon-linter (or your own validator) here.
    // Return shape: { valid: boolean, ...extraMetadata }
    return { valid: true, kind, valueType: typeof value };
  },
});

Tree-shakable transport entrypoints

import { HttpTransport } from "@crispy-streaming/crispy-addon-client/transports/http";
import { IpfsShimTransport } from "@crispy-streaming/crispy-addon-client/transports/ipfsShim";
import { LegacyTransport } from "@crispy-streaming/crispy-addon-client/transports/legacy";

Development

npm run typecheck
npm test
npm run build

Legacy code

The previous JavaScript/CommonJS implementation is kept in legacy/ for reference and parity checks.