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

webcomponents2

v2.0.8

Published

A library of web components in Google Polymer 2

Readme

webcomponents2

A library of web components in Google Polymer v2

Installation

Install package with Bower and add it to your development dependencies:

npm install --save webcomponents2

Example

See examples in link (https://michael-silva.github.io/webcomponents2/)

Components

Alert

<wc-alert class="warning" dismissible>
    <span dismiss class="dismiss-button"><i class="fa fa-close"></i></span>
    <h5><i class="fa fa-info-circle"></i> Title</h5>
    <p>Alert text here.</p>
</wc-alert>

Carousel

<wc-carousel infinite-loop auto-play interval="3000">
    <img data-src="https://app-layout-assets.appspot.com/assets/bg1.jpg">
    <img data-src="https://app-layout-assets.appspot.com/assets/bg2.jpg">
    <img data-src="https://app-layout-assets.appspot.com/assets/bg3.jpg">
    <img data-src="https://app-layout-assets.appspot.com/assets/bg4.jpg">
</wc-carousel>

Collapse

<wc-collapse>
    <h3 toggle-collapse>Toggle Collapse</h3>
    <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut tempor ligula diam, et sollicitudin felis pretium a. Pellentesque vehicula eleifend tortor, et vehicula tellus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis congue luctus est id finibus. Morbi pellentesque, leo vitae pretium iaculis, justo turpis efficitur ex, at varius purus velit eu nisl. Mauris imperdiet nisi quis risus vestibulum, ut placerat erat faucibus. Mauris iaculis tempus libero, vel sagittis ligula porta ut.</p>
</wc-collapse>

Datepicker

<!--//In development-->

Dropdown

<wc-dropdown>
    <button toggle-dropdown>Toggle Dropdown</button>
    <wc-dropdown-menu>
        <a href="#">Action</a>
        <a href="#">Another action</a>
        <a href="#">Something else here</a>
    </wc-dropdown-menu>
</wc-dropdown>

Input Mask

<wc-inputmask mask="__/__/____">
    <input type="text" placeholder="00/00/0000">
</wc-inputmask>

Modal

<wc-modal  has-backdrop allow-scroll is-open>
    <header>
        <a href="#" class="pull-right" close-modal>x</a>
        <h3>Modal Header</h3>
    </header>
    <main>
        <p>Modal body example</p>
    </main>
    <footer>
        <button class="btn btn-confirm" type="button">Confirm</button>
        <button class="btn btn-cancel" type="button" close-modal>Cancel</button>
    </footer>
</wc-modal>

Popover

<a id="plink" href="javascript:;">Popover on top</a>
<wc-popover target="#plink" direction="top">
    <h3>Top popover</h3>
    <p>A propover directed to top</p>
</wc-popover>

Tab Panel

<wc-tabpanel>
    <wc-tabnav>
        <a href="#tab1" active>Tab 1</a>
        <a href="#tab2">Tab 2</a>
        <a href="#tab3">Tab 3</a>
        <a href="#tab4">Tab 4</a>
    </wc-tabnav>
    <wc-tabcontent>
        <section id="tab1">
            <h2>Tab 1</h2>
            <p>Content of tab panel</p>
        </section>
        <section id="tab2">
            <h2>Tab 2</h2>
            <p>Content of tab panel</p>
        </section>
        <section id="tab3">
            <h2>Tab 3</h2>
            <p>Content of tab panel</p>
        </section>
        <section id="tab4">
            <h2>Tab 4</h2>
            <p>Content of tab panel</p>
        </section>
    </wc-tabcontent>
</wc-tabpanel>

Tooltip

    <wc-tooltip direction="top" title="Tooltip on top"><a href="javascript:;">Top tootip</a></wc-tooltip>

Roadmap

  • Implement datepicker with momentjs
  • Improve input mask
  • Increment styles of components
  • Review and test all components