Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ website/
├── index.html the one page
├── styles.css the Paper theme (light, EB Garamond headings) and the layout
├── themes/ alternative palettes (navy, phosphor, ember, slate); add one <link> after styles.css to switch
├── site.js mobile menu and footer year
├── site.js mobile menu, footer year and the animated figures
├── CNAME custom domain (katesplatform.io) for GitHub Pages
├── _headers security and cache headers (Cloudflare Pages, Netlify)
├── robots.txt, sitemap.xml
Expand Down Expand Up @@ -62,5 +62,7 @@ the domain root. Setup, once:

Both deploys are independent: each runs when its secret is present and skips otherwise.
`.nojekyll` in this folder stops GitHub Pages from running Jekyll, which would otherwise drop
`_headers` and anything else starting with an underscore. GitHub Pages ignores `_headers`
anyway: the security headers apply only on Cloudflare or Netlify.
`_headers` and anything else starting with an underscore. GitHub Pages, which serves the
live site today, ignores `_headers`, so the Content-Security-Policy also sits in a `<meta>`
tag in `index.html`. Change both together. The other headers, and `frame-ancestors`, apply
only on Cloudflare or Netlify.
Binary file removed website/assets/demo.gif
Binary file not shown.
31 changes: 16 additions & 15 deletions website/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
<html lang="en">
<head>
<meta charset="utf-8">
<!-- GitHub Pages serves this site and ignores _headers, so the policy lives here; a meta tag cannot set frame-ancestors. -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src 'self' data:; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src https://fonts.gstatic.com; script-src 'self'; connect-src 'self'; base-uri 'self'; form-action 'self'">
<meta name="referrer" content="strict-origin-when-cross-origin">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Kates — Kafka testing, chaos and security on Kubernetes</title>
<meta name="description" content="Kates puts load on Apache Kafka, injects faults into its brokers, measures throughput, P99 latency, recovery time and lost records, and audits broker security. Repeatable on a laptop, pass/fail in CI.">
Expand All @@ -21,7 +24,7 @@

<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@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500;600&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="styles.css">

<script type="application/ld+json">
Expand Down Expand Up @@ -94,10 +97,10 @@ <h1>Break your Kafka cluster <span class="accent">before production does.</span>
</div>

<div class="hero-demo">
<div class="terminal" role="img" aria-label="Terminal running a Kates load test and a CI gate">
<div class="terminal">
<div class="terminal-bar"><span></span><span></span><span></span><em>zsh — kates</em></div>
<pre><code><span class="p">$</span> kates health
<span class="ok">✓</span> Kates API http://localhost:8080 <span class="dim">v1.0</span>
<pre tabindex="0" aria-label="Terminal running a Kates load test and a CI gate"><code><span class="p">$</span> kates health
<span class="ok">✓</span> Kates API http://localhost:8080
<span class="ok">✓</span> Kafka krafter.kafka <span class="dim">3 brokers · 3 zones</span>

<span class="p">$</span> kates test create --type LOAD --records 100000 --wait
Expand Down Expand Up @@ -252,7 +255,7 @@ <h2>From an empty laptop to a graded load test in five commands.</h2>
<div class="how-code">
<div class="code-block">
<div class="code-title">Terminal</div>
<pre><code><span class="c"># 1. The CLI (macOS or Linux)</span>
<pre tabindex="0" aria-label="Install commands"><code><span class="c"># 1. The CLI (macOS or Linux)</span>
brew install bmscomp/tap/kates
git clone https://github.com/bmscomp/kates &amp;&amp; cd kates

Expand All @@ -272,7 +275,7 @@ <h2>From an empty laptop to a graded load test in five commands.</h2>
</div>
<div class="code-block">
<div class="code-title">GitHub Actions</div>
<pre><code><span class="k">- uses:</span> bmscomp/kates@v1
<pre tabindex="0" aria-label="GitHub Actions workflow"><code><span class="k">- uses:</span> bmscomp/kates@v1
<span class="k">with:</span>
<span class="k">api-url:</span> ${{ secrets.KATES_API_URL }}
<span class="k">api-key:</span> ${{ secrets.KATES_API_KEY }}
Expand Down Expand Up @@ -521,8 +524,6 @@ <h2>Three parts that fit how you already run Kafka.</h2>
</div>
<p class="arch-step"></p>
<div class="arch-keyhints" aria-hidden="true">
<span><b>1–5</b> phase</span>
<span class="sep">│</span>
<span><b>hover</b> inspect node</span>
<span class="sep">│</span>
<span><b>T</b> next look</span>
Expand Down Expand Up @@ -581,19 +582,19 @@ <h2>Three parts that fit how you already run Kafka.</h2>

