Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lokuyow/nostr-zap-view

View any nostr zaps from anywhere, supporting npub, nprofile, note, and nevent identifiers.
https://github.com/lokuyow/nostr-zap-view

bitcoin javascript lightning-network nostr web-components

Last synced: 2 months ago
JSON representation

View any nostr zaps from anywhere, supporting npub, nprofile, note, and nevent identifiers.

Awesome Lists containing this project

README

        

# nostr-zap-view
[![NPM](https://img.shields.io/npm/v/nostr-zap-view.svg)](https://www.npmjs.com/package/nostr-zap-view)

View any nostr zaps from anywhere, supporting npub, nprofile, note, and nevent identifiers.

## Usage

To configure a button for displaying zap information, use the following attributes:

- `data-title`: (Optional) Custom title for the zap dialog. If left empty, the identifier will be used as the title.
- `data-identifier`: The Nostr identifier (npub, nprofile, note, or nevent) for which zap information will be displayed.
- `data-max-count`: (Optional) Maximum number of zaps to display. Default is 5 if not specified.
- `data-zap-color-mode`: (Optional) Enable or disable color mode for zap amounts. Set to "true" to enable and "false" to disable.
- `data-relay-urls`: Comma-separated list of relay URLs to fetch zap information from.

```html

View zaps 👀

```

Add this script tag right before the bottom closing body tag.
```js

```

Example page: https://lokuyow.github.io/nostr-zap-view/