-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
223 lines (213 loc) · 9.79 KB
/
index.html
File metadata and controls
223 lines (213 loc) · 9.79 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>NextStd | Safer C Standard Library</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link href="https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&family=Syne:wght@700;800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Grid overlay -->
<div class="grid-bg" aria-hidden="true"></div>
<!-- Scanline overlay -->
<div class="scanlines" aria-hidden="true"></div>
<nav class="navbar">
<div class="nav-inner">
<div class="logo">
<span class="logo-bracket">[</span>NextStd<span class="logo-bracket">]</span>
</div>
<ul class="nav-links">
<li><a href="#about">about</a></li>
<li><a href="https://nextstd.github.io/docs" target="_blank">docs</a></li>
<li><a href="#contributors">team</a></li>
<li><a href="#comparison">compare</a></li>
<li><a href="#contact">contact</a></li>
</ul>
<button class="nav-toggle" aria-label="Toggle menu">☰</button>
</div>
</nav>
<!-- HERO -->
<header class="hero" id="about">
<div class="hero-inner">
<div class="hero-tag">// v0.2.2 · Rust-powered · C11 compatible</div>
<h1>
<span class="h1-top">The C Standard</span>
<span class="h1-bottom">Library. Safer</span>
</h1>
<p class="hero-sub">A modern, type-safe replacement for C's standard library — no format strings, no buffer overflows, no undefined behavior. Ships with safe I/O, native string types, and terminal colors. HTTP, process control, and CLI utilities coming soon.</p>
<div class="hero-cta">
<a href="https://nextstd.github.io/docs/" target="_blank" class="btn btn-primary">
<span>Read the Docs</span>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</a>
<a href="https://github.com/NextStd" target="_blank" class="btn btn-ghost">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M12 2C6.477 2 2 6.484 2 12.017c0 4.425 2.865 8.18 6.839 9.504.5.092.682-.217.682-.483 0-.237-.008-.868-.013-1.703-2.782.605-3.369-1.343-3.369-1.343-.454-1.158-1.11-1.466-1.11-1.466-.908-.62.069-.608.069-.608 1.003.07 1.531 1.032 1.531 1.032.892 1.53 2.341 1.088 2.91.832.092-.647.35-1.088.636-1.338-2.22-.253-4.555-1.113-4.555-4.951 0-1.093.39-1.988 1.029-2.688-.103-.253-.446-1.272.098-2.65 0 0 .84-.27 2.75 1.026A9.564 9.564 0 0112 6.844c.85.004 1.705.115 2.504.337 1.909-1.296 2.747-1.027 2.747-1.027.546 1.379.202 2.398.1 2.651.64.7 1.028 1.595 1.028 2.688 0 3.848-2.339 4.695-4.566 4.943.359.309.678.92.678 1.855 0 1.338-.012 2.419-.012 2.747 0 .268.18.58.688.482A10.019 10.019 0 0022 12.017C22 6.484 17.522 2 12 2z"/></svg>
GitHub
</a>
</div>
<div class="hero-badges">
<span class="badge">Memory Safe</span>
<span class="badge">Zero Overhead</span>
<span class="badge">No Format Strings</span>
<span class="badge">SSO Strings</span>
</div>
</div>
<div class="hero-code-block" aria-hidden="true">
<div class="code-header">
<span class="dot red"></span><span class="dot yellow"></span><span class="dot green"></span>
<span class="code-filename">main.c</span>
</div>
<pre class="code-content"><span class="c-comment">// Before: stdio.h</span>
<span class="c-kw">int</span> x;
<span class="c-fn">scanf</span>(<span class="c-str">"%d"</span>, &x); <span class="c-comment">// ← segfault risk</span>
<span class="c-fn">printf</span>(<span class="c-str">"%d\n"</span>, x);
<span class="c-comment">// After: ns.h ✓</span>
<span class="c-kw">int</span> x;
<span class="c-fn">ns_read</span>(&x); <span class="c-comment">// ← type-safe, safe default</span>
<span class="c-fn">ns_print</span>(x); <span class="c-comment">// ← no format strings needed</span></pre>
</div>
</header>
<!-- CONTRIBUTORS -->
<section id="contributors" class="section">
<div class="section-inner">
<div class="section-label">01 / TEAM</div>
<h2>The Builders</h2>
<p class="section-sub">Open-source engineers bringing memory safety to C.</p>
<div id="dev-grid" class="dev-grid">
<div class="loading-state">
<span class="loading-dot"></span>
<span>Fetching contributors from GitHub...</span>
</div>
</div>
</div>
</section>
<!-- COMPARISON -->
<section id="comparison" class="section section-alt">
<div class="section-inner">
<div class="section-label">02 / COMPARE</div>
<h2><code>stdio.h</code> vs <code>ns.h</code></h2>
<p class="section-sub">Why modern C deserves a better standard library.</p>
<div class="table-scroll">
<table class="compare-table">
<thead>
<tr>
<th>Feature</th>
<th class="th-bad"><code><stdio.h></code> / <code><string.h></code></th>
<th class="th-good"><code>ns.h</code></th>
</tr>
</thead>
<tbody>
<tr>
<td><strong>Type Safety</strong></td>
<td class="cell-bad">
<span class="pill pill-bad">✗ None</span>
Relies entirely on developer memory.
</td>
<td class="cell-good">
<span class="pill pill-good">✓ Compile-Time</span>
Automatic routing via C11 <code>_Generic</code>.
</td>
</tr>
<tr>
<td><strong>Format Specifiers</strong></td>
<td class="cell-bad">
<span class="pill pill-bad">✗ Required</span>
<code>%d</code>, <code>%s</code>, <code>%f</code> — segfaults if mismatched.
</td>
<td class="cell-good">
<span class="pill pill-good">✓ Not Needed</span>
Just pass the variable directly.
</td>
</tr>
<tr>
<td><strong>String Memory</strong></td>
<td class="cell-bad">
<span class="pill pill-bad">✗ Unsafe</span>
Null-terminated <code>char*</code>. O(N) length, overflow risk.
</td>
<td class="cell-good">
<span class="pill pill-good">✓ SSO</span>
Small String Optimization. Zero heap fragmentation.
</td>
</tr>
<tr>
<td><strong>Input Handling</strong></td>
<td class="cell-bad">
<span class="pill pill-bad">✗ Dangerous</span>
<code>scanf</code> leaves dangling newlines, crashes on bad types.
</td>
<td class="cell-good">
<span class="pill pill-good">✓ Safe</span>
<code>ns_read</code> safely defaults to 0 on invalid input.
</td>
</tr>
<tr>
<td><strong>Backend</strong></td>
<td>Legacy C code.</td>
<td class="cell-good">
<span class="pill pill-good">✓ Rust</span>
Mathematically memory-safe.
</td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- CONTACT -->
<section id="contact" class="section">
<div class="section-inner">
<div class="section-label">03 / CONTACT</div>
<h2>Get in Touch</h2>
<p class="section-sub">Questions, contributions, or ideas? We'd love to hear from you.</p>
<form action="mailto:vaishnav.sabari.girish@gmail.com" method="POST" enctype="text/plain" class="contact-form">
<div class="form-row">
<div class="form-group">
<label for="name">Name</label>
<input type="text" id="name" name="name" required placeholder="John Doe">
</div>
<div class="form-group">
<label for="email">Email</label>
<input type="email" id="email" name="email" required placeholder="john@example.com">
</div>
</div>
<div class="form-group">
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" required placeholder="How can we help?"></textarea>
</div>
<button type="submit" class="btn btn-primary btn-full">
<span>Send Message</span>
<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M3 8h10M9 4l4 4-4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>
</button>
</form>
</div>
</section>
<footer>
<div class="footer-inner">
<div class="logo footer-logo">
<span class="logo-bracket">[</span>NextStd<span class="logo-bracket">]</span>
</div>
<p class="footer-copy">© 2026 NextStd Organization. Built with Rust and C.</p>
<div class="footer-links">
<a href="https://github.com/NextStd" target="_blank">GitHub</a>
<a href="https://nextstd.github.io/docs" target="_blank">Docs</a>
</div>
</div>
</footer>
<script src="script.js"></script>
<script>
// Mobile nav toggle
document.querySelector('.nav-toggle').addEventListener('click', () => {
document.querySelector('.nav-links').classList.toggle('open');
});
// Intersection observer for reveal animations
const reveals = document.querySelectorAll('.section');
const io = new IntersectionObserver((entries) => {
entries.forEach(e => { if (e.isIntersecting) e.target.classList.add('visible'); });
}, { threshold: 0.08 });
reveals.forEach(el => io.observe(el));
</script>
</body>
</html>