-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.html
More file actions
596 lines (565 loc) · 41.2 KB
/
Copy pathindex.html
File metadata and controls
596 lines (565 loc) · 41.2 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
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OpenGrammar — The Free, Privacy-First Writing Assistant</title>
<meta name="description" content="OpenGrammar is a powerful, open-source browser extension for grammar, spelling, and tone adjustments. Complete privacy. Zero monthly fees. Self-hostable.">
<meta name="keywords" content="OpenGrammar, Grammarly alternative, open source grammar checker, privacy writing assistant, AI grammar">
<meta name="author" content="Swadhin Biswas">
<meta property="og:title" content="OpenGrammar — Privacy-First Writing Assistant">
<meta property="og:description" content="Free, open-source Grammarly alternative. Local grammar checking + bring-your-own AI. Zero subscriptions.">
<meta property="og:type" content="website">
<meta property="og:image" content="https://raw.githubusercontent.com/swadhinbiswas/opengrammar/main/logo.svg">
<link rel="icon" href="logo.svg" type="image/svg+xml">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
/* ========== RESET & TOKENS ========== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
--bg:#fdfbf7;--bg2:#f4f1eb;--bg3:#eae7e0;
--fg:#1a1816;--fg2:#4a4640;--fg3:#7a756e;
--primary:#4f46e5;--primary-l:#818cf8;--primary-d:#3730a3;
--accent:#7c3aed;--accent-l:#a78bfa;
--green:#059669;--green-bg:#ecfdf5;
--red:#dc2626;--red-bg:#fef2f2;
--amber:#d97706;--amber-bg:#fffbeb;
--blue:#2563eb;--blue-bg:#eff6ff;
--border:#e5e1d8;--card-bg:rgba(255,255,255,.72);
--radius:16px;--radius-sm:10px;
--font:'Inter',system-ui,sans-serif;--mono:'JetBrains Mono',monospace;
--shadow:0 4px 24px rgba(0,0,0,.06);
--shadow-lg:0 20px 60px rgba(0,0,0,.1);
--transition:.3s cubic-bezier(.4,0,.2,1);
--nav-h:72px;
}
[data-theme="dark"]{
--bg:#0c0a14;--bg2:#14111f;--bg3:#1e1a2e;
--fg:#eae8f0;--fg2:#b0adb8;--fg3:#76737e;
--border:#2a2640;--card-bg:rgba(20,17,31,.72);
--shadow:0 4px 24px rgba(0,0,0,.3);
--shadow-lg:0 20px 60px rgba(0,0,0,.4);
--primary:#818cf8;--primary-l:#a5b4fc;--primary-d:#6366f1;
--accent:#a78bfa;--accent-l:#c4b5fd;
--green:#34d399;--green-bg:rgba(5,150,105,.12);
--red:#f87171;--red-bg:rgba(220,38,38,.12);
--amber:#fbbf24;--amber-bg:rgba(217,119,6,.12);
--blue:#60a5fa;--blue-bg:rgba(37,99,235,.12);
}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased}
body{font-family:var(--font);color:var(--fg);background:var(--bg);overflow-x:hidden;line-height:1.6}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font-family:inherit;cursor:pointer}
/* ========== UTILITIES ========== */
.container{max-width:1200px;margin:0 auto;padding:0 24px}
.icon-inline {display: inline-block; vertical-align: middle; width: 1.25em; height: 1.25em; margin-top: -0.2em;}
.gradient-text{background:linear-gradient(135deg,var(--primary),var(--accent));-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
/* ========== ANIMATED BACKGROUND ========== */
.hero-bg{position:absolute;inset:0;overflow:hidden;z-index:0;pointer-events:none}
.hero-bg .orb{position:absolute;border-radius:50%;filter:blur(80px);opacity:.35;animation:float 20s ease-in-out infinite}
[data-theme="dark"] .hero-bg .orb{opacity:.2}
.orb-1{width:600px;height:600px;background:var(--primary);top:-200px;left:-100px;animation-delay:0s}
.orb-2{width:500px;height:500px;background:var(--accent);top:100px;right:-150px;animation-delay:-7s}
.orb-3{width:400px;height:400px;background:#06b6d4;bottom:-100px;left:30%;animation-delay:-14s}
@keyframes float{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(30px,-40px) scale(1.05)}66%{transform:translate(-20px,30px) scale(.95)}}
/* ========== GRID PATTERN ========== */
.grid-pattern{position:absolute;inset:0;background-image:
linear-gradient(var(--border) 1px,transparent 1px),
linear-gradient(90deg,var(--border) 1px,transparent 1px);
background-size:64px 64px;opacity:.35;pointer-events:none;mask-image:radial-gradient(ellipse 60% 50% at 50% 0%,#000 70%,transparent 100%)}
[data-theme="dark"] .grid-pattern{opacity:.15}
/* ========== NAVBAR ========== */
.navbar{position:fixed;top:0;left:0;right:0;height:var(--nav-h);z-index:1000;
background:rgba(253,251,247,.8);backdrop-filter:blur(16px) saturate(180%);
border-bottom:1px solid var(--border);transition:background var(--transition)}
[data-theme="dark"] .navbar{background:rgba(12,10,20,.8)}
.navbar .container{display:flex;align-items:center;height:100%;gap:32px}
.nav-logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:18px;letter-spacing:-.02em}
.nav-logo img{width:32px;height:32px}
.nav-links{display:flex;gap:6px;margin-left:auto}
.nav-links a{padding:8px 16px;border-radius:var(--radius-sm);font-size:14px;font-weight:500;color:var(--fg2);transition:all var(--transition)}
.nav-links a:hover{color:var(--fg);background:var(--bg2)}
.nav-actions{display:flex;align-items:center;gap:10px}
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 22px;border-radius:var(--radius-sm);font-weight:600;font-size:14px;border:none;transition:all var(--transition)}
.btn-primary{background:var(--primary);color:#fff;box-shadow:0 4px 16px rgba(79,70,229,.3)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(79,70,229,.4)}
.btn-ghost{background:transparent;border:1px solid var(--border);color:var(--fg)}
.btn-ghost:hover{background:var(--bg2);border-color:var(--fg3)}
.theme-btn{width:40px;height:40px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg2);display:flex;align-items:center;justify-content:center;color:var(--fg2);transition:all var(--transition)}
.theme-btn:hover{color:var(--fg);border-color:var(--fg3)}
.theme-btn svg{width:18px;height:18px}
.sun-icon{display:none}
[data-theme="dark"] .moon-icon{display:none}
[data-theme="dark"] .sun-icon{display:block}
.mobile-toggle{display:none;width:40px;height:40px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--bg2);align-items:center;justify-content:center;color:var(--fg2)}
.mobile-toggle svg{width:20px;height:20px}
/* ========== HERO ========== */
.hero{position:relative;padding:calc(var(--nav-h) + 80px) 0 100px;text-align:center;overflow:hidden;min-height:90vh;display:flex;align-items:center}
.hero-content{position:relative;z-index:1}
.hero-badge{display:inline-flex;align-items:center;gap:8px;padding:6px 16px 6px 8px;border-radius:999px;background:var(--card-bg);border:1px solid var(--border);backdrop-filter:blur(8px);font-size:13px;font-weight:600;color:var(--fg2);margin-bottom:32px}
.hero-badge .dot{width:8px;height:8px;border-radius:50%;background:var(--green);animation:pulse 2s ease-in-out infinite}
@keyframes pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.8)}}
.hero h1{font-size:clamp(40px,6vw,76px);font-weight:900;line-height:1.08;letter-spacing:-.03em;margin-bottom:24px;max-width:800px;margin-inline:auto}
.hero p{font-size:clamp(16px,2vw,20px);color:var(--fg2);max-width:600px;margin:0 auto 40px;line-height:1.7}
.hero-buttons{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.hero-buttons .btn{padding:14px 28px;font-size:16px;border-radius:12px}
/* ========== LIVE DEMO MOCKUP ========== */
.demo-section{position:relative;z-index:1;max-width:860px;margin:-20px auto 0;perspective:1200px}
.demo-card{background:var(--card-bg);backdrop-filter:blur(20px);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);overflow:hidden;transform:rotateX(2deg);transition:transform .6s ease}
.demo-card:hover{transform:rotateX(0deg)}
.demo-bar{display:flex;align-items:center;gap:8px;padding:14px 20px;background:var(--bg2);border-bottom:1px solid var(--border)}
.demo-dot{width:12px;height:12px;border-radius:50%}
.demo-dot.r{background:#f87171}.demo-dot.y{background:#fbbf24}.demo-dot.g{background:#34d399}
.demo-bar span{margin-left:auto;font-size:12px;color:var(--fg3);font-family:var(--mono)}
.demo-body{padding:32px 40px;font-size:17px;line-height:1.9;color:var(--fg)}
.demo-body .err{border-bottom:2.5px wavy var(--red);padding-bottom:2px;cursor:pointer;position:relative}
.demo-body .warn{border-bottom:2.5px wavy var(--amber);padding-bottom:2px;cursor:pointer}
.demo-body .style-h{border-bottom:2.5px wavy var(--blue);padding-bottom:2px;cursor:pointer}
.demo-tooltip{position:absolute;bottom:calc(100% + 8px);left:50%;transform:translateX(-50%);background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);padding:12px 16px;box-shadow:var(--shadow-lg);white-space:nowrap;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s}
.err:hover .demo-tooltip{opacity:1}
.demo-tooltip strong{color:var(--red);display:block;font-size:12px;margin-bottom:4px}
.demo-badge-row{display:flex;gap:12px;padding:16px 40px;border-top:1px solid var(--border);background:var(--bg2)}
.demo-badge-row .dbadge{display:flex;align-items:center;gap:6px;padding:5px 12px;border-radius:999px;font-size:12px;font-weight:600}
.dbadge.red{background:var(--red-bg);color:var(--red)}
.dbadge.amber{background:var(--amber-bg);color:var(--amber)}
.dbadge.blue{background:var(--blue-bg);color:var(--blue)}
/* ========== SECTION COMMON ========== */
section{padding:100px 0}
.section-label{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--primary);margin-bottom:16px}
.section-title{font-size:clamp(28px,4vw,44px);font-weight:800;letter-spacing:-.02em;line-height:1.15;margin-bottom:16px}
.section-desc{font-size:17px;color:var(--fg2);max-width:560px;line-height:1.7}
.section-desc.center{margin-inline:auto;text-align:center}
.section-header{text-align:center;margin-bottom:64px}
/* ========== FEATURES ========== */
.features-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.feature-card{padding:32px;border-radius:var(--radius);border:1px solid var(--border);background:var(--card-bg);backdrop-filter:blur(10px);transition:all var(--transition)}
.feature-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lg);border-color:var(--primary-l)}
.feature-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:22px;margin-bottom:20px}
.feature-icon.privacy{background:var(--green-bg);color:var(--green)}
.feature-icon.ai{background:rgba(124,58,237,.12);color:var(--accent)}
.feature-icon.self-host{background:var(--blue-bg);color:var(--blue)}
.feature-icon.rules{background:var(--amber-bg);color:var(--amber)}
.feature-icon.rewrite{background:rgba(79,70,229,.1);color:var(--primary)}
.feature-icon.stats{background:rgba(6,182,212,.1);color:#0891b2}
.feature-card h3{font-size:18px;font-weight:700;margin-bottom:10px}
.feature-card p{font-size:15px;color:var(--fg2);line-height:1.65}
/* ========== HOW IT WORKS ========== */
.how-grid{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:center}
.how-steps{display:flex;flex-direction:column;gap:28px}
.how-step{display:flex;gap:20px;align-items:flex-start}
.step-num{width:44px;height:44px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;color:#fff;flex-shrink:0}
.step-num.s1{background:linear-gradient(135deg,var(--primary),var(--accent))}
.step-num.s2{background:linear-gradient(135deg,var(--accent),#ec4899)}
.step-num.s3{background:linear-gradient(135deg,#06b6d4,var(--green))}
.how-step h4{font-size:17px;font-weight:700;margin-bottom:4px}
.how-step p{font-size:15px;color:var(--fg2);line-height:1.6}
.how-visual{background:var(--card-bg);backdrop-filter:blur(10px);border:1px solid var(--border);border-radius:var(--radius);padding:32px;box-shadow:var(--shadow)}
.stat-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:24px}
.stat-box{padding:20px;border-radius:var(--radius-sm);background:var(--bg2);border:1px solid var(--border)}
.stat-box .label{font-size:12px;color:var(--fg3);font-weight:600;text-transform:uppercase;letter-spacing:.04em;margin-bottom:6px}
.stat-box .value{font-size:28px;font-weight:800}
.stat-box .value.purple{color:var(--accent)}
.stat-box .value.blue{color:var(--blue)}
.progress-bar{margin-top:8px}
.progress-bar .bar-label{display:flex;justify-content:space-between;font-size:13px;font-weight:600;margin-bottom:6px}
.progress-bar .bar-track{height:8px;border-radius:99px;background:var(--bg3)}
.progress-bar .bar-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,var(--green),#34d399);transition:width 1s ease}
/* ========== PROVIDERS ========== */
.providers-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.provider-card{padding:28px;border-radius:var(--radius);border:1px solid var(--border);background:var(--card-bg);backdrop-filter:blur(10px);transition:all var(--transition)}
.provider-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.provider-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.provider-head h3{font-size:18px;font-weight:700}
.provider-tag{padding:4px 12px;border-radius:999px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.provider-tag.free{background:var(--green-bg);color:var(--green)}
.provider-tag.quality{background:var(--blue-bg);color:var(--blue)}
.provider-tag.private{background:rgba(124,58,237,.12);color:var(--accent)}
.provider-card .desc{font-size:14px;color:var(--fg2);margin-bottom:16px}
.check-list{list-style:none;display:flex;flex-direction:column;gap:8px}
.check-list li{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--fg2)}
.check-list li::before{content:"<i data-lucide="check" class="icon-inline"></i>";width:20px;height:20px;border-radius:50%;background:var(--green-bg);color:var(--green);display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0}
/* ========== COMPARISON TABLE ========== */
.compare{background:var(--bg2);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.compare-table{width:100%;border-collapse:collapse;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);background:var(--card-bg);backdrop-filter:blur(10px)}
.compare-table th,.compare-table td{padding:16px 24px;text-align:left;border-bottom:1px solid var(--border);font-size:15px}
.compare-table thead th{background:var(--bg2);font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.05em;color:var(--fg3)}
.compare-table tr:last-child td{border-bottom:none}
.compare-table .yes{color:var(--green);font-weight:600}
.compare-table .no{color:var(--red);font-weight:600}
.compare-table .highlight-col{background:rgba(79,70,229,.04)}
[data-theme="dark"] .compare-table .highlight-col{background:rgba(129,140,248,.06)}
/* ========== GET STARTED ========== */
.get-started{text-align:center}
.terminal{max-width:680px;margin:0 auto;background:var(--bg3);border-radius:var(--radius);overflow:hidden;text-align:left;border:1px solid var(--border);box-shadow:var(--shadow-lg)}
[data-theme="dark"] .terminal{background:#1a1726}
.terminal-bar{display:flex;gap:8px;padding:14px 20px;background:var(--bg2);border-bottom:1px solid var(--border)}
.terminal pre{padding:24px;font-family:var(--mono);font-size:14px;line-height:1.8;overflow-x:auto;color:var(--fg)}
.terminal .comment{color:var(--fg3)}
.terminal .cmd{color:var(--primary-l)}
.cta-buttons{display:flex;gap:14px;justify-content:center;margin-top:40px;flex-wrap:wrap}
/* ========== FOOTER ========== */
.footer{background:var(--bg2);border-top:1px solid var(--border);padding:64px 0 32px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:48px;margin-bottom:48px}
.footer-brand p{color:var(--fg2);font-size:14px;margin-top:12px;max-width:280px;line-height:1.6}
.footer-col h4{font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:var(--fg3);margin-bottom:16px}
.footer-col a{display:block;font-size:14px;color:var(--fg2);padding:4px 0;transition:color var(--transition)}
.footer-col a:hover{color:var(--primary)}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:32px;border-top:1px solid var(--border);font-size:13px;color:var(--fg3)}
.footer-bottom-links{display:flex;gap:24px}
.footer-bottom-links a{color:var(--fg3);transition:color var(--transition)}
.footer-bottom-links a:hover{color:var(--fg)}
/* ========== RESPONSIVE ========== */
@media(max-width:1024px){
.features-grid,.providers-grid{grid-template-columns:repeat(2,1fr)}
.how-grid{grid-template-columns:1fr;gap:40px}
.footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
.nav-links{display:none}
.mobile-toggle{display:flex}
.features-grid,.providers-grid{grid-template-columns:1fr}
.hero{padding-top:calc(var(--nav-h) + 48px);padding-bottom:64px;min-height:auto}
.demo-body{padding:24px}
.demo-badge-row{padding:12px 24px;flex-wrap:wrap}
.compare-table{font-size:13px}
.compare-table th,.compare-table td{padding:12px 14px}
.footer-grid{grid-template-columns:1fr}
section{padding:64px 0}
.section-title{font-size:28px}
.container{padding:0 16px}
.content-wrapper{padding:24px}
.hero-buttons .btn{width:100%}
}
/* ========== MOBILE MENU ========== */
.mobile-menu{display:none;position:fixed;top:var(--nav-h);left:0;right:0;background:var(--bg);border-bottom:1px solid var(--border);padding:16px 24px;z-index:999;flex-direction:column;gap:8px}
.mobile-menu.open{display:flex}
.mobile-menu a{padding:12px 16px;border-radius:var(--radius-sm);font-size:15px;font-weight:500;color:var(--fg2);transition:all var(--transition)}
.mobile-menu a:hover{background:var(--bg2);color:var(--fg)}
/* ========== ANIMATIONS ========== */
.fade-in{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.fade-in.visible{opacity:1;transform:translateY(0)}
</style>
<!-- Lucide Icons -->
<script src="https://unpkg.com/lucide@latest"></script>
</head>
<body>
<!-- Navbar -->
<nav class="navbar" id="navbar">
<div class="container">
<a href="#" class="nav-logo">
<img src="logo.svg" alt="OpenGrammar Logo">
<span>OpenGrammar</span>
</a>
<div class="nav-links">
<a href="#features">Features</a>
<a href="#how-it-works">How it Works</a>
<a href="#providers">Providers</a>
<a href="#comparison">Compare</a>
<a href="docs/index.html">Docs</a>
<a href="https://github.com/swadhinbiswas/opengrammar" target="_blank">GitHub</a>
</div>
<div class="nav-actions">
<button class="theme-btn" id="themeToggle" aria-label="Toggle theme">
<svg class="moon-icon" viewBox="0 0 20 20" fill="currentColor"><path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"/></svg>
<svg class="sun-icon" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M10 2a1 1 0 011 1v1a1 1 0 11-2 0V3a1 1 0 011-1zm4 8a4 4 0 11-8 0 4 4 0 018 0zm-.464 4.95l.707.707a1 1 0 001.414-1.414l-.707-.707a1 1 0 00-1.414 1.414zm2.12-10.607a1 1 0 010 1.414l-.706.707a1 1 0 11-1.414-1.414l.707-.707a1 1 0 011.414 0zM17 11a1 1 0 100-2h-1a1 1 0 100 2h1zm-7 4a1 1 0 011 1v1a1 1 0 11-2 0v-1a1 1 0 011-1zM5.05 6.464A1 1 0 106.465 5.05l-.708-.707a1 1 0 00-1.414 1.414l.707.707zm1.414 8.486l-.707.707a1 1 0 01-1.414-1.414l.707-.707a1 1 0 011.414 1.414zM4 11a1 1 0 100-2H3a1 1 0 000 2h1z" clip-rule="evenodd"/></svg>
</button>
<a href="#get-started" class="btn btn-primary">Get Started</a>
</div>
<button class="mobile-toggle" id="mobileToggle" aria-label="Menu">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 6h16M4 12h16M4 18h16"/></svg>
</button>
</div>
</nav>
<div class="mobile-menu" id="mobileMenu">
<a href="#features">Features</a>
<a href="#how-it-works">How it Works</a>
<a href="#providers">Providers</a>
<a href="#comparison">Compare</a>
<a href="docs/index.html">Docs</a>
<a href="https://github.com/swadhinbiswas/opengrammar" target="_blank">GitHub</a>
<a href="#get-started" class="btn btn-primary" style="text-align:center;margin-top:8px">Get Started</a>
</div>
<!-- Hero -->
<section class="hero">
<div class="hero-bg">
<div class="orb orb-1"></div>
<div class="orb orb-2"></div>
<div class="orb orb-3"></div>
<div class="grid-pattern"></div>
</div>
<div class="container hero-content">
<div class="hero-badge"><span class="dot"></span> v2.1 — Open Source & Free Forever</div>
<h1>Write with clarity.<br><span class="gradient-text">Own your privacy.</span></h1>
<p>OpenGrammar is the free, open-source Grammarly alternative. 40+ grammar rules run offline. Plug in your AI API key for advanced edits — no subscriptions, no data harvesting.</p>
<div class="hero-buttons">
<a href="#get-started" class="btn btn-primary">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M7 10l5 5 5-5M12 15V3"/></svg>
Download Extension
</a>
<a href="https://github.com/swadhinbiswas/opengrammar" target="_blank" class="btn btn-ghost">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" 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" clip-rule="evenodd"/></svg>
Star on GitHub
</a>
</div>
<!-- Live Demo -->
<div class="demo-section" style="margin-top:56px">
<div class="demo-card">
<div class="demo-bar">
<div class="demo-dot r"></div><div class="demo-dot y"></div><div class="demo-dot g"></div>
<span>compose — Gmail</span>
</div>
<div class="demo-body">
Most popular grammar assistants require you to send every keystroke to their servers and <span class="err">charge a hefty monthly fee<span class="demo-tooltip"><strong><i data-lucide="alert-circle" class="icon-inline"></i> Cliché Detected</strong>Consider "are expensive" instead.</span></span> for advanced features. OpenGrammar changes that. The core engine runs locally in your browser, checking for <span class="style-h">passive voice</span> and <span class="warn">repetition</span> without needing a server.
</div>
<div class="demo-badge-row">
<span class="dbadge red">● 1 Grammar</span>
<span class="dbadge amber">● 1 Clarity</span>
<span class="dbadge blue">● 1 Style</span>
</div>
</div>
</div>
</div>
</section>
<!-- Features -->
<section id="features" style="background:var(--bg2);border-top:1px solid var(--border)">
<div class="container">
<div class="section-header fade-in">
<div class="section-label"><i data-lucide="sparkles" class="icon-inline"></i> Features</div>
<h2 class="section-title">Everything you need.<br>Nothing you don't.</h2>
<p class="section-desc center">Built for developers, writers, and privacy advocates who want complete control over their writing tools.</p>
</div>
<div class="features-grid">
<div class="feature-card fade-in">
<div class="feature-icon privacy"><i data-lucide="lock" class="icon-inline"></i></div>
<h3>Absolute Privacy</h3>
<p>No databases, no accounts, no tracking. The local engine runs fully offline. AI requests use a stateless edge function — text is never stored.</p>
</div>
<div class="feature-card fade-in">
<div class="feature-icon ai"><i data-lucide="key" class="icon-inline"></i></div>
<h3>Bring Your Own AI</h3>
<p>Paste your API key for OpenAI, Groq, OpenRouter, Together, or Ollama. Pay fractions of a cent — directly to the provider.</p>
</div>
<div class="feature-card fade-in">
<div class="feature-icon self-host"><i data-lucide="shield" class="icon-inline"></i></div>
<h3>Self-Hostable Backend</h3>
<p>Deploy to Cloudflare Workers, Vercel Edge, Railway, Render, or Docker. One command. You own the infrastructure.</p>
</div>
<div class="feature-card fade-in">
<div class="feature-icon rules"><i data-lucide="file-text" class="icon-inline"></i></div>
<h3>40+ Grammar Rules</h3>
<p>Offline checking for passive voice, repetition, spelling, punctuation, clichés, redundant phrases, double negatives, and more.</p>
</div>
<div class="feature-card fade-in">
<div class="feature-icon rewrite"><i data-lucide="palette" class="icon-inline"></i></div>
<h3>Tone Rewriting</h3>
<p>Rewrite text in 8 tones — Formal, Casual, Professional, Friendly, Concise, Detailed, Persuasive, and Neutral. Right-click or Ctrl+Shift+R.</p>
</div>
<div class="feature-card fade-in">
<div class="feature-icon stats"><i data-lucide="bar-chart-2" class="icon-inline"></i></div>
<h3>Writing Statistics</h3>
<p>Readability scores (Flesch, ARI), reading/speaking time, vocabulary diversity, and detailed analytics for every document.</p>
</div>
</div>
</div>
</section>
<!-- How it Works -->
<section id="how-it-works">
<div class="container">
<div class="how-grid">
<div class="fade-in">
<div class="section-label"><i data-lucide="sparkles" class="icon-inline"></i> Architecture</div>
<h2 class="section-title">Dual-engine.<br>Maximum power.</h2>
<p class="section-desc" style="margin-bottom:40px">Two engines work in parallel — fast local rules plus context-aware AI — then merge and rank results into a single clean list.</p>
<div class="how-steps">
<div class="how-step">
<div class="step-num s1">1</div>
<div><h4>Local Rules Engine</h4><p>40+ regex rules run instantly in your browser. Passive voice, spelling, punctuation, clichés — all offline, all free.</p></div>
</div>
<div class="how-step">
<div class="step-num s2">2</div>
<div><h4>AI Processing</h4><p>For complex grammar and context-aware suggestions, text is sent to your chosen LLM via a stateless edge function.</p></div>
</div>
<div class="how-step">
<div class="step-num s3">3</div>
<div><h4>Smart UI</h4><p>Red, amber, and blue wavy underlines appear as you type. Click to apply, ignore, or add to your dictionary.</p></div>
</div>
</div>
</div>
<div class="how-visual fade-in">
<h3 style="font-weight:700;margin-bottom:20px">Writing Statistics</h3>
<div class="stat-row">
<div class="stat-box"><div class="label">Words</div><div class="value purple">1,248</div></div>
<div class="stat-box"><div class="label">Reading Time</div><div class="value blue">4 min</div></div>
</div>
<div class="progress-bar">
<div class="bar-label"><span>Readability Score</span><span style="color:var(--green);font-weight:700">Excellent (78)</span></div>
<div class="bar-track"><div class="bar-fill" style="width:78%"></div></div>
</div>
<div class="progress-bar" style="margin-top:16px">
<div class="bar-label"><span>Vocabulary Diversity</span><span style="color:var(--accent);font-weight:700">43%</span></div>
<div class="bar-track"><div class="bar-fill" style="width:43%;background:linear-gradient(90deg,var(--primary),var(--accent))"></div></div>
</div>
</div>
</div>
</div>
</section>
<!-- AI Providers -->
<section id="providers" style="background:var(--bg2);border-top:1px solid var(--border);border-bottom:1px solid var(--border)">
<div class="container">
<div class="section-header fade-in">
<div class="section-label"><i data-lucide="sparkles" class="icon-inline"></i> AI Providers</div>
<h2 class="section-title">Choose your engine.</h2>
<p class="section-desc center">6 supported providers. From free to premium. From cloud to fully local.</p>
</div>
<div class="providers-grid">
<div class="provider-card fade-in">
<div class="provider-head"><h3><i data-lucide="zap" class="icon-inline"></i> Groq</h3><span class="provider-tag free">Free Tier</span></div>
<p class="desc">Fastest inference with LPU technology. 100 free requests/day.</p>
<ul class="check-list"><li>~200ms response</li><li>Llama 3.1 70B</li><li>No credit card</li></ul>
</div>
<div class="provider-card fade-in">
<div class="provider-head"><h3><i data-lucide="circle-dot" class="icon-inline"></i> OpenAI</h3><span class="provider-tag quality">Best Quality</span></div>
<p class="desc">GPT-4o-mini for highest accuracy. ~$0.15/1K requests.</p>
<ul class="check-list"><li>95% accuracy</li><li>Context-aware</li><li>Most reliable</li></ul>
</div>
<div class="provider-card fade-in">
<div class="provider-head"><h3><i data-lucide="bot" class="icon-inline"></i> Ollama</h3><span class="provider-tag private">100% Local</span></div>
<p class="desc">Run models on your own hardware. Complete privacy, works offline.</p>
<ul class="check-list"><li>Zero data leaves</li><li>Free forever</li><li>No internet needed</li></ul>
</div>
</div>
<p style="text-align:center;margin-top:32px">
<a href="docs/index.html#ai-providers" style="color:var(--primary);font-weight:600;font-size:15px">View all 6 providers — OpenRouter, Together AI, Custom →</a>
</p>
</div>
</section>
<!-- Comparison -->
<section id="comparison" class="compare">
<div class="container">
<div class="section-header fade-in">
<div class="section-label"><i data-lucide="sparkles" class="icon-inline"></i> Comparison</div>
<h2 class="section-title">How we stack up.</h2>
</div>
<div style="overflow-x:auto" class="fade-in">
<table class="compare-table">
<thead><tr><th>Feature</th><th>Grammarly</th><th class="highlight-col">OpenGrammar</th><th>LanguageTool</th></tr></thead>
<tbody>
<tr><td><strong>Price</strong></td><td>$12/mo</td><td class="highlight-col yes">Free</td><td>$4.99/mo</td></tr>
<tr><td><strong>Open Source</strong></td><td class="no"><i data-lucide="x" class="icon-inline"></i></td><td class="highlight-col yes"><i data-lucide="check" class="icon-inline"></i> Apache 2.0</td><td>Partial</td></tr>
<tr><td><strong>Self-Hostable</strong></td><td class="no"><i data-lucide="x" class="icon-inline"></i></td><td class="highlight-col yes"><i data-lucide="check" class="icon-inline"></i> Docker / CF Workers</td><td class="no"><i data-lucide="x" class="icon-inline"></i></td></tr>
<tr><td><strong>Offline Mode</strong></td><td class="no"><i data-lucide="x" class="icon-inline"></i></td><td class="highlight-col yes"><i data-lucide="check" class="icon-inline"></i> 40+ rules</td><td>Partial</td></tr>
<tr><td><strong>BYOK (Own AI Key)</strong></td><td class="no"><i data-lucide="x" class="icon-inline"></i></td><td class="highlight-col yes"><i data-lucide="check" class="icon-inline"></i> 6 providers</td><td class="no"><i data-lucide="x" class="icon-inline"></i></td></tr>
<tr><td><strong>Local LLM (Ollama)</strong></td><td class="no"><i data-lucide="x" class="icon-inline"></i></td><td class="highlight-col yes"><i data-lucide="check" class="icon-inline"></i></td><td class="no"><i data-lucide="x" class="icon-inline"></i></td></tr>
<tr><td><strong>Tone Rewriting</strong></td><td class="yes"><i data-lucide="check" class="icon-inline"></i> (Premium)</td><td class="highlight-col yes"><i data-lucide="check" class="icon-inline"></i> 8 tones</td><td class="no"><i data-lucide="x" class="icon-inline"></i></td></tr>
<tr><td><strong>Data Stored on Server</strong></td><td class="no"><i data-lucide="check" class="icon-inline"></i> Yes</td><td class="highlight-col yes"><i data-lucide="x" class="icon-inline"></i> Stateless</td><td><i data-lucide="check" class="icon-inline"></i> Yes</td></tr>
</tbody>
</table>
</div>
</div>
</section>
<!-- Get Started -->
<section id="get-started" class="get-started">
<div class="container">
<div class="section-header fade-in">
<div class="section-label"><i data-lucide="sparkles" class="icon-inline"></i> Get Started</div>
<h2 class="section-title">Ready in 5 minutes.</h2>
<p class="section-desc center">Clone, build, load. That's it.</p>
</div>
<div class="terminal fade-in">
<div class="terminal-bar"><div class="demo-dot r"></div><div class="demo-dot y"></div><div class="demo-dot g"></div></div>
<pre><span class="comment"># 1. Clone the repository</span>
<span class="cmd">git clone</span> https://github.com/swadhinbiswas/opengrammar.git
<span class="comment"># 2. Build the extension</span>
<span class="cmd">cd</span> opengrammar/opengrammar/extension
<span class="cmd">bun install</span> && <span class="cmd">bun run build</span>
<span class="comment"># 3. Load in chrome://extensions → Load Unpacked → dist/</span>
<span class="comment"># 4. (Optional) Start local backend</span>
<span class="cmd">cd</span> ../backend && <span class="cmd">bun run dev</span>
<span class="comment"># <i data-lucide="check" class="icon-inline"></i> Running at http://localhost:8787</span></pre>
</div>
<div class="cta-buttons fade-in">
<a href="docs/index.html#quick-start" class="btn btn-primary" style="padding:16px 32px;font-size:16px;border-radius:12px">
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"/></svg>
Read Full Documentation
</a>
<a href="https://github.com/swadhinbiswas/opengrammar" target="_blank" class="btn btn-ghost" style="padding:16px 32px;font-size:16px;border-radius:12px">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" 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" clip-rule="evenodd"/></svg>
View Source Code
</a>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="container">
<div class="footer-grid">
<div class="footer-brand">
<a href="#" class="nav-logo"><img src="logo.svg" alt="OpenGrammar"><span>OpenGrammar</span></a>
<p>Your privacy-first, open-source writing assistant. Free forever under Apache 2.0.</p>
</div>
<div class="footer-col">
<h4>Documentation</h4>
<a href="docs/index.html#quick-start">Quick Start</a>
<a href="docs/index.html#browser-setup">Browser Setup</a>
<a href="docs/index.html#backend-deployment">Deployment</a>
<a href="docs/index.html#ai-providers">AI Providers</a>
<a href="docs/index.html#api-reference">API Reference</a>
</div>
<div class="footer-col">
<h4>Guides</h4>
<a href="docs/index.html#using-opengrammar">User Guide</a>
<a href="docs/index.html#tone-rewriting">Tone Rewriting</a>
<a href="docs/index.html#writing-statistics">Writing Statistics</a>
<a href="docs/index.html#keyboard-shortcuts">Keyboard Shortcuts</a>
<a href="docs/index.html#faq">FAQ</a>
</div>
<div class="footer-col">
<h4>Community</h4>
<a href="https://github.com/swadhinbiswas/opengrammar" target="_blank">GitHub</a>
<a href="https://github.com/swadhinbiswas/opengrammar/discussions" target="_blank">Discussions</a>
<a href="https://github.com/swadhinbiswas/opengrammar/issues" target="_blank">Issues</a>
<a href="ROADMAP.md">Roadmap</a>
</div>
</div>
<div class="footer-bottom">
<span>© 2026 OpenGrammar. Released under the Apache 2.0 License.</span>
<div class="footer-bottom-links">
<a href="https://github.com/swadhinbiswas/opengrammar" target="_blank">GitHub</a>
<a href="docs/index.html">Docs</a>
<a href="https://github.com/swadhinbiswas/opengrammar/discussions" target="_blank">Community</a>
</div>
</div>
</div>
</footer>
<script>
// Theme Toggle
const html = document.documentElement;
const saved = localStorage.getItem('og-theme') || (window.matchMedia('(prefers-color-scheme:dark)').matches ? 'dark' : 'light');
html.dataset.theme = saved;
document.getElementById('themeToggle').addEventListener('click', () => {
const next = html.dataset.theme === 'dark' ? 'light' : 'dark';
html.dataset.theme = next;
localStorage.setItem('og-theme', next);
});
// Mobile menu
document.getElementById('mobileToggle').addEventListener('click', () => {
document.getElementById('mobileMenu').classList.toggle('open');
});
document.querySelectorAll('.mobile-menu a').forEach(a => {
a.addEventListener('click', () => document.getElementById('mobileMenu').classList.remove('open'));
});
// Scroll animations
const observer = new IntersectionObserver((entries) => {
entries.forEach(e => { if (e.isIntersecting) { e.target.classList.add('visible'); observer.unobserve(e.target); }});
}, { threshold: 0.1, rootMargin: '0px 0px -40px 0px' });
document.querySelectorAll('.fade-in').forEach(el => observer.observe(el));
</script>
<script>
lucide.createIcons();
</script>
</body>
</html>