{"id":18207497,"url":"https://github.com/mnpezz/nostr_feed_wordpress_plugin","last_synced_at":"2025-04-07T19:52:45.741Z","repository":{"id":260729126,"uuid":"882185601","full_name":"Mnpezz/nostr_feed_wordpress_plugin","owner":"Mnpezz","description":"Admin can input multiple npubs and a feed will be shown of their posts. ","archived":false,"fork":false,"pushed_at":"2024-11-02T05:28:17.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T19:52:42.437Z","etag":null,"topics":["nostr","plugin","wordpress"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mnpezz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-02T05:24:19.000Z","updated_at":"2024-12-21T06:00:56.000Z","dependencies_parsed_at":"2024-11-02T06:30:30.297Z","dependency_job_id":null,"html_url":"https://github.com/Mnpezz/nostr_feed_wordpress_plugin","commit_stats":null,"previous_names":["mnpezz/nostr_feed_wordpress_plugin"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mnpezz%2Fnostr_feed_wordpress_plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mnpezz%2Fnostr_feed_wordpress_plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mnpezz%2Fnostr_feed_wordpress_plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mnpezz%2Fnostr_feed_wordpress_plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mnpezz","download_url":"https://codeload.github.com/Mnpezz/nostr_feed_wordpress_plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247721928,"owners_count":20985083,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nostr","plugin","wordpress"],"created_at":"2024-11-03T13:03:12.460Z","updated_at":"2025-04-07T19:52:45.724Z","avatar_url":"https://github.com/Mnpezz.png","language":"JavaScript","readme":"# Nostr Feed WordPress Plugin\n\nA WordPress plugin that allows you to display posts from specified Nostr public keys (npubs) on your website, with support for Lightning zaps.\n\n## Description\n\nNostr Feed is a WordPress plugin that integrates Nostr social network posts into your WordPress site. It allows you to display posts from specific Nostr users and enables Lightning Network zaps through WebLN-compatible wallets like Alby.\n\n## Features\n\n- Display Nostr posts from multiple users\n- Support for Lightning zaps via WebLN\n- Configurable relay connections\n- Automatic URL detection and linking\n- Image display support\n- Clean, responsive design\n- Configurable through WordPress admin panel\n- Easy integration using shortcode\n- Real-time updates from multiple Nostr relays\n\n## Installation\n\n1. Download the plugin files\n2. Upload the plugin folder to the `/wp-content/plugins/` directory\n3. Activate the plugin through the 'Plugins' menu in WordPress\n4. Configure the plugin settings\n\n## Configuration\n\n1. Go to WordPress admin panel\n2. Navigate to Settings \u003e Nostr Feed\n3. Configure the following settings:\n   - **Nostr Public Keys (npubs)**: Enter the Nostr public keys of the users whose posts you want to display\n     - Enter one npub per line\n     - Example format:\n       ```\n       npub1abc123...\n       npub1xyz789...\n       ```\n   - **Nostr Relays**: Configure which relays to connect to\n     - Enter one relay URL per line\n     - Default relays:\n       ```\n       wss://relay.damus.io\n       wss://relay.nostr.band\n       wss://nos.lol\n       ```\n4. Click 'Save Changes'\n\n## Usage\n\nTo display the Nostr feed on any page or post, use the shortcode:\n\n```\n[nostr_feed]\n```\n\nYou can add this shortcode in:\n- Posts\n- Pages\n- Widgets (if your theme supports shortcodes in widgets)\n- Template files (using `do_shortcode()`)\n\n## Zap Support\n\nThe plugin supports sending zaps to Nostr users who have configured Lightning addresses. To use zaps:\n\n1. Install a WebLN-compatible wallet (like [Alby](https://getalby.com))\n2. Click the zap button on any post\n3. Enter the amount you want to send\n4. Confirm the payment in your wallet\n\n## Technical Details\n\nThe plugin connects to configured Nostr relays and:\n- Fetches posts (kind 1 events)\n- Supports image display\n- Handles Lightning Network payments via LNURL\n- Implements NIP-57 for zaps\n- Uses WebLN for Lightning payments\n\n## Styling\n\nThe plugin comes with built-in styling that includes:\n- Card-based post layout\n- Sport-specific color coding\n- Responsive design\n- Image gallery support\n- Hover effects\n- Loading animations\n\nCustom CSS classes:\n- `.nostr-post`: Individual post container\n- `.nostr-post-content`: Post content area\n- `.nostr-post-date`: Post date display\n- `.nostr-posts`: Main feed container\n- `.nostr-post-images`: Image gallery container\n- `.nostr-zap-button`: Zap button\n\n## Requirements\n\n- WordPress 5.0 or higher\n- PHP 7.0 or higher\n- JavaScript enabled in the browser\n- WebLN-compatible wallet for zaps (optional)\n\n## Changelog\n\n### 1.0\n- Initial release\n- Basic Nostr feed functionality\n- Admin configuration panel\n- Shortcode implementation\n- Lightning zap support\n- Configurable relays\n- Image display support\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnpezz%2Fnostr_feed_wordpress_plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmnpezz%2Fnostr_feed_wordpress_plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmnpezz%2Fnostr_feed_wordpress_plugin/lists"}