node-red-contrib-nostr
Version:
Node-RED nodes for seamless Nostr protocol integration. Features robust WebSocket handling, event filtering, and NPUB-based routing. Built with TypeScript for type safety and extensive testing. Perfect for Nostr automation flows.
28 lines (26 loc) • 841 B
HTML
<script type="text/html" data-template-name="example">
<div class="form-row">
<label for="node-input-name"><i class="fa fa-tag"></i> Name</label>
<input type="text" id="node-input-name" placeholder="Name">
</div>
<div class="form-row">
<label for="node-input-message"><i class="fa fa-envelope"></i> Message</label>
<input type="text" id="node-input-message" placeholder="Hello World">
</div>
</script>
<script type="text/javascript">
RED.nodes.registerType('example',{
category: 'example',
color: '#a6bbcf',
defaults: {
name: {value:""},
message: {value:"Hello World"}
},
inputs:1,
outputs:1,
icon: "file.png",
label: function() {
return this.name||"example";
}
});
</script>