Skip to content

Commit a045f65

Browse files
committed
feat: Replace feature highlights with example outputs
- Remove feature cards (Fast & Efficient, Low False Positives, Multiple Outputs) - Add comprehensive example outputs section showing: - Table format (default) with realistic data - JSONL format with complete finding structure - SARIF format with proper security tool format - Add output format commands to Quick Start section - All examples are copyable with working copy buttons - Maintains clean black and white aesthetic - Shows actual tool capabilities instead of marketing copy - Tested and working correctly
1 parent 8a5ab79 commit a045f65

File tree

1 file changed

+44
-26
lines changed

1 file changed

+44
-26
lines changed

static/index.html

Lines changed: 44 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -98,29 +98,19 @@
9898
background: #555;
9999
}
100100

101-
.features {
102-
display: grid;
103-
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
104-
gap: 1.5rem;
101+
.output-examples {
105102
margin: 2rem 0;
106103
}
107104

108-
.feature {
109-
background: #f8f9fa;
110-
padding: 1.5rem;
111-
border-radius: 8px;
112-
border-top: 3px solid #000;
105+
.output-section {
106+
margin: 1.5rem 0;
113107
}
114108

115-
.feature h3 {
109+
.output-section h4 {
116110
color: #000;
117-
margin-bottom: 0.5rem;
111+
margin-bottom: 0.8rem;
118112
font-size: 1.1rem;
119-
}
120-
121-
.feature p {
122-
color: #666;
123-
font-size: 0.95rem;
113+
font-weight: 600;
124114
}
125115

126116
.languages {
@@ -194,18 +184,34 @@ <h3 class="install-title">Install & Run</h3>
194184
</p>
195185
</div>
196186

197-
<div class="features">
198-
<div class="feature">
199-
<h3>🚀 Fast & Efficient</h3>
200-
<p>Parallel processing with Aho-Corasick prefiltering and pattern caching for maximum speed.</p>
187+
<div class="output-examples">
188+
<h3 style="color: #000; margin-bottom: 1.5rem;">Example Outputs</h3>
189+
190+
<div class="output-section">
191+
<h4>Table Format (Default)</h4>
192+
<div class="code-block">
193+
<button class="copy-btn" onclick="copyToClipboard('Language | Library | Count | Example\n---------|---------|-------|--------\nRust | RustCrypto | 2 | src/main.rs:12 aes_gcm::Aes256Gcm\nPython | PyCA cryptography | 1 | auth.py:8 Fernet(key)')">Copy</button>
194+
Language | Library | Count | Example
195+
---------|---------|-------|--------
196+
Rust | RustCrypto | 2 | src/main.rs:12 aes_gcm::Aes256Gcm
197+
Python | PyCA cryptography | 1 | auth.py:8 Fernet(key)
198+
</div>
201199
</div>
202-
<div class="feature">
203-
<h3>🎯 Low False Positives</h3>
204-
<p>Smart pattern matching with comment stripping and import validation to reduce noise.</p>
200+
201+
<div class="output-section">
202+
<h4>JSONL Format</h4>
203+
<div class="code-block">
204+
<button class="copy-btn" onclick="copyToClipboard('{\"language\":\"Rust\",\"library\":\"RustCrypto\",\"file\":\"src/main.rs\",\"span\":{\"line\":12,\"column\":5},\"symbol\":\"aes_gcm::Aes256Gcm\",\"snippet\":\"use aes_gcm::Aes256Gcm;\",\"confidence\":0.99,\"detector_id\":\"detector-rust\"}')">Copy</button>
205+
{"language":"Rust","library":"RustCrypto","file":"src/main.rs","span":{"line":12,"column":5},"symbol":"aes_gcm::Aes256Gcm","snippet":"use aes_gcm::Aes256Gcm;","confidence":0.99,"detector_id":"detector-rust"}
206+
</div>
205207
</div>
206-
<div class="feature">
207-
<h3>📊 Multiple Outputs</h3>
208-
<p>Pretty tables, JSONL, and SARIF formats for integration with CI/CD pipelines.</p>
208+
209+
<div class="output-section">
210+
<h4>SARIF Format</h4>
211+
<div class="code-block">
212+
<button class="copy-btn" onclick="copyToClipboard('{\"version\":\"2.1.0\",\"runs\":[{\"tool\":{\"driver\":{\"name\":\"cipherscope\"}},\"results\":[{\"ruleId\":\"detector-rust\",\"message\":{\"text\":\"RustCrypto library detected\"},\"locations\":[{\"physicalLocation\":{\"artifactLocation\":{\"uri\":\"src/main.rs\"},\"region\":{\"startLine\":12}}]}]}]}')">Copy</button>
213+
{"version":"2.1.0","runs":[{"tool":{"driver":{"name":"cipherscope"}},"results":[{"ruleId":"detector-rust","message":{"text":"RustCrypto library detected"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/main.rs"},"region":{"startLine":12}}]}]}]}
214+
</div>
209215
</div>
210216
</div>
211217

@@ -234,6 +240,18 @@ <h3 class="install-title">Quick Start</h3>
234240
<p style="margin-top: 1rem; color: #666; font-size: 0.9rem;">
235241
Scan current directory with progress bar
236242
</p>
243+
244+
<div style="margin-top: 1.5rem;">
245+
<h4 style="color: #000; margin-bottom: 0.8rem; font-size: 1rem;">Output Formats</h4>
246+
<div class="code-block" style="margin: 0.5rem 0;">
247+
<button class="copy-btn" onclick="copyToClipboard('cryptofind . --json > findings.jsonl')">Copy</button>
248+
cryptofind . --json > findings.jsonl
249+
</div>
250+
<div class="code-block" style="margin: 0.5rem 0;">
251+
<button class="copy-btn" onclick="copyToClipboard('cryptofind . --sarif findings.sarif')">Copy</button>
252+
cryptofind . --sarif findings.sarif
253+
</div>
254+
</div>
237255
</div>
238256

239257
<div class="footer">

0 commit comments

Comments
 (0)