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

@openfuseio/sdk

v0.2.1

Published

Openfuse SDK for Node.js - Circuit breaker management with zero runtime dependencies

Readme

Openfuse SDK for Node.js

npm version License

Node.js client for the Openfuse circuit breaker service. Zero runtime dependencies.

Installation

npm install @openfuseio/sdk

Requirements

Usage

import { OpenfuseCloud } from '@openfuseio/sdk'

const client = new OpenfuseCloud({
  systemSlug: 'checkout',
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret',
})

await client.bootstrap()

const recommendations = await client.withBreaker('recommendations', () => fetchRecommendations(userId),
  { onOpen: () => [] },
)

If recommendations breaker is open, onOpen returns an empty array immediately, no network call attempted.

Circuit Breaker States

  • Closed — Requests flow through normally
  • Open — Requests blocked, fallback triggered
  • Half-Open — Probe requests allowed to test recovery

API Reference

Core Methods

| Method | Description | | ----------------------------- | ----------------------------------------------------- | | bootstrap() | Fetch breaker configuration. Call once at startup. | | withBreaker(slug, fn, opts) | Execute function with circuit breaker protection. | | shutdown() | Flush metrics and clean up. Call before process exit. |

State Methods

| Method | Description | | ------------------------- | ------------------------------------- | | isOpen(slug, signal?) | Returns true if breaker is open. | | isClosed(slug, signal?) | Returns true if breaker is closed. | | getBreaker(slug) | Returns breaker details. | | listBreakers() | Returns all breakers for the system. | | invalidate() | Clear cached state and flush metrics. |

withBreaker Options

await client.withBreaker('my-breaker', () => doSomething(), {
  onOpen: () => fallbackValue, // Called when breaker is open
  onUnknown: () => degradedValue, // Called when state can't be determined
  timeout: 5000, // Timeout in ms for the wrapped function
  signal: abortController.signal, // AbortSignal for cancellation
})

Self-Hosted

import { Openfuse } from '@openfuseio/sdk'

const client = new Openfuse({
  baseUrl: 'https://openfuse.internal.mycompany.com',
  systemSlug: 'checkout',
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret',
})

await client.bootstrap()

License

Elastic License 2.0