Repository navigation
Expand file tree
/
Copy pathabout.html
More file actions
201 lines (196 loc) · 12.7 KB
/
Copy pathabout.html
File metadata and controls
201 lines (196 loc) · 12.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>About codelight.js</title>
<meta name="description" content="Why codelight.js exists, how it's built, what's next, and who makes it.">
<link rel="canonical" href="https://codelightjs.github.io/about.html">
<meta property="og:type" content="website">
<meta property="og:site_name" content="codelight.js">
<meta property="og:title" content="About codelight.js">
<meta property="og:description" content="Why codelight.js exists, how it's built, what's next, and who makes it.">
<meta property="og:url" content="https://codelightjs.github.io/about.html">
<meta property="og:image" content="https://codelightjs.github.io/og.png">
<meta name="twitter:card" content="summary_large_image">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='7' fill='%2311141a'/%3E%3Cpath d='M9 11l-4 5 4 5M23 11l4 5-4 5' stroke='%23ff7aa8' stroke-width='2.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='16' cy='16' r='3.4' fill='%23ffb86b'/%3E%3C/svg%3E">
<link rel="stylesheet" href="site.css">
<style>
.roadmap{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px}
.phase{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:16px 18px}
.phase.now{border-color:var(--accent);box-shadow:inset 0 3px 0 var(--accent)}
.phase header{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px}
.phase h3{margin:0;font-size:16px;color:var(--text)}
.tag{font-size:12px;border:1px solid var(--border);border-radius:999px;padding:1px 8px;color:var(--muted);white-space:nowrap}
.tag.done{background:var(--good);border-color:var(--good);color:#fff}
.tag.now{border-color:var(--accent);color:var(--accent)}
.phase ul{margin:0;padding-left:18px;display:grid;gap:4px}
.phase li{font-size:14px}
.author{display:flex;gap:18px;align-items:center;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);padding:18px;margin-top:16px}
.author img{width:72px;height:72px;border-radius:50%;flex:none;background:var(--border)}
.author p{margin:4px 0 0}
.author .motto{font-size:13px;letter-spacing:.08em;font-weight:700;color:var(--accent)}
@media (max-width:860px){.roadmap{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:560px){.roadmap{grid-template-columns:minmax(0,1fr)}.author{flex-direction:column;align-items:flex-start}}
</style>
</head>
<body data-page="about">
<!--HEADER:START (from partials/header.html by tools/build-demo.mjs)-->
<a class="skip" href="#main">Skip to content</a>
<header class="site-header">
<div class="wrap">
<a class="brand" href="./" aria-label="codelight.js home">
<svg width="30" height="30" viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="7" fill="#11141a"/><path d="M9 11l-4 5 4 5M23 11l4 5-4 5" stroke="#ff7aa8" stroke-width="2.6" fill="none" stroke-linecap="round" stroke-linejoin="round"/><circle cx="16" cy="16" r="3.4" fill="#ffb86b"/></svg>
<span>codelight<b>.js</b></span>
<span class="version">v1.6.1</span>
</a>
<nav class="site-nav" id="site-nav" aria-label="Main">
<a href="./#use" data-page="start">Get started</a>
<a href="./#supported-languages" data-page="languages">Languages</a>
<a href="compare.html" data-page="compare">Compare</a>
<a href="benchmark.html" data-page="benchmark">Benchmark</a>
<a href="https://github.com/codelightjs/codelight.js/tree/main/docs">Docs</a>
<a href="about.html" data-page="about">About</a>
</nav>
<div class="header-actions">
<button class="icon-btn" id="theme" type="button" aria-label="Switch theme">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="12" cy="12" r="9"/><path d="M12 3a9 9 0 0 1 0 18z" fill="currentColor"/></svg>
</button>
<a class="btn primary gh" href="https://github.com/codelightjs/codelight.js">
<svg viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38v-1.33c-2.23.48-2.7-1.07-2.7-1.07-.36-.92-.89-1.17-.89-1.17-.73-.5.06-.49.06-.49.8.06 1.23.83 1.23.83.72 1.22 1.87.87 2.33.66.07-.52.28-.87.5-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82a7.6 7.6 0 0 1 4 0c1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48v2.2c0 .21.15.46.55.38A8 8 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>
<span>GitHub</span>
</a>
<button class="icon-btn menu-btn" id="menu" type="button" aria-label="Menu" aria-expanded="false" aria-controls="site-nav">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><path d="M4 7h16M4 12h16M4 17h16"/></svg>
</button>
</div>
</div>
</header>
<!--HEADER:END-->
<main id="main" class="wrap">
<div class="page-hero">
<h1>Built for code that's <span>still being written</span>.</h1>
<p>codelight.js is a syntax highlighter for live code: AI replies, editors, terminals and logs. It also works well for finished code on any page.</p>
</div>
<section class="section">
<h2>Why it exists</h2>
<p class="lead">AI chat apps show code a few characters at a time. The usual highlighters redo the whole code block on every update. As the code grows, each update gets slower, the colours flicker, and you can't select text while it's arriving.</p>
<p>codelight.js takes a different approach. Each line is highlighted once, when it's finished. Only the line being written gets updated. So it stays fast no matter how long the code gets, and nothing on screen jumps around. On a real 282-line file, that's <a href="benchmark.html">about 4.4 times faster</a> than re-highlighting with highlight.js.</p>
</section>
<section class="section">
<h2>How it's made</h2>
<div class="cards">
<div class="card"><h3>Written from scratch</h3><p>Its own line-by-line engine and language rules. No code taken from other highlighters.</p></div>
<div class="card"><h3>No dependencies</h3><p>One 16 KB file with 50+ languages, themes, line numbers and a copy button. No WebAssembly.</p></div>
<div class="card"><h3>Easy to switch to</h3><p>Reads the same <code>language-xxx</code> markup and uses the familiar function names, like <code>highlightAll()</code>.</p></div>
<div class="card"><h3>Readable colours</h3><p>Every theme colour is checked for at least 4.5:1 contrast, in light and dark.</p></div>
<div class="card"><h3>Honest numbers</h3><p>The <a href="benchmark.html">benchmark</a> is public, with one command to run it yourself. Where others are better, the <a href="compare.html">comparison</a> says so.</p></div>
<div class="card"><h3>Safe releases</h3><p>Published from GitHub Actions with npm provenance, so you can check every version was built from this repo.</p></div>
</div>
</section>
<section class="section" id="roadmap">
<h2>Roadmap</h2>
<p class="lead">What's shipped and what's next. Later phases are built when people ask for them.</p>
<div class="roadmap">
<article class="phase">
<header><h3>1. Core</h3><span class="tag done">Done</span></header>
<ul><li>Line-by-line engine</li><li><code>mount()</code>, <code>write()</code>, <code>createStream()</code></li><li>Half-finished Markdown fences</li><li>React component</li></ul>
</article>
<article class="phase">
<header><h3>2. Better at what it does</h3><span class="tag done">Done</span></header>
<ul><li>50+ languages</li><li>Code inside strings, heredocs, regex</li><li>Line numbers, highlighted lines, copy button</li><li>Contrast-checked themes</li></ul>
</article>
<article class="phase now">
<header><h3>3. Prove it and launch</h3><span class="tag now">Now</span></header>
<ul><li>Public benchmark</li><li>Side-by-side demo</li><li>Comparison page</li><li>Launch posts</li></ul>
</article>
<article class="phase">
<header><h3>4. Fit into more stacks</h3><span class="tag">Next</span></header>
<ul><li>markdown-it and rehype plugins</li><li>Guides for AI SDK streaming</li><li>Vue and Svelte components</li><li>A web component</li></ul>
</article>
<article class="phase">
<header><h3>5. Close the gaps</h3><span class="tag">Planned</span></header>
<ul><li>Automatic language detection (done in 1.6)</li><li>Diff with syntax colours</li><li>Start numbering at any line</li><li>More themes</li></ul>
</article>
<article class="phase">
<header><h3>6. If people use it</h3><span class="tag">Later</span></header>
<ul><li>Load only the languages you need</li><li>Plugin API</li><li>Web Worker helper</li><li>Faster layout on very long files</li></ul>
</article>
</div>
</section>
<section class="section">
<h2>Who makes it</h2>
<div class="author">
<img src="https://github.com/ckgiri.png?size=144" alt="" width="72" height="72" loading="lazy">
<div>
<b>Hi, I'm CK.</b>
<p>Technology leader with 15+ years of building software. I make codelight.js in the open, under the MIT licence.</p>
<p class="motto">SHIP UGLY FIRST</p>
</div>
</div>
</section>
<section class="section">
<h2>Get involved</h2>
<p class="lead">Found a language that looks wrong, or need one that's missing? Issues and pull requests are welcome.</p>
<div class="cta-row" style="justify-content:flex-start">
<a class="btn primary" href="https://github.com/codelightjs/codelight.js">Star on GitHub</a>
<a class="btn" href="https://github.com/codelightjs/codelight.js/issues/new">Open an issue</a>
<a class="btn" href="https://github.com/codelightjs/codelight.js/blob/main/CONTRIBUTING.md">Contributing guide</a>
</div>
</section>
</main>
<!--FOOTER:START (from partials/footer.html by tools/build-demo.mjs)-->
<footer class="site-footer">
<div class="wrap">
<div class="footer-grid">
<div class="footer-about">
<a class="brand" href="./">
<svg width="26" height="26" viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="7" fill="#11141a"/><path d="M9 11l-4 5 4 5M23 11l4 5-4 5" stroke="#ff7aa8" stroke-width="2.6" fill="none" stroke-linecap="round" stroke-linejoin="round"/><circle cx="16" cy="16" r="3.4" fill="#ffb86b"/></svg>
<span>codelight<b>.js</b></span>
</a>
<p>Syntax highlighting that keeps up with live code. Very fast, lightweight, no dependencies.</p>
<code class="footer-install">npm i codelight.js</code>
</div>
<div>
<h2>Product</h2>
<ul>
<li><a href="./#try">Live demo</a></li>
<li><a href="./#use">Get started</a></li>
<li><a href="./#supported-languages">Languages</a></li>
<li><a href="compare.html">Compare</a></li>
<li><a href="benchmark.html">Benchmark</a></li>
</ul>
</div>
<div>
<h2>Docs</h2>
<ul>
<li><a href="https://github.com/codelightjs/codelight.js/blob/main/docs/getting-started.md">Getting started</a></li>
<li><a href="https://github.com/codelightjs/codelight.js/blob/main/docs/api.md">API</a></li>
<li><a href="https://github.com/codelightjs/codelight.js/blob/main/docs/streaming.md">Streaming</a></li>
<li><a href="https://github.com/codelightjs/codelight.js/blob/main/docs/react.md">React</a></li>
<li><a href="https://github.com/codelightjs/codelight.js/blob/main/docs/themes.md">Themes</a></li>
<li><a href="https://github.com/codelightjs/codelight.js/blob/main/docs/migrating.md">Switching from highlight.js</a></li>
</ul>
</div>
<div>
<h2>Project</h2>
<ul>
<li><a href="about.html">About</a></li>
<li><a href="https://github.com/codelightjs/codelight.js">GitHub</a></li>
<li><a href="https://www.npmjs.com/package/codelight.js">npm</a></li>
<li><a href="https://github.com/codelightjs/codelight.js/blob/main/CHANGES.md">Changelog</a></li>
<li><a href="https://github.com/codelightjs/codelight.js/issues">Report an issue</a></li>
<li><a href="https://github.com/codelightjs/codelight.js/blob/main/SECURITY.md">Security</a></li>
</ul>
</div>
</div>
<div class="footer-bottom">
<span>© 2026 <a href="https://github.com/ckgiri">CK Giri</a> · MIT licence</span>
<span>v1.6.1 · <a href="llms.txt">llms.txt</a></span>
</div>
</div>
</footer>
<!--FOOTER:END-->
<script src="site.js"></script>
</body>
</html>