Title: Saiy2k Nostr Components
Author: saiy2k
Published: <strong>22 November 2025</strong>
Last modified: 3 October 2026

---

Search plugins

This plugin **hasn’t been tested with the latest three major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/saiy2k-nostr-components/assets/icon-256x256.png?rev=3400825)

# Saiy2k Nostr Components

 By [saiy2k](https://profiles.wordpress.org/saiy2k/)

[Download](https://downloads.wordpress.org/plugin/saiy2k-nostr-components.0.8.0.zip)

 * [Details](https://en-gb.wordpress.org/plugins/saiy2k-nostr-components/#description)
 * [Reviews](https://en-gb.wordpress.org/plugins/saiy2k-nostr-components/#reviews)
 * [Development](https://en-gb.wordpress.org/plugins/saiy2k-nostr-components/#developers)

 [Support](https://wordpress.org/support/plugin/saiy2k-nostr-components/)

## Description

Nostr Components brings the power of Nostr (Notes and Other Stuff Transmitted by
Relays) to your WordPress site through modern web components. This plugin provides
Gutenberg blocks and shortcodes that allow you to seamlessly integrate Nostr content
into your posts and pages.

#### Key Features

 * **Gutenberg Blocks**: Modern block editor integration for Nostr Zap button, Post,
   Profile, Profile Badge, Follow Button, Like Button, and Livestream
 * **Shortcodes**: Classic editor support with simple shortcode syntax
 * **Selective Loading**: Enable only the components you need for optimal performance
 * **Customizable**: Configure relays, themes, and component settings
 * **Security**: Built-in security with custom element allowlist via KSES
 * **Performance**: Conditional asset loading based on enabled components

#### Available Components

 * **Nostr Zap button**: Allows your readers to zap to your posts and pages
 * **Nostr Follow Button**: Interactive follow/unfollow buttons for Nostr users
 * **Nostr Post**: Display Nostr notes/posts with full content and metadata
 * **Nostr Profile**: Show complete Nostr user profiles with bio, stats, and social
   links
 * **Nostr Profile Badge**: Compact profile display perfect for sidebars and footers
 * **Nostr Like Button**: Like URLs using Nostr reactions (NIP-25)
 * **Nostr Livestream**: Display Nostr livestreams (NIP-53) with video playback 
   and participant information

#### How It Works

 1. Install and activate the plugin
 2. Go to Settings  Saiy2k Nostr Components to configure
 3. Enable only the components you need
 4. Add blocks in the Gutenberg editor or use shortcodes
 5. Configure relays and theme settings as needed

#### Example Usage

**Gutenberg Blocks:**
 Simply add the Nostr blocks from the block inserter and configure
them in the block settings.

**Shortcodes:**
 [nostr_zap_button pubkey=”npub1abc…” url=””] [nostr_post eventid
=”note1abc…”] [nostr_profile pubkey=”npub1abc…”] [nostr_profile_badge pubkey=”npub1abc…”][
nostr_follow_button pubkey=”npub1abc…”] [nostr_like_button] [nostr_livestream naddr
=”naddr1abc…”]

#### Adding Like and Zap Buttons to All Posts/Pages

To automatically add Like and Zap buttons to the end of every post and page:

 1. Go to **Appearance  Theme Editor** (or use a child theme for safer customization)
 2. Select your active theme (or child theme)
 3. Open `functions.php`
 4. Add the following code at the end of the file:
 5.     ```
        // Add shortcode to the end of every post and page
        function add_shortcode_to_content($content) {
            // Only add in single posts and pages (not homepage or archives)
            if (is_singular(['post', 'page']) && in_the_loop() && is_main_query()) {
                $shortcode_1 = do_shortcode('[nostr_like_button]');
                $current_url = esc_url(get_permalink());
                $shortcode_2 = do_shortcode('[nostr_zap_button npub="[YOUR-NPUB-GOES-HERE]" url="' . $current_url . '"]');
    
                $content .= '<div class="nostr-shortcode-wrapper">' . $shortcode_1 . '<br/><br/>' . $shortcode_2 . '</div>';
            }
            return $content;
        }
        add_filter('the_content', 'add_shortcode_to_content');
        ```
    

**Important Notes:**
 * Replace `[YOUR-NPUB-GOES-HERE]` with your actual Nostr public
key (npub format) * Always use a child theme when modifying theme files to preserve
changes during theme updates * The buttons will only appear on single post and page
views, not on archive pages or the homepage

### Development

This plugin is developed as part of the Nostr Components project. For development,
bug reports, and feature requests, please visit the [GitHub repository](https://github.com/saiy2k/nostr-components).

### Support

For support, please visit the [GitHub repository](https://github.com/saiy2k/nostr-components)
or create an issue.

### Privacy Policy

This plugin does not collect, store, or transmit any personal data. All Nostr data
is fetched directly from public relays and displayed locally on your site. If components
fetch data client‑side, visitors’ browsers may directly connect to configured relays(
exposing their IP and user agent to those relays). Configure trusted relays accordingly.

## Screenshots

[⌊Follow and Profile components⌉⌊Follow and Profile components⌉[

Follow and Profile components

[⌊Nostr post component⌉⌊Nostr post component⌉[

Nostr post component

[⌊Like and Zap buttons⌉⌊Like and Zap buttons⌉[

Like and Zap buttons

[⌊Zappers list⌉⌊Zappers list⌉[

Zappers list

[⌊Gutenberg blocks⌉⌊Gutenberg blocks⌉[

Gutenberg blocks

[⌊Settings page⌉⌊Settings page⌉[

Settings page

## FAQ

### What is Nostr?

Nostr is a simple, open protocol that enables global, decentralized, and censorship-
resistant social media. It’s based on cryptographic keypairs and relays.

### Do I need a Nostr account to use this plugin?

No, you don’t need a Nostr account to display Nostr content. However, for interactive
features like follow buttons, users will need their own Nostr accounts.

### Can I customize the appearance?

Yes! The plugin supports light and dark themes, and you can customize the relay 
settings. The components are built with modern CSS and are responsive.

### Is this plugin secure?

Yes, the plugin includes security measures including custom element allowlist via
KSES and proper sanitization of all inputs.

### Can I use this with any WordPress theme?

Yes, the components are designed to work with any WordPress theme. They use modern
CSS and are responsive.

## Reviews

There are no reviews for this plugin.

## Contributors and Developers

“Saiy2k Nostr Components” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ saiy2k ](https://profiles.wordpress.org/saiy2k/)

[Translate “Saiy2k Nostr Components” into your language.](https://translate.wordpress.org/projects/wp-plugins/saiy2k-nostr-components)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/saiy2k-nostr-components/),
check out the [SVN repository](https://plugins.svn.wordpress.org/saiy2k-nostr-components/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/saiy2k-nostr-components/)
by [RSS](https://plugins.trac.wordpress.org/log/saiy2k-nostr-components/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **0.8.0**
 *  Last updated **1 month ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **6.8.12**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/saiy2k-nostr-components/)
 * Tags
 * [blocks](https://en-gb.wordpress.org/plugins/tags/blocks/)[gutenberg](https://en-gb.wordpress.org/plugins/tags/gutenberg/)
   [nostr](https://en-gb.wordpress.org/plugins/tags/nostr/)[shortcodes](https://en-gb.wordpress.org/plugins/tags/shortcodes/)
   [social](https://en-gb.wordpress.org/plugins/tags/social/)
 *  [Advanced View](https://en-gb.wordpress.org/plugins/saiy2k-nostr-components/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/saiy2k-nostr-components/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/saiy2k-nostr-components/reviews/)

## Contributors

 *   [ saiy2k ](https://profiles.wordpress.org/saiy2k/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/saiy2k-nostr-components/)