-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
221 lines (206 loc) · 9.05 KB
/
Copy pathindex.html
File metadata and controls
221 lines (206 loc) · 9.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta
name="description"
content="Podkey — a browser extension for did:nostr and Solid authentication. Detect, install, and test NIP-07 signing."
/>
<title>Podkey — Install & Test</title>
<link rel="stylesheet" href="app.css" />
</head>
<body>
<div class="container">
<header class="header">
<div class="brand">
<div class="brand-mark" aria-hidden="true">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<circle cx="8" cy="15" r="4" />
<path d="M10.85 12.15 19 4" />
<path d="m18 5 2 2" />
<path d="m15 8 2 2" />
</svg>
</div>
<h1>Podkey</h1>
</div>
<p class="tagline">
A browser extension for <strong>did:nostr</strong> and
<strong>Solid</strong> authentication. Your keys stay on your device;
every signature needs your explicit approval.
</p>
</header>
<!-- Extension status -->
<section class="card">
<h2>
<span class="status-dot" id="extensionStatus" aria-hidden="true"></span>
Extension status
</h2>
<div id="extensionInfo">Checking…</div>
</section>
<!-- Install (shown only when not detected) -->
<section class="card" id="installationCard" style="display: none">
<h2>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
<polyline points="7 10 12 15 17 10" />
<line x1="12" y1="15" x2="12" y2="3" />
</svg>
Install Podkey
</h2>
<p>
Podkey provides <strong>NIP-07</strong> signing for Nostr and
authenticates to <strong>Solid pods</strong> using
<strong>did:nostr</strong> identifiers. Your cryptographic keys stay
in your browser — you stay in control of your identity and data.
</p>
<div class="divider"></div>
<h3>Quick install</h3>
<ol class="steps">
<li>
<div class="step-title">Download the extension</div>
<div class="step-body">
Grab the latest packaged release, or the source ZIP from the
repository.
<div style="margin-top: 10px">
<a
class="btn-link"
href="https://github.com/JavaScriptSolidServer/podkey/releases/latest"
target="_blank"
rel="noopener"
>
Download latest release
</a>
</div>
</div>
</li>
<li>
<div class="step-title">Build, if you downloaded source</div>
<div class="step-body">
Requires
<a href="https://nodejs.org/" target="_blank" rel="noopener">Node.js 18+</a>.
<pre class="code-block">cd podkey
npm install
npm run build</pre>
</div>
</li>
<li>
<div class="step-title">Load it in Chrome or Edge</div>
<div class="step-body">
<ul>
<li>Open <code class="inline">chrome://extensions</code> (or <code class="inline">edge://extensions</code>).</li>
<li>Enable <strong>Developer mode</strong> (top-right).</li>
<li>Click <strong>Load unpacked</strong>.</li>
<li>Select the <code class="inline">podkey</code> folder containing <code class="inline">manifest.json</code>.</li>
</ul>
</div>
</li>
<li>
<div class="step-title">Verify</div>
<div class="step-body">
<strong>Reload this page.</strong> The status above turns green
when the extension is detected, and these tests become live.
</div>
</li>
</ol>
<div class="notice good">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M22 11.08V12a10 10 0 1 1-5.93-9.14" />
<polyline points="22 4 12 14.01 9 11.01" />
</svg>
<span>
<strong>First run:</strong> open the Podkey icon in your toolbar to
generate or import your first key — that creates your
<strong>did:nostr</strong> identity.
</span>
</div>
<div class="notice info">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<circle cx="12" cy="12" r="10" />
<line x1="12" y1="16" x2="12" y2="12" />
<line x1="12" y1="8" x2="12.01" y2="8" />
</svg>
<span>
<strong>Learn more:</strong>
<a href="https://github.com/JavaScriptSolidServer/podkey" target="_blank" rel="noopener">repository</a>,
<a href="https://nostrcg.github.io/did-nostr/" target="_blank" rel="noopener">did:nostr spec</a>,
<a href="https://solidproject.org/" target="_blank" rel="noopener">Solid Project</a>,
<a href="https://github.com/nostr-protocol/nips/blob/master/07.md" target="_blank" rel="noopener">NIP-07</a>.
</span>
</div>
<div class="notice warn">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" />
<line x1="12" y1="9" x2="12" y2="13" />
<line x1="12" y1="17" x2="12.01" y2="17" />
</svg>
<span>
<strong>Troubleshooting:</strong>
<ul>
<li>Not detected? Reload this page after loading the extension.</li>
<li>Build errors? Check <code class="inline">node --version</code> is 18+.</li>
<li>No “Load unpacked”? Enable Developer mode first.</li>
</ul>
</span>
</div>
</section>
<!-- Key management -->
<section class="card">
<h2>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<rect x="3" y="11" width="18" height="11" rx="2" ry="2" />
<path d="M7 11V7a5 5 0 0 1 10 0v4" />
</svg>
Key management
</h2>
<div class="test-grid">
<div class="test-cell">
<button class="btn" type="button" data-action="getPublicKey">Get public key</button>
<div id="publicKeyResult" class="value-display" style="display: none"></div>
</div>
<div class="test-cell">
<button class="btn" type="button" data-action="keypairStatus">Check keypair status</button>
<div id="keypairStatusResult" class="value-display" style="display: none"></div>
</div>
</div>
</section>
<!-- Event signing -->
<section class="card">
<h2>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M12 20h9" />
<path d="M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z" />
</svg>
Event signing
</h2>
<div>
<button class="btn" type="button" data-action="signSimple">Sign simple event</button>
<button class="btn" type="button" data-action="signTextNote">Sign text note</button>
<button class="btn" type="button" data-action="signWithTags">Sign with tags</button>
</div>
<div id="signEventResult" class="value-display" style="display: none"></div>
</section>
<!-- Log -->
<section class="card">
<h2>
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />
<polyline points="14 2 14 8 20 8" />
<line x1="16" y1="13" x2="8" y2="13" />
<line x1="16" y1="17" x2="8" y2="17" />
</svg>
Event log
</h2>
<div class="log" id="eventLog"></div>
<button class="btn secondary" type="button" data-action="clearLog" style="margin-top: 12px">
Clear log
</button>
</section>
<footer class="page-footer">
Podkey ·
<a href="https://github.com/JavaScriptSolidServer/podkey" target="_blank" rel="noopener">GitHub</a>
</footer>
</div>
<script src="app.js"></script>
</body>
</html>