-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtry-demo.html
More file actions
461 lines (430 loc) · 19.7 KB
/
try-demo.html
File metadata and controls
461 lines (430 loc) · 19.7 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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>evolver-tools — Try It Live</title>
<meta name="description" content="Try evolver-tools CLI commands right in your browser. No install required.">
<style>
:root {
--bg: #0d1117;
--surface: #161b22;
--border: #30363d;
--text: #e6edf3;
--dim: #8b949e;
--green: #3fb950;
--cyan: #58a6ff;
--yellow: #d29922;
--orange: #f0883e;
--pink: #f778ba;
--red: #f85149;
--font: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: var(--bg); color: var(--text); font-family: var(--font);
min-height: 100vh; display: flex; flex-direction: column;
font-size: 14px; line-height: 1.5;
}
header {
border-bottom: 1px solid var(--border); padding: 16px 24px;
display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
header h1 { font-size: 18px; font-weight: 600; }
header h1 .ver { color: var(--dim); font-weight: 400; }
header .badge { color: var(--green); font-size: 12px; border: 1px solid var(--green); border-radius: 12px; padding: 2px 10px; }
header .badge.gray { border-color: var(--dim); }
header .badge.blue { border-color: var(--cyan); }
header .links a { color: var(--cyan); text-decoration: none; margin-left: 16px; font-size: 13px; }
header .links a:hover { text-decoration: underline; }
.container { flex: 1; display: flex; flex-direction: column; max-width: 960px; margin: 0 auto; width: 100%; padding: 20px 16px; }
.intro { margin-bottom: 16px; color: var(--dim); font-size: 13px; }
.intro strong { color: var(--text); }
.install-cmd {
background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
padding: 8px 14px; margin: 0 0 12px; display: flex; align-items: center; gap: 10px;
font-size: 13px; cursor: pointer; user-select: none;
}
.install-cmd code { color: var(--cyan); }
.install-cmd .copied { color: var(--green); font-size: 11px; display: none; }
.terminal {
background: #000; border: 1px solid var(--border); border-radius: 8px;
overflow: hidden; display: flex; flex-direction: column; flex: 1; min-height: 400px;
}
.term-header {
background: var(--surface); padding: 8px 14px; display: flex; align-items: center;
gap: 8px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
.term-dots { display: flex; gap: 6px; }
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-dot.r { background: #ff5f57; }
.term-dot.y { background: #ffbd2e; }
.term-dot.g { background: #28c840; }
.term-title { color: var(--dim); font-size: 12px; flex: 1; text-align: center; margin-right: 46px; }
.term-body {
flex: 1; padding: 14px 16px; overflow-y: auto; font-size: 13px;
white-space: pre-wrap; word-break: break-all;
}
.term-body .prompt { color: var(--green); }
.term-body .cmd { color: var(--text); }
.term-body .out { color: var(--text); display: block; }
.term-body .dim { color: var(--dim); }
.term-body .cyan { color: var(--cyan); }
.term-body .yellow { color: var(--yellow); }
.term-body .pink { color: var(--pink); }
.term-body .orange { color: var(--orange); }
.term-body .red { color: var(--red); }
.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.input-line {
display: flex; align-items: center; padding: 6px 16px 12px; gap: 4px;
border-top: 1px solid var(--border); flex-shrink: 0;
}
.input-line .prompt { color: var(--green); font-size: 13px; flex-shrink: 0; }
.input-line input {
background: transparent; border: none; color: var(--text); font-family: var(--font);
font-size: 13px; flex: 1; outline: none; caret-color: var(--green);
}
.suggestions {
display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px;
}
.suggestions button {
background: var(--surface); border: 1px solid var(--border); color: var(--dim);
font-family: var(--font); font-size: 11px; padding: 5px 10px; border-radius: 4px;
cursor: pointer; transition: all 0.15s;
}
.suggestions button:hover {
background: var(--border); color: var(--text); border-color: var(--cyan);
}
.footer { text-align: center; padding: 20px; color: var(--dim); font-size: 12px; }
.footer a { color: var(--cyan); }
</style>
</head>
<body>
<header>
<h1>⚡ evolver-tools <span class="ver">v38.0.19</span></h1>
<div>
<span class="badge">262 tools</span>
<span class="badge gray">zero deps</span>
<span class="badge blue">one pip install</span>
</div>
<div class="links">
<a href="https://evolver-dev.github.io/evolver-tools/">Home</a>
<a href="https://pypi.org/project/evolver-tools/">PyPI</a>
<a href="https://github.com/evolver-dev/evolver-tools">GitHub</a>
</div>
</header>
<div class="container">
<div class="install-cmd" onclick="copyInstall(this)">
<span>▶</span>
<code>$ pip install evolver-tools</code>
<span style="flex:1"></span>
<span class="copied">✓ Copied!</span>
<span style="color:var(--dim);font-size:11px">click to copy</span>
</div>
<div class="intro">
<strong>Try it live.</strong> Click a command below or type your own. All output is from real tools.
</div>
<div class="suggestions" id="suggestions">
<button onclick="run('evtool csv-stats test_sales.csv')">csv-stats</button>
<button onclick="run('evtool chart-cli bar 125 98 156 88 210 175')">chart-cli</button>
<button onclick="run('evtool ascii-banner "Hello"')">banner</button>
<button onclick="run('evtool passgen -l 16')">passgen</button>
<button onclick="run('evtool qrcode "https://github.com/evolver-dev"')">qrcode</button>
<button onclick="run('evtool dns-lookup github.com')">dns-lookup</button>
<button onclick="run('evtool b64 -n "Hello from evolver-tools!" encode')">base64</button>
<button onclick="run('evtool unit-convert 37 C F')">convert</button>
<button onclick="run('evtool cowsay "I run on stdlib"')">cowsay</button>
<button onclick="run('evtool list')">list tools</button>
<button onclick="run('evtool search csv')">search csv</button>
</div>
<div class="terminal">
<div class="term-header">
<div class="term-dots">
<div class="term-dot r"></div>
<div class="term-dot y"></div>
<div class="term-dot g"></div>
</div>
<div class="term-title">evolver-tools — interactive demo</div>
</div>
<div class="term-body" id="output">
<span class="dim">╔═══ EVOLVER Tools v38.0.19 ════════════════════════════════════════╗</span>
<span class="dim">║ 262 tools · 18 categories · zero deps ║</span>
<span class="dim">║ Click a button above or type a command below ║</span>
<span class="dim">╚═════════════════════════════════════════╝</span>
<span> </span>
<span class="dim">Try: <span class="cyan">csv-stats</span> <span class="cyan">chart-cli</span> <span class="cyan">banner</span> <span class="cyan">passgen</span> <span class="cyan">qrcode</span> <span class="cyan">dns-lookup</span></span>
<span> </span>
</div>
<div class="input-line">
<span class="prompt">$</span>
<input type="text" id="cmdInput" placeholder="type a command and press Enter..." autofocus
onkeydown="if(event.key==='Enter')run(this.value)">
</div>
</div>
<div class="footer">
<a href="https://github.com/evolver-dev/evolver-tools">⭐ Star on GitHub</a>
· <a href="https://pypi.org/project/evolver-tools/">📦 PyPI</a>
· <span style="color:var(--dim)">Built by an autonomous AI — one tool at a time</span>
</div>
</div>
<script>
const output = document.getElementById('output');
const input = document.getElementById('cmdInput');
const db = {
"evtool csv-stats test_sales.csv": `📊 CSV Analysis Report
File: test_sales.csv
Rows: 14
Columns: 6
date
Type text
Total 14
Non-empty 14
Unique 8
Max Len 10 chars
Min Len 10 chars
Avg Len 10.0 chars
Top 10
2025-01-15 ██ 2
2025-01-16 ██ 2
2025-01-18 ██ 2
2025-01-20 ██ 2
2025-01-21 ██ 2
2025-01-22 ██ 2
2025-01-17 █ 1
2025-01-19 █ 1
product
Type text
Total 14
Non-empty 14
Unique 4
Max Len 9 chars
Min Len 7 chars
Avg Len 7.9 chars
Top 10
Widget A █████ 4
Gizmo X █████ 4
Widget B ████ 3
Doohickey ████ 3
category
Type text
Total 14
Non-empty 14
Unique 2
Max Len 7 chars
Min Len 7 chars
Avg Len 7.0 chars
Top 10
Gadgets ███████████████ 11
Widgets ████ 3
price
Type float
Count 14
Mean 28.56
Std Dev 15.05
Min 9.99
P25 19.99
P50 (Median) 29.99
P75 49.99
Max 49.99
Sum 399.86
Unique 4
Distribution
10.0 ██████████████████████ 3
14.0 0
18.0 ██████████████████████████████ 4
22.0 0
26.0 0
30.0 ██████████████████████ 3
34.0 0
38.0 0
42.0 0
46.0 ██████████████████████████████ 4
quantity
Type int
Count 14
Mean 9.14
Std Dev 6.54
Min 2.00
P25 4.00
P50 (Median) 8.00
P75 12.00
Max 25.00
Sum 128.00
Unique 12
Distribution
2.0 ██████████████████████████████ 4
4.3 ███████████████ 2
6.6 ██████████████████████ 3
8.9 ███████ 1
11.2 ███████ 1
13.5 ███████ 1
15.8 0
18.1 ███████ 1
20.4 0
22.7 ███████ 1
region
Type text
Total 14
Non-empty 14
Unique 4
Max Len 5 chars
Min Len 4 chars
Avg Len 4.6 chars
Top 10
North █████ 4
South █████ 4
East ████ 3
West ████ 3
Correlation Matrix
price × quantity −0.7303 ██████████░░░░░`,
"evtool chart-cli bar 125 98 156 88 210 175": `条形图 (垂直)
█
█ ▌
▌ █ █
▌ █ █ █
█ ▌ █ █ █
█ █ █ ▌ █ █
█ █ █ █ █ █
█ █ █ █ █ █
█ █ █ █ █ █
───────────────────
125 98 156 88 210 175
125 98 156 88 210 175`,
"evtool ascii-banner "Hello"": `# # ##### # # ###
# # # # # # #
##### #### # # # #
# # # # # # #
# # ##### ##### ##### ###`,
"evtool passgen -l 16": `MI45iXGs8iRb?Xjz (103.4 bits)
75v#si=c#j^R{gGj (103.4 bits)
]{Za*[@M2IyuPZQZ (103.4 bits)
?raGjI)Y3UYq%GSr (103.4 bits)`,
"evtool qrcode "https://github.com/evolver-dev"": `▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
▐██████████████ ██████████████▌
▐██ ██ ██ ██▌
▐██ ██████ ██ ██ ██████ ██▌
▐██ ██████ ██ ██ ██████ ██▌
▐██ ██████ ██ ██ ██████ ██▌
▐██ ██ ██ ██▌
▐██████████████ ██ ██ ██ ██ ██ ██████████████▌
▐ ▌
▐ ██ ██ ██ ██ ▌
▐ ██████ ██ ▌
▐ ██ ██ ██ ▌
▐ ██ ██ ██████ ▌
▐ ██ ▌
▐ ██████ ████ ▌
▐ ██ ██ ██ ██ ██ ▌
▐ ██ ████████ ▌
▐ ██ ██ ██ ▌
▐ ▌
▐██████████████ ▌
▐██ ██ ▌
▐██ ██████ ██ ▌
▐██ ██████ ██ ▌
▐██ ██████ ██ ▌
▐██ ██ ▌
▐██████████████ ▌
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
QR Code for: https://github.com/evolver-dev`,
"evtool dns-lookup github.com": `A 140.82.116.4`,
"evtool b64 -n "Hello from evolver-tools!" encode": `SGVsbG8gZnJvbSBldm9sdmVyLXRvb2xzIQ==`,
"evtool unit-convert 37 C F": `98.600000`,
"evtool cowsay "I run on stdlib"": `< I run on stdlib >
\\ ^__^
\\ (oo)\\_______
(__)\\ )\\/\\
||----w |
|| ||`,
};
const searchDb = {
"csv": ` csv-chart Chart CSV data as terminal bar charts
csv-concat Concatenate CSV files vertically
csv-dedup Deduplicate CSV rows by column
csv-filter Filter CSV rows by column value
csv-join Join two CSV files on a common column
csv-merge Merge CSV files with same schema
csv-select Select/order/reorder CSV columns
csv-sort Sort CSV rows by column
csv-split Split CSV by column value or row count
csv-stats CSV data analysis with statistics
csv-to-json Convert CSV files to JSON
csv-to-md Convert CSV to Markdown table
csv-to-xlsx Convert CSV to Excel XLSX
csv-validate Validate CSV structure and data types
csv-view View CSV files in terminal with alignment
15 tools found for 'csv'`,
"json": ` json-diff Diff two JSON files
json-flatten Flatten nested JSON to key.path format
json-merge Merge JSON objects
json-pretty Pretty-print JSON
json-schema Infer JSON schema from data
json-select Select/query JSON with dot-path
json-to-csv Convert JSON to CSV
json-validate Validate JSON syntax
8 tools found for 'json'`,
};
function appendOutput(text, className) {
const el = document.createElement('div');
if (className) el.className = className;
el.textContent = text;
output.appendChild(el);
}
function run(cmd) {
cmd = cmd.trim();
if (!cmd) return;
input.value = '';
input.focus();
output.appendChild(document.createElement('br'));
const promptSpan = document.createElement('span');
promptSpan.className = 'prompt';
promptSpan.textContent = '$ ';
output.appendChild(promptSpan);
const cmdSpan = document.createElement('span');
cmdSpan.className = 'cmd';
cmdSpan.textContent = cmd;
output.appendChild(cmdSpan);
output.appendChild(document.createElement('br'));
let responseText = '';
const normalized = cmd;
if (normalized.startsWith('evtool search ')) {
const term = normalized.replace('evtool search ', '').replace(/"/g, '');
responseText = searchDb[term];
if (!responseText) responseText = "No tools found for '" + term + "'. Try: csv, json, sys, pass, crypto, ascii";
} else if (normalized === 'evtool list') {
responseText = "===== EVOLVER Tools v38.0.19 =====\n\n ansi-strip Strip ANSI escape codes\n ascii-banner ASCII art banner generator (4 fonts)\n b64 Base64 encode/decode\n backup File/dir backup with rotation\n cal Calendar and date calculator\n case-convert Convert text between case styles\n cert-check Check SSL certificate expiry\n chart-cli Terminal chart generator\n code-stats Count lines of code by language\n cowsay ASCII cow saying text\n cron-pretty Pretty-print cron expressions\n crypto-price Live cryptocurrency price\n csv-stats CSV data analysis with statistics\n db-mate SQLite browser & query tool (TUI)\n disk-usage Show disk usage\n dns-lookup DNS resolution\n emoji-cli Emoji search and copy\n fortune Random fortune cookie\n hash-file File hash (MD5/SHA1/SHA256)\n ... and 240+ more tools\n\n Run 'evtool search <query>' to find specific tools.";
} else {
responseText = db[normalized] || searchDb[normalized];
if (!responseText) {
// Fuzzy match
for (const key of Object.keys(db)) {
if (key.startsWith(normalized) || normalized.startsWith(key)) {
responseText = db[key];
break;
}
}
}
}
if (responseText) {
const lines = responseText.split('\n');
for (let i = 0; i < Math.min(lines.length, 80); i++) {
appendOutput(lines[i], 'out');
}
if (lines.length > 80) {
appendOutput('... (' + (lines.length - 80) + ' more lines, truncated for demo)', 'dim');
}
} else {
appendOutput("Unknown command. Try one of the suggestions above.", 'dim');
}
output.scrollTop = output.scrollHeight;
}
function copyInstall(el) {
navigator.clipboard.writeText('pip install evolver-tools').then(function() {
el.querySelector('.copied').style.display = 'inline';
setTimeout(function() { el.querySelector('.copied').style.display = 'none'; }, 2000);
});
}
</script>
</body>
</html>