spectrelang.org is built with highlight.js, hosted on Cloudflare. It measures traffic with Cloudflare Web Analytics.
| Technology | Version | First seen |
|---|---|---|
| JavaScript Frameworks & Libraries1 | ||
| – | 7 Nov 2026 | |
| Frontend Build Tools & CSS1 | ||
| – | 7 Nov 2026 | |
| CDN & Hosting1 | ||
| – | 7 Nov 2026 | |
| Analytics & Tag Management1 | ||
| – | 7 Nov 2026 | |
| Donations & Fundraising1 | ||
| – | 7 Nov 2026 | |
| Fonts & Icon Fonts1 | ||
| – | 7 Nov 2026 | |
Registration from the registry's RDAP record, the certificate the site serves, and its rank in public traffic lists.
The crew hasn’t read this site’s colors yet. We read a palette when we capture a site’s screenshot, busiest sites first. Meanwhile, browse palettes from other sites.
vicky.ns.cloudflare.comdesiree.ns.cloudflare.com# As a condition of accessing this website, you agree to abide by the following
# content signals:
# (a) If a Content-Signal = yes, you may collect content for the corresponding
# use.
# (b) If a Content-Signal = no, you may not collect content for the
# corresponding use.
# (c) If the website operator does not include a Content-Signal for a
# corresponding use, the website operator neither grants nor restricts
# permission via Content-Signal with respect to the corresponding use.
# The content signals and their meanings are:
# search: building a search index and providing search results (e.g., returning
# hyperlinks and short excerpts from your website's contents). Search does not
# include providing AI-generated search summaries.
# ai-input: inputting content into one or more AI models (e.g., retrieval
# augmented generation, grounding, or other real-time taking of content for
# generative AI search answers).
# ai-train: training or fine-tuning AI models.
# use: how AI systems may consume the content (immediate, reference, or full).
# ANY RESTRICTIONS EXPRESSED VIA CONTENT SIGNALS ARE EXPRESS RESERVATIONS OF
# RIGHTS UNDER ARTICLE 4 OF THE EUROPEAN UNION DIRECTIVE 2019/790 ON COPYRIGHT
# AND RELATED RIGHTS IN THE DIGITAL SINGLE MARKET.
# BEGIN Cloudflare Managed content
User-agent: *
Content-Signal: search=yes,ai-train=no,use=reference
Allow: /
# Training crawlers
User-agent: Amazonbot
Disallow: /
User-agent: Applebot-Extended
Disallow: /
User-agent: Bytespider
Disallow: /
User-agent: CCBot
Disallow: /
User-agent: ClaudeBot
Disallow: /
User-agent: Diffbot
Disallow: /
User-agent: Google-Extended
Disallow: /
User-agent: GPTBot
Disallow: /
User-agent: omgili
Disallow: /
User-agent: anthropic-ai
Disallow: /
User-agent: Claude-Web
Disallow: /
User-agent: cohere-ai
Disallow: /
User-agent: MistralAI-Training
Disallow: /
User-agent: meta-externalagent
Disallow: /
User-agent: GoogleOther
Disallow: /
User-agent: Baiduspider
Disallow: /
User-agent: PetalBot
Disallow: /
User-agent: AwarioSmartBot
User-agent: AwarioRssBot
Disallow: /
User-agent: Google-CloudVertexBot
Disallow: /
User-agent: QualifiedBot
Disallow: /
User-agent: Cotoyogi
Disallow: /
User-agent: ICC-Crawler
Disallow: /
User-agent: atlassian-bot
Disallow: /
User-agent: FishBot
Disallow: /
User-agent: BorderxBot
Disallow: /
User-agent: NavuBot
Disallow: /
User-agent: SemrushBot-SWA
Disallow: /
User-agent: WARDBot
Disallow: /
User-agent: magpie-crawler
Disallow: /
User-agent: KimiBot
Disallow: /
User-agent: CitibotSiteCrawler
Disallow: /
# END Cloudflare Managed Content
<!doctype html>
<html lang="en" data-theme="light">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Spectre Programming Language</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
<link rel="icon" type="image/x-icon" href="./icon-transparent.png" />
<script>
(function () {
var t = null;
try {
t = localStorage.getItem("spectre-theme");
} catch (e) {}
if (
!t &&
window.matchMedia &&
matchMedia("(prefers-color-scheme: dark)").matches
)
t = "dark";
if (t) document.documentElement.setAttribute("data-theme", t);
})();
</script>
<style>
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;1,400&family=IBM+Plex+Sans:ital,wght@0,400;0,600;1,400&display=swap");
:root,
[data-theme="light"] {
--bg: #ffffff;
--text: #222222;
--faint: #5c5c5c;
--link: #0645ad;
--rule: #bdbdbd;
--code-bg: #f5f5f3;
--tab-off: #e6e6e3;
--mark: #fff3a8;
--k: #aa2222;
--b: #7a3a8a;
--t: #226677;
--f: #7a6a00;
--s: #8a4a20;
--n: #3a6a20;
--c: #3f6b3f;
--v: #4a5a6a;
--o: #4a5260;
--l: #224488;
--m: #5b4a99;
--a: #3f5f70;
--icon-moon: block;
--icon-sun: none;
}
[data-theme="dark"] {
--bg: #1a1a1a;
--text: #dcdcd8;
--faint: #a0a09a;
--link: #8db8f2;
--rule: #4a4a4a;
--code-bg: #101010;
--tab-off: #252525;
--mark: #4a4217;
--k: #c06a6a;
--b: #a878a8;
--t: #5f9aaa;
--f: #c4b360;
--s: #bb8458;
--n: #8fb066;
--c: #6f9a6f;
--v: #9aaaba;
--o: #7d8794;
--l: #7898cc;
--m: #9a8ac8;
--a: #aabcc8;
--icon-moon: none;
--icon-sun: block;
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
body {
margin: 0;
background: var(--bg);
color: var(--text);
font-family:
"IBM Plex Sans",
system-ui,
-apple-system,
"Segoe UI",
sans-serif;
font-size: 1.05rem;
line-height: 1.65;
}
::selection {
background: var(--mark);
color: inherit;
}
a {
color: var(--link);
text-decoration: underline;
text-underline-offset: 0.15em;
}
a:hover {
text-decoration-thickness: 2px;
}
:focus-visible {
outline: 2px solid var(--link);
outline-offset: 2px;
}
.page {
max-width: 54rem;
margin: 0 auto;
padding: 1.25rem 1.25rem 3rem;
}
/* ── Top bar ── */
.topbar {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.4rem 1.1rem;
padding-bottom: 0.9rem;
border-bottom: 1px solid var(--rule);
font-size: 0.95rem;
}
.home {
display: inline-flex;
align-items: center;
gap: 0.45rem;
align-self: center;
color: var(--text);
font-weight: 600;
text-decoration: none;
}
.home img {
width: 20px;
height: 20px;
display: block;
}
.topbar ul {
display: flex;
flex-wrap: wrap;
gap: 0.2rem 0.9rem;
margin: 0;
padding: 0;
list-style: none;
}
.topbar .theme-toggle {
margin-left: auto;
align-self: center;
}
.theme-toggle {
display: flex;
align-items: center;
justify-content: center;
width: 28px;
height: 28px;
padding: 0;
border: 0;
background: transparent;
color: var(--faint);
cursor: pointer;
}
.theme-toggle:hover {
color: var(--text);
}
.theme-toggle svg {
width: 15px;
height: 15px;
}
.icon-moon {
display: var(--icon-moon);
}
.icon-sun {
display: var(--icon-sun);
}
/* ── Masthead ── */
header {
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
column-gap: 1.5rem;
align-items: end;
padding: 2.75rem 0 2rem;
}
h1 {
grid-column: 1;
margin: 0;
font-size: clamp(2.75rem, 9vw, 4.25rem);
font-weight: 50;
line-height: 1;
letter-spacing: -0.035em;
}
.mascot {
grid-column: 2;
grid-row: 1 / span 2;
width: clamp(96px, 24vw, 168px);
height: auto;
display: block;
align-self: center;
}
.hero-sub {
grid-column: 1;
margin: 1rem 0 0;
font-size: 1.2rem;
line-height: 1.5;
max-width: 30rem;
}
/* ── Text ── */
section {
padding-top: 1rem;
}
h2 {
margin: 0 0 1rem;
font-size: 1.6rem;
font-weight: 600;
line-height: 1.2;
}
p {
margin: 0 0 1rem;
}
p:last-child {
margin-bottom: 0;
}
p.lead {
font-size: 1.2rem;
line-height: 1.55;
}
code {
font-family:
"IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
/* ── Install ── */
.install {
margin-bottom: 1.5rem;
}
.cmd-label {
margin: 0 0 0.25rem;
font-size: 0.95rem;
color: var(--faint);
}
.cmd {
display: flex;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
margin: 0 0 1.1rem;
padding: 0.6rem 0.5rem 0.6rem 0.9rem;
background: var(--code-bg);
border: 1px solid var(--rule);
}
.cmd-line {
overflow-x: auto;
white-space: nowrap;
font-family:
"IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
font-size: 0.9rem;
}
.cmd-line::before {
content: "$ ";
color: var(--faint);
}
.cmd-win .cmd-line::before {
content: "> ";
}
.copy-btn {
flex-shrink: 0;
display: flex;
align-items: center;
justify-content: center;
width: 30px;
height: 30px;
padding: 0;
border: 0;
background: transparent;
color: var(--faint);
cursor: pointer;
}
.copy-btn:hover,
.copy-btn.done {
color: var(--link);
}
/* ── Tabbed code ── */
.tabbed {
margin-top: 1.75rem;
}
.tabs {
display: flex;
overflow-x: auto;
overflow-y: hidden;
padding: 0 0 1px;
gap: 3px;
scrollbar-width: none;
}
.tabs::-webkit-scrollbar {
display: none;
}
.tab {
position: relative;
flex: 0 0 auto;
margin: 0 0 -1px;
padding: 0.3rem 0.9rem;
font: inherit;
font-size: 0.95rem;
color: var(--faint);
background: var(--tab-off);
border: 1px solid var(--rule);
border-bottom-color: transparent;
cursor: pointer;
}
.tab:hover {
color: var(--text);
}
.tab[aria-selected="true"] {
z-index: 1;
color: var(--text);
background: var(--code-bg);
font-weight: 600;
}
.panes {
display: grid;
grid-template-columns: minmax(0, 1fr);
margin-top: -1px;
background: var(--code-bg);
border: 1px solid var(--rule);
}
.pane {
grid-area: 1 / 1;
min-width: 0;
visibility: hidden;
}
.pane.active {
visibility: visible;
}
.pane pre {
margin: 0;
padding: 1rem 1.1rem;
overflow-x: auto;
font-family:
"IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
font-size: 0.82rem;
line-height: 1.7;
tab-size: 4;
}
.pane code,
.pane code.hljs {
display: block;
padding: 0;
background: transparent;
color: var(--text);
font: inherit;
}
.hljs-keyword {
color: var(--k);
}
.hljs-built_in {
color: var(--b);
}
.hljs-type {
color: var(--t);
}
.hljs-title.function_ {
color: var(--f);
}
.hljs-string {
color: var(--s);
}
.hljs-number {
color: var(--n);
}
.hljs-comment {
color: var(--c);
font-style: italic;
}
.hljs-variable {
color: var(--v);
}
.hljs-operator {
color: var(--o);
}
.hljs-literal {
color: var(--l);
}
.hljs-meta {
color: var(--m);
}
.hljs-attr {
color: var(--a);
}
.hljs-symbol {
color: var(--f);
}
.hljs-params {
color: var(--text);
}
/* ── Built with ── */
.made {
margin: 0;
padding: 0;
list-style: none;
}
.made li {
display: grid;
grid-template-columns: 11rem minmax(0, 1fr);
gap: 1.25rem;
align-items: start;
padding: 1.25rem 0;
border-top: 1px solid var(--rule);
}
.made li:last-child {
border-bottom: 1px solid var(--rule);
}
.shot {
display: block;
width: 100%;
aspect-ratio: 16 / 10;
object-fit: cover;
background: var(--code-bg);
border: 1px solid var(--rule);
}
.shot.contain {
object-fit: contain;
padding: 0.4rem;
}
.made h3 {
margin: 0 0 0.2rem;
font-size: 1.1rem;
font-weight: 600;
line-height: 1.3;
}
.made h3 a {
font-family:
"IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
font-size: 1rem;
}
.made h3 span {
font-family:
"IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
font-size: 1rem;
}
.made p {
margin: 0;
font-size: 1rem;
line-height: 1.55;
}
/* ── Footer ── */
footer {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 0.5rem 1.5rem;
margin-top: 3rem;
padding-top: 1rem;
border-top: 1px solid var(--rule);
font-size: 0.9rem;
color: var(--faint);
}
.footer-logo {
display: inline-flex;
align-items: center;
gap: 0.45rem;
color: var(--text);
font-weight: 600;
}
.footer-logo img {
width: 16px;
height: 16px;
}
footer p {
margin: 0;
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
@media (max-width: 560px) {
body {
font-size: 1rem;
}
.made li {
grid-template-columns: minmax(0, 1fr);
gap: 0.75rem;
}
.shot {
max-width: 22rem;
}
.cmd-line {
white-space: normal;
overflow-wrap: anywhere;
}
}
</style>
</head>
<script src="./backdrop.js" defer></script>
<body id="top">
<div class="page">
<nav class="topbar" aria-label="Main">
<a class="home" href="#top" aria-label="Spectre home">
<img src="icon-transparent.png" alt="" />
<span>Spectre</span>
</a>
<ul>
<li><a href="./log/devlog.html">Devlog</a></li>
<li>
<a
href="https://discord.gg/aCnnVwAUWU"
target="_blank"
rel="noopener"
>Discord</a
>
</li>
<li>
<a
href="https://spectre-docs.pages.dev/specification.html"
target="_blank"
rel="noopener"
>Specification</a
>
</li>
<li>
<a
href="https://matrix.to/#/%23spectrelang:matrix.org"
target="_blank"
rel="noopener"
>Matrix</a
>
</li>
<li>
<a
href="https://github.com/spectrelang/spectre"
target="_blank"
rel="noopener"
>GitHub</a
>
</li>
<li>
<a
href="https://spectre-docs.pages.dev"
target="_blank"
rel="noopener"
>Docs</a
>
</li>
<li><a href="./stdlib/index.html">Standard Library</a></li>
<li><a href="./spectreforge/index.html">Forge</a></li>
<li>
<a
href="https://github.com/sponsors/navid-m"
target="_blank"
rel="noopener"
>Sponsor</a
>
</li>
</ul>
<button
class="theme-toggle"
id="themeToggle"
type="button"
title="Toggle light/dark mode"
aria-label="Toggle light/dark mode"
>
<svg
class="icon-moon"
viewBox="0 0 16 16"
fill="currentColor"
aria-hidden="true"
>
<path
d="M6 .278a.768.768 0 01.08.858 7.208 7.208 0 00-.878 3.46c0 4.021 3.278 7.277 7.318 7.277.527 0 1.04-.055 1.533-.16a.787.787 0 01.81.316.733.733 0 01-.031.893A8.349 8.349 0 018.344 16C3.734 16 0 12.286 0 7.71 0 4.266 2.114 1.312 5.124.06A.752.752 0 016 .278z"
/>
</svg>
<svg
class="icon-sun"
viewBox="0 0 16 16"
fill="currentColor"
aria-hidden="true"
>
<path
d="M8 11a3 3 0 110-6 3 3 0 010 6zm0 1a4 4 0 100-8 4 4 0 000 8zM8 0a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2A.5.5 0 018 0zm0 13a.5.5 0 01.5.5v2a.5.5 0 01-1 0v-2A.5.5 0 018 13zm8-5a.5.5 0 01-.5.5h-2a.5.5 0 010-1h2a.5.5 0 01.5.5zM3 8a.5.5 0 01-.5.5h-2a.5.5 0 010-1h2A.5.5 0 013 8zm10.657-5.657a.5.5 0 010 .707l-1.414 1.415a.5.5 0 11-.707-.708l1.414-1.414a.5.5 0 01.707 0zm-9.193 9.193a.5.5 0 010 .707L3.05 13.657a.5.5 0 01-.707-.707l1.414-1.414a.5.5 0 01.707 0zm9.193 2.121a.5.5 0 01-.707 0l-1.414-1.414a.5.5 0 01.707-.707l1.414 1.414a.5.5 0 010 .707zM4.464 4.465a.5.5 0 01-.707 0L2.343 3.05a.5.5 0 11.707-.707l1.414 1.414a.5.5 0 010 .707z"
/>
</svg>
</button>
</nav>
<header>
<h1>Spectre</h1>
<img
class="mascot"
src="./icon-transparent.png"
alt="The Spectre Cube..."
/>
<p class="hero-sub">
A statically typed, design-by-contract programming language for
building fast, scalable, and maintainable systems.
</p>
</header>
<div class="install">
<p class="cmd-label">Install - POSIX (Linux, MacOS, FreeBSD, etc...)</p>
<div class="cmd">
<div class="cmd-line">curl https://spectrelang.org/get.sh | sh</div>
<button
class="copy-btn"
type="button"
aria-label="Copy command"
title="Copy command"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
>
<rect x="8" y="8" width="13" height="13" rx="2" />
<path
d="M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"
/>
</svg>
</button>
</div>
<p class="cmd-label">Install - Windows</p>
<div class="cmd cmd-win">
<div class="cmd-line">irm https://spectrelang.org/get.ps1 | iex</div>
<button
class="copy-btn"
type="button"
aria-label="Copy command"
title="Copy command"
>
<svg
xmlns="http://www.w3.org/2000/svg"
width="16"
height="16"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
stroke-width="2"
stroke-linecap="round"
stroke-linejoin="round"
aria-hidden="true"
>
<rect x="8" y="8" width="13" height="13" rx="2" />
<path
d="M16 8V5a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h3"
/>
</svg>
</button>
</div>
<se