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

@hmiproject/helio-sdk

v1.0.0

Published

SDK for developing extensions to the [HELIO](https://helio-hmi.com) visualization system.

Readme

HELIO SDK

SDK for developing extensions to the HELIO visualization system.

Element SDK

The Element SDK allows creating controls, pages, etc. that can be used as building blocks of a HELIO project.

Example

import {
  createElement,
  createNamespace,
  createLibraryExtension,
  entities,
  props,
  RenderEntity,
} from '@hmiproject/helio-sdk';

// Create an extension namespace.
//
// This must use reverse domain name notation and will be used to
// reference new items in the extension.
//
// see: https://en.wikipedia.org/wiki/Reverse_domain_name_notation
const ns = createNamespace({ name: 'com.my-company' });

// Create a new HELIO Element in the namespace.
//
const customDashboardWidget = createElement(ns, {
  // This information will be used to display the element in the
  // IDEs, e.g. in the "Add Element" dialog.
  name: 'Demo Widget',
  description: 'Shows simple values on the dashboard',
  icon: { name: 'Airplane' },

  // Traits determine where this Element can be used.
  // For further information on the Traits system, consult the docs.
  traits: ['dashboard-widget'],

  // Each Element can store and use a set of properties. These will be
  // editable in the IDE and can be rendered inside the component.
  //
  // As these props may change over time, HELIO provides an automatic
  // migration framework that makes dealing with changing requirements
  // very easy.
  propsSchema: createPropsSchema()
    // V1: Initially, the element only contained a single prop called `label`.
    .initial({
      label: props.Entity({
        label: 'Label',
        defaultValue: entities.Translatable('Label'),
        valueType: 'String',
        optional: false,
      }),
    })
    // V2: A bit later, we needed to add a second prop called `value`.
    .migrate(
      {
        // The `label` prop is still used in the new version
        label: props.Entity({
          label: 'Label',
          defaultValue: entities.Translatable('Label'),
          valueType: 'String',
          optional: false,
        }),
        // Add a new `value` prop
        value: props.Entity({
          label: 'Value',
          defaultValue: entities.StaticValue(0),
          valueType: 'PrimitiveValue',
          optional: false,
        }),
      },
      // Whenever an old element instance is found in a project, HELIO
      // will automatically apply migration functions to it to make sure
      // data is in the most up-to-date state.
      //
      // Migration functions receive the previous props and need to return
      // updated props that match the new `propsSchema`.
      (prevProps) => {
        return {
          ...prevProps,
          // Provide a default `value` whenever we find an old instance
          // without that prop.
          value: entities.staticValue(0),
        };
      },
    ),

  // Whenever an instance of this element is rendered in the browser,
  // it will defer to the element's `Component`. This is a regular React
  // component that can implement arbitrary rendering logic to display
  // its UI. It also receives all the instance's `props` that were configured
  // in the IDE.
  Component: (props) => {
    return (
      // Make the element selectable in the IDE
      <div ref={props.$heRef}>
        <div>
          Label: <RenderEntity entity={props.label} />
        </div>
        <div>
          Value: <RenderEntity entity={props.value} />
        </div>
      </div>
    );
  },
});

// All new elements need to be wrapped into a `LibraryExtension`.
const extension = createLibraryExtension({
  name: 'My Company HELIO Control Library',
  description: 'Provides components for displaying KPIs in HELIO',
  version: '1.0.0',
  author: 'ACME Inc.',

  elements: [customDashboardWidget],
});

// Extensions MUST provide a default export with the library extension
export default extension;