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

@wincc-oa/wui-oarxjs-data

v1.2.2

Published

WinCC Open Architecture Dashboard project.

Readme

WinCCOA WebComponent Dashboard — wui-oarxjs-data

This package is part of the workspace for the WinCC Open Architecture WebComponent Dashboard, built using Lit and managed with Nx.

Usage information and reference details can be found in the WinCC OA documentation.

Overview

Cached, reference-counted wrappers around the bare-metal OaRxJsApi (from @etm-professional-control/oa-rx-js-api). Pick the handlers in this package when the same data is consumed by more than one component or service — they share a single underlying server subscription per DP and emit cached values immediately on subscribe.

Use the underlying OaRxJsApi directly for one-off subscriptions or when you need its full feature surface; use the handlers here when you want subscription sharing, ref-counting, and immediate cached values. See @etm-professional-control/oa-rx-js-api README for the underlying API.

Services

Resolved via tsyringe. Subscribe to one or more datapoints in a single call. Multiple subscribers to the same DP share one underlying connection.

import { DpConnectHandler } from '@wincc-oa/wui-oarxjs-data/dp-connect-handler.js';
import { container } from 'tsyringe';

const dpConnectHandler = container.resolve<DpConnectHandler>(DpConnectHandler);

dpConnectHandler.dpConnect(['System1:Dp1.', 'System1:Dp2.']).subscribe((values) => {
  // emission shape: { 'System1:Dp1.': v1, 'System1:Dp2.': v2 } — keyed by dpName
  const v1 = values['System1:Dp1.'] as number;
  const v2 = values['System1:Dp2.'] as number;
});

Options:

dpConnectHandler.dpConnect(dataPaths, {
  throwErrorOnMissingDataPaths: true, // surface missing-DP errors instead of returning silent empties
  throttle: true // sample updates to ~1/s via a central timer (default: false)
});

| Aspect | OaRxJsApi.dpConnect | DpConnectHandler.dpConnect | | -------------- | --------------------------------------------------------- | ----------------------------------------------------------------------- | | Signature | dpName: string \| string[] | dataPaths: string[] (array only) | | Emission shape | { dp: string[], value: unknown[] } (positional) | { [dpName: string]: unknown } (keyed by name) | | Initial value | First emission when backend responds (use true 2nd arg) | From cache, immediately on subscribe | | Sharing | One server connection per call | Reference-counted; subscribers share one underlying connection | | Throttling | None | Optional throttle option | | When to pick | One-off subscription, single owner | DP shared across components/services, or you want cached initial values |

Used by

  • wui-context-dpconnect (and other wui-context-* elements that read DPs) — see @wincc-oa/wui-oarxjs-context README
  • Long-lived shared services in the dashboard resolve DpConnectHandler rather than calling OaRxJsApi.dpConnect directly

License

MIT