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

@ooopsstudio/services

v0.1.1

Published

Runtime service implementations and cross-service bridges for the Ooops System.

Readme

@ooopsstudio/services

Runtime service implementations and cross-service bridges for the Ooops System.
This package owns the concrete implementations for errors, logging, metrics, tracing, lifecycle, resilience, performance, and rate limiting.


Installation

pnpm add @ooopsstudio/services
# or
npm install @ooopsstudio/services

Usage

import {createProductionLogging} from '@ooopsstudio/services/logging/public/production'
import {createProductionResilience} from '@ooopsstudio/services/resilience/public/production'

const logger = createProductionLogging()
const resilience = createProductionResilience({logger})

logger.info('System initialized')

await resilience
	.wrap('fetch-profile', {
		operationKind: 'external.http',
		resource: 'api.users'
	})
	.withRetry('external.http')
	.withTimeout(1500)
	.build()(async(signal) => {
		const response = await fetch('https://example.com/me', {signal})
		return await response.json()
	})

Tree-shakeable public subpaths are available where they are intentionally supported:

  • @ooopsstudio/services/errors/*
  • @ooopsstudio/services/errors/sinks
  • @ooopsstudio/services/logging/analytics
  • @ooopsstudio/services/logging/sinks
  • @ooopsstudio/services/logging/public/*
  • @ooopsstudio/services/metrics/public
  • @ooopsstudio/services/metrics/public/*
  • @ooopsstudio/services/metrics/sinks
  • @ooopsstudio/services/performance/public/*
  • @ooopsstudio/services/rate-limit/public
  • @ooopsstudio/services/rate-limit/public/*
  • @ooopsstudio/services/resilience/public/*
  • @ooopsstudio/services/tracing/sinks
  • @ooopsstudio/services/tracing/public/*
  • @ooopsstudio/services/lifecycle/public/*
  • @ooopsstudio/services/bridges/*

Package size regression checks are enforced at two levels:

  • the narrow @ooopsstudio/services root facade
  • per-family preset bundles for metrics, errors, logging, performance, rate-limit, resilience, tracing, and lifecycle

Default imports in docs should keep using the narrow family preset paths above instead of the package root.

External Sink Pattern

External observability backends are standardized at the service layer.

  • logging: @ooopsstudio/services/logging/sinks
  • metrics: @ooopsstudio/services/metrics/sinks
  • errors: @ooopsstudio/services/errors/sinks
  • tracing: @ooopsstudio/services/tracing/sinks

Each sink-enabled family follows the same public construction pattern:

  • create<Service>Sink(config)
  • resolve<Service>Sink({sink?, sinkConfig?})
  • createNoop<Service>Sink()

Rules:

  • Core DI ports stay minimal. Sinks are service-level APIs, not core contracts.
  • Presets accept sink and sinkConfig so applications resolve env into provider config once.
  • Use sinks for runtime transport to external backends.
  • Use bridges for cross-service coordination inside Ooops.
  • Use browser telemetry adapters separately for browser-only SDKs.

Consumer apps should resolve env/config into sinkConfig objects and pass them into service presets instead of owning provider transports directly.

Tracing backends such as Tempo should be configured through the tracing sink layer:

import {createProductionTracing} from '@ooopsstudio/services/tracing'

const tracing = createProductionTracing({
	sinkConfig: {
		provider: 'otlp',
		endpoint: 'http://tempo:4318/v1/traces'
	}
})

Architecture Overview

@ooopsstudio/services is part of the Ooops System monorepo — a modular infrastructure suite for reproducible web applications.

| Layer | Package | Purpose | |-------|----------|----------| | Core | @ooopsstudio/core | Contracts, ports, and runtime primitives | | Services | @ooopsstudio/services | Runtime service implementations | | SDK | @ooopsstudio/sdk | Developer utilities | | Frameworks | @ooopsstudio/react, @ooopsstudio/svelte | Framework adapters |


Requirements

  • Node: 20.x or later
  • TypeScript: Strict mode
  • Package Manager: pnpm 10+

License

MIT © Ooops Studio