<div class="screens">
<figure>
<img src="assets/kates-lab-panels-dracula.png" alt="kates lab interactive performance tuning in the Panels look with Dracula colors" loading="lazy">
<img src="assets/kates-lab-panels-dracula.png" width="1024" height="669" alt="kates lab interactive performance tuning in the Panels look with Dracula colors" loading="lazy">
<figcaption><b><code>kates lab</code> · Panels look &amp; Dracula colors.</b> Tune producer parameters, run load iterations, compare P99 latency and throughput deltas, and switch looks (<code>T</code>) or color palettes (<code>C</code>) live.</figcaption>
</figure>
<figure>
<img src="assets/kates-lab-classic-aurora.png" alt="kates lab interactive performance tuning in the Classic look with Aurora colors" loading="lazy">
<img src="assets/kates-lab-classic-aurora.png" width="1024" height="669" alt="kates lab interactive performance tuning in the Classic look with Aurora colors" loading="lazy">
<figcaption><b><code>kates lab</code> · Classic look &amp; Aurora colors.</b> The same interactive tuning session rendered in the Classic borderless layout with the Aurora palette; persist your favorite with <code>kates theme set</code>.</figcaption>
</figure>
<figure>
<img src="assets/kates-dashboard-grid-aurora.png" alt="kates dashboard live cluster and test monitor in the Grid look with Aurora colors" loading="lazy">
<img src="assets/kates-dashboard-grid-aurora.png" width="1024" height="669" alt="kates dashboard live cluster and test monitor in the Grid look with Aurora colors" loading="lazy">
<figcaption><b><code>kates dashboard</code> · Grid look &amp; Aurora colors.</b> Live 1s-refreshing view of API and Kafka broker health, under-replicated partitions, active workloads, completed runs, and real-time throughput/P99 sparklines.</figcaption>
</figure>
<figure>
<img src="assets/kates-ctx-profiles-chips.png" alt="kates ctx profiles set interactive selector in the Chips look" loading="lazy">
<img src="assets/kates-ctx-profiles-chips.png" width="1024" height="316" alt="kates ctx profiles set interactive selector in the Chips look" loading="lazy">
<figcaption><b><code>kates ctx profiles set</code> · Chips look.</b> Scope the CLI to the command groups you need—<code>performance</code>, <code>integrity</code>, <code>chaos</code>, <code>topology</code>, <code>security</code>, or <code>deploy</code>—per context.</figcaption>
</figure>
</div>
Expand All @@ -607,7 +608,7 @@ <h2>Three parts that fit how you already run Kafka.</h2>
<p class="eyebrow">Compared with the usual workflow</p>
<h2>Benchmark tools measure. Kates measures under failure and keeps score.</h2>
</div>
<div class="table-wrap">
<div class="table-wrap" tabindex="0" aria-label="Comparison of Kates with other Kafka testing tools">
<table class="compare">
<thead>
<tr>
Expand Down Expand Up @@ -637,7 +638,7 @@ <h2>Benchmark tools measure. Kates measures under failure and keeps score.</h2>
<div class="how-code">
<div class="code-block">
<div class="code-title">scenario.yaml</div>
<pre><code><span class="k">name:</span> checkout-peak
<pre tabindex="0" aria-label="Example scenario file"><code><span class="k">name:</span> checkout-peak
<span class="k">type:</span> LOAD
<span class="k">records:</span> 2000000
<span class="k">producers:</span> 8
Expand All @@ -652,7 +653,7 @@ <h2>Benchmark tools measure. Kates measures under failure and keeps score.</h2>
</div>
<div class="code-block">
<div class="code-title">Terminal</div>
<pre><code>$ kates test apply -f scenario.yaml --wait
<pre tabindex="0" aria-label="Scenario run output"><code>$ kates test apply -f scenario.yaml --wait
<span class="ok">PASS</span> throughput 47,902 ≥ 40,000
<span class="ok">PASS</span> P99 19.6 ms ≤ 25 ms
<span class="ok">PASS</span> recovery 8.1 s ≤ 30 s
Expand Down
15 changes: 8 additions & 7 deletions website/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
var toggle = document.querySelector('.nav-toggle');
var links = document.getElementById('nav-links');
if (toggle && links) {
toggle.addEventListener('click', function () {
var open = links.classList.toggle('open');
var setOpen = function (open) {
links.classList.toggle('open', open);
toggle.setAttribute('aria-expanded', open ? 'true' : 'false');
toggle.setAttribute('aria-label', open ? 'Close menu' : 'Open menu');
});
};
toggle.addEventListener('click', function () { setOpen(!links.classList.contains('open')); });
links.addEventListener('click', function (e) {
if (e.target.tagName === 'A') {
links.classList.remove('open');
toggle.setAttribute('aria-expanded', 'false');
}
if (e.target.closest('a')) setOpen(false);
});
document.addEventListener('keydown', function (e) {
if (e.key === 'Escape' && links.classList.contains('open')) { setOpen(false); toggle.focus(); }
});
}
var year = document.getElementById('year');
Expand Down
4 changes: 2 additions & 2 deletions website/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@500;600&display=swap');
/* Kates marketing site — katesplatform.io
Theme "Paper": light, editorial; EB Garamond headings, navy ink, sky accent.
Alternative palettes live in themes/. */
Expand Down Expand Up @@ -75,7 +74,7 @@ h3 { font-size: 1.2rem; font-weight: 600; }
.nav-links a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--heading); text-decoration: none; }
.nav-links .gh { display: inline-flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle { display: none; background: none; border: 0; padding: 9px 11px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--heading); margin: 5px 0; border-radius: 2px; }

/* ---------- buttons ---------- */
Expand Down Expand Up @@ -480,6 +479,7 @@ h3 { font-size: 1.2rem; font-weight: 600; }
color: var(--tui-muted);
}
.arch-keyhints b { color: var(--tui-focus); font-weight: 600; }
@media (hover: none) { .arch .arch-keyhints, .kz .arch-keyhints span:not(:first-child) { display: none; } }
.arch[data-tui-design="panels"] .arch-keyhints b,
.kz[data-tui-design="panels"] .arch-keyhints b { color: #bd93f9; }
.arch-keyhints .sep { color: var(--tui-border); }
Expand Down
Loading