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

ews-component

v0.0.3

Published

Stencil Component Starter

Readme

EWS Component Library

A collection of StencilJS web components for the EWS project.

This library contains reusable web components such as layout managers, charts, and UI elements designed for high-performance and framework-agnostic usage.

Installation

To use ews-component in your project, install it via npm:

npm install ews-component

Available Components

  • ews-card: A versatile card component for displaying content.
  • ews-hex-grid: A grid layout with hexagonal cells.
  • ews-hex-shape: Individual hexagonal shape component.
  • ews-rib-layout: A responsive "ribcage" layout for hierarchical data.
  • ews-stripe-bar: A striped status or progress bar.

Local Development (StencilJS)

To start developing components locally, clone this repository and follow these steps:

  1. Install dependencies:

    npm install
  2. Start development server:

    npm start

    This will start a local dev server with hot-reloading.

  3. Build for production:

    npm run build
  4. Run tests:

    npm test

Usage

Framework Integration

Since these are standard Web Components, they work in any framework (React, Vue, Angular, Svelte) or with no framework at all.

Lazy Loading (Universal)

Include the loader script in your HTML:

<script type="module" src="https://unpkg.com/ews-component/dist/ews-component/ews-component.esm.js"></script>
<ews-rib-layout max-branches="4">
  <!-- Your content here -->
</ews-rib-layout>

Direct Import (React/Vite/NextJS)

import { defineCustomElements } from 'ews-component/loader';

defineCustomElements();

// Use in your component
<ews-stripe-bar percent={75} status="active"></ews-stripe-bar>

Documentation

For more detailed information on specific components, please refer to the documentation in each component's directory or the official StencilJS documentation.

Contributing & Adding New Components

To maintain consistency, please follow these steps when adding a new component:

  1. Generate Component: Use the Stencil CLI to scaffold your component:

    npm run generate

    Input the name with ews- prefix (e.g., ews-new-button).

  2. Naming & Directory:

    • Folder: src/components/ews-[name]/
    • Tag Name: ews-[name]
    • Class Name: Ews[Name] (PascalCase)
  3. Code Style Guidelines:

    • TypeScript & TSX: Always use TypeScript/TSX for component logic.
    • Styling: Use a dedicated CSS file ([name].css). Prefix all classes with ews- (e.g., .ews-card) to avoid global style collisions.
    • Reactivity: Use @Prop(), @State(), and @Event() decorators for state management and communication.
    • Documentation: Write clear JSDoc comments for props and events; Stencil will automatically update the component's readme.md.

Support Me!

Support me on Sociabuzz