Looking for collaborators to build a WordPress plugin that replace the native commenting system with an alternative that provide the same experience but powered by the NOSTR protocol notes. I try to put together some features
Requirements,
- Access with existing public key
npub
or generate a new one - Leave a comment providing the user same Ui/UX
- A reference/link to learn more about the protocol as per images attached
In details:
For the nostr key, you can generate as many of you need from any nostr client. You can find a list here https://www.nostr.net/#clients
.
Generate or Retrieve Nostr Public Key:
For users who already have a Nostr public key (npub), the plugin will need a way to store and access this information. The plugin will also need to support generating a new public key for users who don't have one yet.
.
Plugin Setup and Configuration:
Within the WordPress admin dashboard for setting up and configuring the Nostr integration and relays links if needed. The plugin will also need to provide a user-friendly interface within the WordPress front-end for any template. So it could use the theme-style to define a personalized experience on any website. Each user will be allowed to set up and configuring the Nostr integration. Admins will just need to activate the plugin, and if needed associate/create a npub with their wordpress-profile. This interface will include options to enter or generate the Nostr public key and other relevant settings. The website http://bolt.fun is a great reference.
.
Comments Replacement:
The core functionality of the plugin will be to replace the native WordPress commenting system with the Nostr notes. When a user submits a comment, the plugin will use the Nostr protocol to create a new note and store it on the Nostr network.
.
Retrieving and Displaying Comments:
To maintain the same Ui/UX as the native WordPress comments, the plugin will need to retrieve notes from the Nostr relays network and display them in a threaded format similar to traditional comments. The display template should closely match the appearance of the default WordPress comment template.
.
Handling User Identity and Authentication:
Since Nostr operates on a decentralized protocol, handling user identity and authentication might differ from traditional WordPress comments. The plugin will need to ensure that users can sign their comments securely and maintain their identity consistently. In this case, we'd like to allow the existing users (if any) to connect the wordpres-site account with the nostr one. So ideally in the edit-profile page, will be an option/input to associate with it the nostr npub or link one of the existing browser extensions (http://getAlby.com, flamingo or nos2x).
.
Error Handling and Logging:
Robust error handling and logging mechanisms should be in place to track and report any issues that may arise during the integration with Nostr.
.
Testing:
Extensive testing, both on development and staging environments, will be necessary to identify and fix any bugs or issues before the plugin is deployed to production.
.
Documentation and Support:
A detailed documentation guide should be provided to assist users in setting up and using the plugin effectively. Additionally, support channels should be established to address any user queries or concerns.
.
Optimization and Performance:
The plugin's performance should be optimized to ensure it doesn't introduce significant overhead on the WordPress site.
Another useful reference are this repository for http://bolt.fun website, the code is open source so ideally you could be able to use it to build the plugin. You'll just need to find the code relative to the commenting- system in this repository - https://github.com/peakshift/makers.bolt.fun
Live example is accessible https://bolt.fun
Useful reusable comment system https://github.com/peakshift/makers.bolt.fun/tree/master/src/features/Posts/Components/Comments
Another useful reusable comment system https://github.com/fiatjaf/nocomment
A reference to learn about the protocol https://nostr.com/ and https://github.com/nostr-protocol/nostr
nostr
already exists... https://Habla.news you do not need to install anything, ready to use. check it out!nostr
do not imply that we need to have a WordPress account. The user can access the comment section of that specific website now, on any page/post.wp_table
will be needed and the data will be in the relays the npub has already associated with.bolt.fun
andnocomment
are currently working + am not a dev so can not really guarantee 100% it's doable