@kodelyth/nostr 2026.5.39

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.js ADDED
@@ -0,0 +1,7 @@
1
+ export * from "../../../dist/extensions/nostr/api.js";
2
+ import * as module from "../../../dist/extensions/nostr/api.js";
3
+ let defaultExport = "default" in module ? module.default : module;
4
+ for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
5
+ defaultExport = defaultExport.default;
6
+ }
7
+ export { defaultExport as default };
@@ -0,0 +1,7 @@
1
+ export * from "../../../dist/extensions/nostr/channel-plugin-api.js";
2
+ import * as module from "../../../dist/extensions/nostr/channel-plugin-api.js";
3
+ let defaultExport = "default" in module ? module.default : module;
4
+ for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
5
+ defaultExport = defaultExport.default;
6
+ }
7
+ export { defaultExport as default };
package/index.js ADDED
@@ -0,0 +1,7 @@
1
+ export * from "../../../dist/extensions/nostr/index.js";
2
+ import defaultModule from "../../../dist/extensions/nostr/index.js";
3
+ let defaultExport = defaultModule;
4
+ for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
5
+ defaultExport = defaultExport.default;
6
+ }
7
+ export { defaultExport as default };
@@ -0,0 +1,198 @@
1
+ {
2
+ "id": "nostr",
3
+ "activation": {
4
+ "onStartup": false
5
+ },
6
+ "channels": [
7
+ "nostr"
8
+ ],
9
+ "channelEnvVars": {
10
+ "nostr": [
11
+ "NOSTR_PRIVATE_KEY"
12
+ ]
13
+ },
14
+ "configSchema": {
15
+ "type": "object",
16
+ "additionalProperties": false,
17
+ "properties": {}
18
+ },
19
+ "channelConfigs": {
20
+ "nostr": {
21
+ "schema": {
22
+ "$schema": "http://json-schema.org/draft-07/schema#",
23
+ "type": "object",
24
+ "properties": {
25
+ "name": {
26
+ "type": "string"
27
+ },
28
+ "defaultAccount": {
29
+ "type": "string"
30
+ },
31
+ "enabled": {
32
+ "type": "boolean"
33
+ },
34
+ "markdown": {
35
+ "type": "object",
36
+ "properties": {
37
+ "tables": {
38
+ "type": "string",
39
+ "enum": [
40
+ "off",
41
+ "bullets",
42
+ "code",
43
+ "block"
44
+ ]
45
+ }
46
+ },
47
+ "additionalProperties": false
48
+ },
49
+ "privateKey": {
50
+ "anyOf": [
51
+ {
52
+ "type": "string"
53
+ },
54
+ {
55
+ "oneOf": [
56
+ {
57
+ "type": "object",
58
+ "properties": {
59
+ "source": {
60
+ "type": "string",
61
+ "const": "env"
62
+ },
63
+ "provider": {
64
+ "type": "string",
65
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
66
+ },
67
+ "id": {
68
+ "type": "string",
69
+ "pattern": "^[A-Z][A-Z0-9_]{0,127}$"
70
+ }
71
+ },
72
+ "required": [
73
+ "source",
74
+ "provider",
75
+ "id"
76
+ ],
77
+ "additionalProperties": false
78
+ },
79
+ {
80
+ "type": "object",
81
+ "properties": {
82
+ "source": {
83
+ "type": "string",
84
+ "const": "file"
85
+ },
86
+ "provider": {
87
+ "type": "string",
88
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
89
+ },
90
+ "id": {
91
+ "type": "string"
92
+ }
93
+ },
94
+ "required": [
95
+ "source",
96
+ "provider",
97
+ "id"
98
+ ],
99
+ "additionalProperties": false
100
+ },
101
+ {
102
+ "type": "object",
103
+ "properties": {
104
+ "source": {
105
+ "type": "string",
106
+ "const": "exec"
107
+ },
108
+ "provider": {
109
+ "type": "string",
110
+ "pattern": "^[a-z][a-z0-9_-]{0,63}$"
111
+ },
112
+ "id": {
113
+ "type": "string"
114
+ }
115
+ },
116
+ "required": [
117
+ "source",
118
+ "provider",
119
+ "id"
120
+ ],
121
+ "additionalProperties": false
122
+ }
123
+ ]
124
+ }
125
+ ]
126
+ },
127
+ "relays": {
128
+ "type": "array",
129
+ "items": {
130
+ "type": "string"
131
+ }
132
+ },
133
+ "dmPolicy": {
134
+ "type": "string",
135
+ "enum": [
136
+ "pairing",
137
+ "allowlist",
138
+ "open",
139
+ "disabled"
140
+ ]
141
+ },
142
+ "allowFrom": {
143
+ "type": "array",
144
+ "items": {
145
+ "anyOf": [
146
+ {
147
+ "type": "string"
148
+ },
149
+ {
150
+ "type": "number"
151
+ }
152
+ ]
153
+ }
154
+ },
155
+ "profile": {
156
+ "type": "object",
157
+ "properties": {
158
+ "name": {
159
+ "type": "string",
160
+ "maxLength": 256
161
+ },
162
+ "displayName": {
163
+ "type": "string",
164
+ "maxLength": 256
165
+ },
166
+ "about": {
167
+ "type": "string",
168
+ "maxLength": 2000
169
+ },
170
+ "picture": {
171
+ "type": "string",
172
+ "format": "uri"
173
+ },
174
+ "banner": {
175
+ "type": "string",
176
+ "format": "uri"
177
+ },
178
+ "website": {
179
+ "type": "string",
180
+ "format": "uri"
181
+ },
182
+ "nip05": {
183
+ "type": "string"
184
+ },
185
+ "lud16": {
186
+ "type": "string"
187
+ }
188
+ },
189
+ "additionalProperties": false
190
+ }
191
+ },
192
+ "additionalProperties": false
193
+ },
194
+ "label": "Nostr",
195
+ "description": "Decentralized protocol; encrypted DMs via NIP-04."
196
+ }
197
+ }
198
+ }
package/package.json ADDED
@@ -0,0 +1,67 @@
1
+ {
2
+ "name": "@kodelyth/nostr",
3
+ "version": "2026.5.39",
4
+ "description": "Klaw Nostr channel plugin for NIP-04 encrypted DMs",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/kodelyth/klaw"
8
+ },
9
+ "type": "module",
10
+ "dependencies": {
11
+ "nostr-tools": "2.23.3",
12
+ "zod": "4.4.3"
13
+ },
14
+ "devDependencies": {
15
+ "@kodelyth/plugin-sdk": "1.0.1",
16
+ "@kodelyth/klaw": "2026.5.41"
17
+ },
18
+ "peerDependencies": {
19
+ "@kodelyth/klaw": ">=2026.5.19"
20
+ },
21
+ "peerDependenciesMeta": {
22
+ "@kodelyth/klaw": {
23
+ "optional": true
24
+ }
25
+ },
26
+ "klaw": {
27
+ "extensions": [
28
+ "./index.js"
29
+ ],
30
+ "setupEntry": "./setup-entry.js",
31
+ "channel": {
32
+ "id": "nostr",
33
+ "label": "Nostr",
34
+ "selectionLabel": "Nostr (NIP-04 DMs)",
35
+ "docsPath": "/channels/nostr",
36
+ "docsLabel": "nostr",
37
+ "blurb": "Decentralized protocol; encrypted DMs via NIP-04.",
38
+ "order": 55,
39
+ "quickstartAllowFrom": true,
40
+ "cliAddOptions": [
41
+ {
42
+ "flags": "--private-key <key>",
43
+ "description": "Nostr private key (nsec... or hex)"
44
+ },
45
+ {
46
+ "flags": "--relay-urls <list>",
47
+ "description": "Nostr relay URLs (comma-separated)"
48
+ }
49
+ ]
50
+ },
51
+ "install": {
52
+ "npmSpec": "@kodelyth/nostr",
53
+ "defaultChoice": "npm",
54
+ "minHostVersion": ">=2026.4.10"
55
+ },
56
+ "compat": {
57
+ "pluginApi": ">=2026.5.39"
58
+ },
59
+ "build": {
60
+ "klawVersion": "2026.5.39"
61
+ },
62
+ "release": {
63
+ "publishToClawHub": true,
64
+ "publishToNpm": true
65
+ }
66
+ }
67
+ }
package/runtime-api.js ADDED
@@ -0,0 +1,7 @@
1
+ export * from "../../../dist/extensions/nostr/runtime-api.js";
2
+ import * as module from "../../../dist/extensions/nostr/runtime-api.js";
3
+ let defaultExport = "default" in module ? module.default : module;
4
+ for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
5
+ defaultExport = defaultExport.default;
6
+ }
7
+ export { defaultExport as default };
package/setup-api.js ADDED
@@ -0,0 +1,7 @@
1
+ export * from "../../../dist/extensions/nostr/setup-api.js";
2
+ import * as module from "../../../dist/extensions/nostr/setup-api.js";
3
+ let defaultExport = "default" in module ? module.default : module;
4
+ for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
5
+ defaultExport = defaultExport.default;
6
+ }
7
+ export { defaultExport as default };
package/setup-entry.js ADDED
@@ -0,0 +1,7 @@
1
+ export * from "../../../dist/extensions/nostr/setup-entry.js";
2
+ import defaultModule from "../../../dist/extensions/nostr/setup-entry.js";
3
+ let defaultExport = defaultModule;
4
+ for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
5
+ defaultExport = defaultExport.default;
6
+ }
7
+ export { defaultExport as default };
@@ -0,0 +1,7 @@
1
+ export * from "../../../dist/extensions/nostr/setup-plugin-api.js";
2
+ import * as module from "../../../dist/extensions/nostr/setup-plugin-api.js";
3
+ let defaultExport = "default" in module ? module.default : module;
4
+ for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
5
+ defaultExport = defaultExport.default;
6
+ }
7
+ export { defaultExport as default };
package/test-api.js ADDED
@@ -0,0 +1,7 @@
1
+ export * from "../../../dist/extensions/nostr/test-api.js";
2
+ import * as module from "../../../dist/extensions/nostr/test-api.js";
3
+ let defaultExport = "default" in module ? module.default : module;
4
+ for (let index = 0; index < 4 && defaultExport && typeof defaultExport === "object" && "default" in defaultExport; index += 1) {
5
+ defaultExport = defaultExport.default;
6
+ }
7
+ export { defaultExport as default };