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

@konemono/nostr-share-component

v0.4.4

Published

[JA](./README-ja.md)

Readme

JA

nostr-share-component

Usage

Demo

1. Insert the following code in <head>

Replace the version part {version} with the appropriate version (e.g. 0.0.10).

<script src="
https://cdn.jsdelivr.net/npm/@konemono/nostr-share-component@{version}/dist/nostr-share-component.min.js
"></script>

2. Place the following code anywhere

<nostr-share></nostr-share>
  • You can specify the strings you want to share in data-text.
  • If not specified, the URL and title of the site where you installed the site will be shared.

Example:

<nostr-share data-text="Example Text"></nostr-share>

3. Specify the button type (optional)

The following values ​​can be specified for data-type:

  • mini
  • icon (The size of the icon can be specified with icon-size.)
  • If not specified, default will be used.

4. Create a Custom Share Button

You can individually customize the button and text styles by using part(button) and part(text).

nostr-share::part(button) {
  background-color: rgb(0, 136, 255);
}

nostr-share::part(button):hover {
  background-color: rgb(255, 0, 0);
}

nostr-share::part(text) {
  font-style: italic;
  font-family: "Courier New", Courier, monospace;
  font-size: medium;
}

Client Adding Guide

This project supports multiple clients to provide link sharing functionality. Please follow the guide below to add new clients to your list and submit a pull request.

Client List Format

Add new clients to the list array in the following format:

{
name: "Client name",
url: "https://example.com/share?text={text}",
icon: "https://example.com/favicon.ico",
}

Field Description

  • name: Name of the client (short and descriptive is recommended).
  • url: Link sharing URL of the client.
  • Enable dynamic link generation by including {text} parameters.
  • icon: Favicon URL of the client (optional, but please provide it if possible).

Notes

  • The current list format is experimental and may change in the future. Therefore, added clients may need to support format changes in the future.
  • Be careful when adding new clients so you don't affect other clients.

Support

If you have any questions or suggestions, please create an issue.