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 🙏

© 2024 – Pkg Stats / Ryan Hefner

walisto

v0.2.4

Published

A widget to display crypto addresses

Downloads

35

Readme

Walisto

A web component widget to list your crypto wallets

Installation

You can use a CDN and add the followin to the head of your page:

<!-- using unpkg -->
<script
  type="module"
  src="https://unpkg.com/walisto@<VERSION>/dist/index.js"
></script>

Usage

There's two components: <walisto-container> and <walisto-item>. <walisto-container> is only used for styling and it is completely optional.

<walisto-item> accepts the following props:

  • address: The address to display
  • name: The name of the currency
<walisto-container>
  <template>
    <walisto-item
      part="item"
      name="BTC"
      address="testbtcaddress"
    ></walisto-item>
    <walisto-item
      part="item"
      name="ETH"
      address="testethaddress"
    ></walisto-item>
  </template>
</walisto-container>

NOTE: You can add a part attribute to whatever you have in the template to style it.

The following CSS custom properties can be overriden on <walisto-item>:

walisto-item {
  --walisto-item-bg: #222;
  --walisto-font-color: #ddd;
  --walisto-button-font-color: var(--walisto-font-color);
  --walisto-button-bg: #555;
  --walisto-button-bg-hover: #777;
  --walisto-button-bg-active: #999;
  --walisto-outline-fv: 2px solid #07d;
}

And you can style the following parts:

  • term: the name of the currency
  • definition: the address and buttons
  • address: the address only
  • buttons: the buttons container
  • button: the buttons themselves

Modal styling

Since the modal gets added on the body itself, styling should be done separately using the following CSS custom properties:

walisto-modal {
  --walisto-modal-bg: #222;
  --walisto-modal-backdrop-bg: rgba(250, 250, 250, 0.2);
  --walisto-modal-button-bg: #555;
  --walisto-modal-button-bg-hover: #777;
  --walisto-modal-button-bg-active: #999;
  --walisto-modal-font-color: #ddd;
  --walisto-modal-button-font-color: var(--walisto-modal-font-color);
  --walisto-modal-font-family: monospace;
  --walisto-modal-outline-fv: 2px solid #07d;
}

And the following parts are available:

  • backdrop: the backdrop of the modal
  • content: the modal content itself
  • header: the header of the modal
  • title: the title (h1) on the header
  • button: the button for closing the modal
  • image: the QR code image