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

@paradox-design/core

v0.2.0

Published

Base class and shared mechanisms for Paradox Design System components

Readme

@paradox-design/core

The base class and shared mechanisms of Paradox Design System components.

You will rarely install this package on its own — it arrives as a dependency of @paradox-design/components. Reach for it directly only when you build your own component that follows the system's conventions.

Installation

npm install @paradox-design/core

lit is a peer dependency: npm 7+ and pnpm install it automatically, and the application ends up with a single copy of Lit. If your project already uses Lit, it must be version 3.

Contents

PdxElement

A base class extending LitElement. It adds three things:

  • a reset inside the shadow root — global application styles do not cross the shadow boundary, so every component has to take care of box-sizing and default margins itself;
  • emit() — a shortcut for dispatching events with composed: true enforced;
  • direction — the resolved text direction (ltr / rtl).
import { PdxElement } from '@paradox-design/core';

export class MyComponent extends PdxElement {
  private confirm(): void {
    this.emit('change', { detail: { value: 42 } });
  }
}

Why composed: true is enforced An event without this flag stops at the Shadow DOM boundary. The component looks fine, yet the listener in the application never gets notified. Angular, React and a plain addEventListener on the host all stay equally silent — the symptom is "the click does nothing", without a single error in the console.

Event names get the pdx- prefix, so emit('change') dispatches pdx-change. This prevents collisions with the native change event that bubbles up from form fields inside the component.

defineElement(name, constructor)

Registers a custom element and skips repeated calls instead of throwing.

import { defineElement } from '@paradox-design/core';

defineElement('pdx-my-component', MyComponent);

Why not customElements.define() directly Registering the same name twice throws NotSupportedError, which aborts the whole module. It happens in practice: two versions of the package in the dependency tree, hot module replacement during development, a micro-frontend loaded twice. defineElement does nothing in that case and lets the application keep running.

resetStyles

A reset stylesheet meant for static styles. PdxElement includes it automatically.

License

MIT © Paradox Software