diff --git a/assets/main.css b/assets/main.css index 94876b8..9fbfeeb 100644 --- a/assets/main.css +++ b/assets/main.css @@ -81,8 +81,8 @@ font-display: swap; font-family: 'Inter'; font-style: normal; - font-weight: 400; - src: url(/fonts/inter/inter-v20-latin-regular.woff2) format('woff2'); + font-weight: 100 900; + src: url(/fonts/inter/InterVariable-latin.woff2) format('woff2'); } @font-face { @@ -228,27 +228,36 @@ nav { @media (max-width: 800px) { display: none; } + padding: 4px; + gap: 4px; li { flex: 1; a { - height: var(--nav-control-height); + /* inset inside the pill so the highlight keeps rounded ends */ + height: calc(var(--nav-control-height) - 10px); display: flex; align-items: center; justify-content: center; + border-radius: 999px; font-size: var(--font-size-s); line-height: 1; - font-weight: 500; - color: rgba(38, 119, 122, 0.78); + font-weight: 500; /* same weight in every state, so the text never shifts */ + white-space: nowrap; + color: rgba(38, 119, 122, 0.85); text-decoration: none; - transition: color 0.15s, background 0.15s; + /* the highlight switches instantly; fading it made two pills look half-lit at once */ + transition: none; &:hover { color: var(--color-teal); - background: rgba(255, 255, 255, 0.38); + background-color: rgba(255, 255, 255, 0.6); + } + &:focus-visible { + outline: 2px solid var(--color-teal); + outline-offset: 2px; } &.active { - color: var(--color-bg); - font-weight: 700; - background: rgba(38, 119, 122, 0.88); + color: #ffffff; + background-color: var(--color-teal); } } } @@ -478,137 +487,6 @@ section { } } -.pillars { - margin-block: 30px; - border: 1px solid var(--color-border); - border-radius: var(--border-radius-s); - overflow: hidden; - .pillar { - display: grid; - grid-template-columns: 120px 1fr; - border-bottom: 1px solid var(--color-border); - background: var(--color-bg); - transition: background 0.15s; - &:hover { - background: var(--color-teal-faint); - } - &:last-child { - border-bottom: none; - } - @media (max-width: 800px) { - grid-template-columns: 1fr; - } - h3 { - display: flex; - flex-direction: column; - gap: 5px; - padding: 20px; - border-right: 1px solid var(--color-border); - @media (max-width: 800px) { - border-right: none; - border-bottom: 1px solid var(--color-border); - } - span { - font-family: var(--font-family-mono); - font-size: var(--font-size-xs); - line-height: var(--line-height-xs); - color: var(--color-ink-3); - } - strong { - font-family: var(--font-family-heading); - font-size: var(--font-size-xs); - line-height: var(--line-height-xs); - font-weight: 500; - color: var(--color-teal); - } - } - p { - font-family: var(--font-family-body); - margin: 0; - padding: 20px; - font-size: var(--font-size-s); - line-height: var(--line-height-s); - font-weight: 400; - color: var(--color-ink-2); - } - } -} - -.team { - display: grid; - grid-template-columns: repeat(2, 1fr); - margin-block: 30px; - border: 1px solid var(--color-border); - border-radius: var(--border-radius-s); - overflow: hidden; - @media (max-width: 800px) { - grid-template-columns: 1fr; - } - .team__member { - padding: 25px; - gap: 15px; - background: var(--color-bg); - transition: background 0.15s; - &:hover { - background: var(--color-bg-alt); - } - @media (min-width: 801px) { - border-bottom: 1px solid var(--color-border); - border-right: 1px solid var(--color-border); - &:nth-child(2n) { - border-right: none; - } - &:last-child, &:nth-last-child(2) { - border-bottom: none; - } - } - @media (max-width: 800px) { - border-bottom: 1px solid var(--color-border); - &:last-child { - border-bottom: none; - } - } - .team__head { - display: flex; - align-items: center; - gap: 20px; - } - img { - width: 45px; - height: 45px; - border-radius: var(--border-radius-s); - flex-shrink: 0; - } - h3 { - font-family: var(--font-family-heading); - font-size: var(--font-size-s); - line-height: var(--line-height-s); - font-weight: normal; - color: var(--color-ink); - } - i { - display: block; - font-family: var(--font-family-mono); - font-size: var(--font-size-xxs); - line-height: var(--line-height-xxs); - color: var(--color-ink-3); - font-style: normal; - a { - color: var(--color-ink-3); - &:hover { - color: var(--color-teal); - } - } - } - p { - font-size: var(--font-size-xs); - line-height: var(--line-height-xs); - font-weight: 400; - color: var(--color-ink-2); - } - } -} - .contact { display: flex; gap: 50px; @@ -731,3 +609,272 @@ pre .prompt { line-height: var(--line-height-xs); color: var(--color-ink-2); } + +/* inline code */ +code { + padding: 0 4px; + font-family: var(--font-family-mono); + font-size: 0.9em; + background: var(--color-teal-faint); + border: 1px solid var(--color-border); + border-radius: var(--border-radius-s); +} + +/* secondary buttons */ +.button--ghost { + background: transparent; + color: #e6f2f3; + box-shadow: inset 0 0 0 1px rgba(111, 208, 212, 0.55); + &:hover { + background: rgba(111, 208, 212, 0.12); + } +} +.button--ghost-dark { + margin-left: 10px; + background: transparent; + color: var(--color-teal); + box-shadow: inset 0 0 0 1px var(--color-teal); + &:hover { + background: var(--color-teal-faint); + } +} + +/* hero calls to action */ +.hero .hero__cta { + margin-top: 30px; + display: flex; + justify-content: center; + flex-wrap: wrap; + gap: 15px; + @media (max-width: 800px) { + justify-content: flex-start; + } +} +.hero p.hero__meta { + margin-top: 20px; + font-size: var(--font-size-xs); + line-height: var(--line-height-xs); + color: #8fa6bb; + a { + color: #8fd9dc; + } +} + +/* audience strip in About */ +.audience { + margin-top: 30px; + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 20px; + @media (max-width: 800px) { + grid-template-columns: 1fr; + } + & > div { + padding: 20px; + border-left: 3px solid var(--color-teal); + background: var(--color-bg-alt); + } + h3 { + margin-bottom: 5px; + font-family: var(--font-family-heading); + font-size: var(--font-size-s); + line-height: var(--line-height-s); + font-weight: 500; + color: var(--color-ink); + } + p { + font-size: var(--font-size-xs); + line-height: var(--line-height-xs); + color: var(--color-ink-2); + } +} + +/* how it works */ +.steps { + margin-block: 30px; + display: grid; + grid-template-columns: repeat(4, 1fr); + gap: 20px; + list-style: none; + @media (max-width: 900px) { + grid-template-columns: repeat(2, 1fr); + } + @media (max-width: 500px) { + grid-template-columns: 1fr; + } +} +.step { + padding: 20px; + background: var(--color-bg); + border: 1px solid var(--color-border); + border-radius: var(--border-radius-s); + h3 { + margin-block: 10px 5px; + font-family: var(--font-family-heading); + font-size: var(--font-size-s); + line-height: var(--line-height-s); + font-weight: 500; + color: var(--color-teal); + } + p { + font-size: var(--font-size-xs); + line-height: var(--line-height-xs); + color: var(--color-ink-2); + } +} +.step__num { + display: inline-block; + font-family: var(--font-family-mono); + font-size: var(--font-size-xs); + line-height: var(--line-height-xs); + color: var(--color-ink-3); +} +.sieve { + display: grid; + grid-template-columns: repeat(4, 1fr); + border: 1px solid var(--color-border); + border-radius: var(--border-radius-s); + overflow: hidden; + @media (max-width: 700px) { + grid-template-columns: 1fr; + } +} +.sieve__stage { + position: relative; + padding: 15px 20px; + font-family: var(--font-family-heading); + font-size: var(--font-size-s); + line-height: var(--line-height-s); + color: var(--color-ink); + background: var(--color-bg); + &:nth-child(2) { background: var(--color-teal-faint); } + &:nth-child(3) { background: var(--color-teal-light); } + &:nth-child(4) { background: #b9dcde; } + span { + margin-right: 10px; + font-family: var(--font-family-mono); + color: var(--color-teal); + } + small { + display: block; + font-family: var(--font-family-body); + font-size: var(--font-size-xxs); + line-height: var(--line-height-xxs); + color: var(--color-ink-3); + } + &:not(:last-child)::after { + content: "→"; + position: absolute; + right: 10px; + top: 15px; + color: var(--color-teal); + @media (max-width: 700px) { + content: "↓"; + } + } +} +.sieve__note { + margin-top: 15px; + color: var(--color-ink-2); +} + +/* feature grid reuses .cats */ +.features .cat h3 { + color: var(--color-ink); +} +.tag { + padding: 0 5px; + font-family: var(--font-family-mono); + font-size: var(--font-size-xxs); + line-height: var(--line-height-xxs); + vertical-align: middle; + color: var(--color-red); + border: 1px solid currentColor; + border-radius: var(--border-radius-s); +} + +/* get started */ +.subhead { + font-family: var(--font-family-heading); + font-size: var(--font-size-s); + line-height: var(--line-height-s); + font-weight: 500; + .step__num { + margin-right: 5px; + color: var(--color-teal); + } +} +details.cli-only { + margin-top: 30px; + padding: 15px 20px; + border: 1px solid var(--color-border); + border-radius: var(--border-radius-s); + summary { + cursor: pointer; + font-size: var(--font-size-s); + line-height: var(--line-height-s); + color: var(--color-ink-2); + } +} +.doclinks { + margin-top: 30px; + display: flex; + flex-wrap: wrap; + gap: 10px 30px; + list-style: none; + font-size: var(--font-size-s); + line-height: var(--line-height-s); + a { + text-decoration: none; + font-weight: 500; + &:hover { + text-decoration: underline; + } + } +} + +/* copy button on code blocks */ +pre { + position: relative; + padding-right: 80px; +} +pre .copy { + position: absolute; + top: 10px; + right: 10px; + padding: 0 10px; + font-family: var(--font-family-mono); + font-size: var(--font-size-xxs); + line-height: 25px; + color: #bfe3e4; + background: rgba(255, 255, 255, 0.06); + border: 1px solid rgba(191, 227, 228, 0.25); + border-radius: var(--border-radius-s); + cursor: pointer; + &:hover { + background: rgba(255, 255, 255, 0.14); + } +} + +@media (prefers-reduced-motion: reduce) { + html { + scroll-behavior: auto; + } +} + +/* composition example */ +.compose { + margin-top: 30px; + display: grid; + grid-template-columns: 1fr 1.4fr; + gap: 30px; + align-items: start; + @media (max-width: 800px) { + grid-template-columns: 1fr; + } + pre { + margin: 0; + } + .toml-key { color: #8fd9dc; } + .toml-str { color: #f2c38b; } +} diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index c2a2f99..0ad6e49 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -22,8 +22,8 @@
@@ -77,6 +80,17 @@ $menuToggle.setAttribute("aria-expanded", String(isOpen)); }); +function closeMenu() { + $menu.classList.remove("open"); + $menuToggle.setAttribute("aria-expanded", "false"); +} +document.addEventListener("keydown", (e) => { + if (e.key === "Escape") closeMenu(); +}); +document.addEventListener("click", (e) => { + if (!$menu.contains(e.target) && !$menuToggle.contains(e.target)) closeMenu(); +}); + $menu.querySelectorAll("a").forEach(($link) => { $link.addEventListener("click", () => { $menu.classList.remove("open"); diff --git a/layouts/index.html b/layouts/index.html index 9c5384e..0d8629c 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,8 +1,9 @@ {{ define "main" }} +{{ $repo := "https://github.com/darnitdevorg/darnit" }}
+
62
- controls in the bundled OpenSSF Baseline implementation + controls in the bundled OpenSSF Baseline plugin + (OSPS v2026.02.19)
@@ -37,43 +48,183 @@

maturity levels to grow through as your project matures

- 0 -
forks needed, compose your own posture in pure TOML
+ 4 +
standards shipped as plugins: Baseline, reproducibility, gittuf, and CSL
+
About
-

Compliance Tooling That Actually Closes the Gaps

-

- Darnit is a pluggable framework for auditing projects against engineering best practices. It provides - the infrastructure for running compliance audits, generating cryptographic attestations, and automating - remediation, so conformance is something you run, not something you write in a spreadsheet. -

+

Compliance Tooling That Closes the Gaps

- Security is a key focus, but Darnit covers the full spectrum of software quality: security posture, - testing practices, build reproducibility, project governance, and documentation standards. Pass logic - is expressed in CEL, and plugins are signed and verified with - Sigstore. + Most compliance tools give you a score and leave the work to you. Darnit runs the checks, gathers + the project context it needs, drafts the fixes, and produces a signed attestation you can hand to + users, foundations, or auditors. Compliance becomes a step you run, not a spreadsheet you fill in.

- Darnit is AI-native, too: it ships an MCP server so agents can audit, remediate, and - attest interactively. Built in the open by Kusari and contributors, - under Apache-2.0. + Security is a key focus, but the checks go further: testing practices, build reproducibility, + project governance, licensing, and documentation. Each standard is a plugin, and the + OpenSSF Baseline plugin ships in the box.

+
+
+

Maintainers

+

Find out where your project stands against the Baseline and close the gaps in one pull request.

+
+

Foundations & OSPOs

+

Check many repositories against one shared standard and collect signed evidence of the results.

+
+
+

Standards authors

+

Turn a written policy into controls you can run, as a plugin or as a composition written in TOML.

+
+
+
+
+ +
+
+
How It Works
+

Audit, Confirm, Remediate, Attest

+

+ Darnit works through a project in four steps. Nothing on the repository or the platform changes + without your approval. +

+
    +
  1. + 01 +

    Audit

    +

    + Each control passes through the sieve: deterministic checks first, then pattern matching, + then a question to your AI assistant, and finally manual verification. A control passes only when + a check proves it. +

    +
  2. +
  3. + 02 +

    Confirm Context

    +

    + Darnit never guesses facts that only you can know, such as maintainers or security contacts. It + asks you, records your answers in .project/, and re-audits. +

    +
  4. +
  5. + 03 +

    Remediate

    +

    + Fixes are previewed by default, and only the changes you approve are applied. Platform settings + are only ever tightened, never weakened. Darnit then opens a branch and a pull request with the + files it wrote. +

    +
  6. +
  7. + 04 +

    Attest

    +

    + The result is an in-toto attestation signed with + Sigstore, so anyone can verify your compliance claims + without trusting a screenshot. +

    +
  8. +
+ +
+
1Deterministicfile exists? API says?
+
2Patternregex & heuristics
+
3LLMask the calling agent
+
4Manualhuman verification
+
+

+ Conservative by default: a result of WARN means “we don’t know yet” and + counts as not passing. A wrong pass is worse than an honest gap. +

+
+ +
+
+
Features
+

Built to Be Extended

+
+
+

Plugin Architecture

+

Implement any compliance standard as a Darnit plugin, with controls declared in TOML.

+
+
+

Compose in TOML

+

+ Combine slices of the plugins you have installed into your organization’s own posture, with no + forking and no Python. +

+
+
+

Agent-Native

+

An MCP server and ready-made skills let Claude Code and other agents audit and fix your project in conversation.

+
+
+

Safe Remediation

+

Dry run by default, approval tied to the exact change, and settings that are only ever tightened.

+
+
+

Signed Attestations

+

in-toto statements signed with Sigstore. Plugins are signed and verified too.

+
+
+

CEL Pass Logic

+

Pass conditions are written in CEL, so they are readable and easy to review.

+
+
+

Project Context

+

A single .project.yaml records where your docs and policies live and what you have confirmed.

+
+
+

STRIDE Threat Model alpha

+

Drafts a starting threat model, best for Python web services and MCP servers.

+
+
+ +
+
+

Your Standard, Without a Fork

+

+ Need “Baseline levels 1–2, every gittuf check, and one rule of our own”? Write it as a composition + in TOML. Darnit resolves it when it loads, and the controls you pull in stay up to date with + their upstream plugins. +

+

+ Composition quickstart → +

+
+
# acme-baseline.toml
+[[compose]]
+source           = "openssf-baseline"
+include_levels   = [1, 2]
+exclude_controls = ["OSPS-AC-02.01"]
+
+[[compose]]
+source      = "darnit-gittuf"
+include_all = true
+
+[controls."ACME-DEPLOY-01.01"]
+name  = "DeployWindowEnforced"
+level = 1
+
+
+
+
OpenSSF Baseline

What Darnit Checks Out of the Box

- The bundled OpenSSF Baseline implementation covers 62 controls - across eight categories and three maturity levels. + The bundled OpenSSF Baseline implementation (OSPS + v2026.02.19) covers 62 controls across eight categories and three maturity levels.

@@ -84,7 +235,7 @@

Access Control

OSPS-BR

Build & Release

-

Signed artifacts, pinned dependencies, and sane release processes.

+

Signed artifacts, pinned dependencies, and sound release processes.

OSPS-DO @@ -99,12 +250,12 @@

Governance

OSPS-LE

Legal

-

Licensing that is present, clear, and consistent across the project.

+

Clear, consistent licensing and contributor agreements (DCO or CLA).

OSPS-QA

Quality

-

Code review requirements, CI/CD quality gates, and test coverage.

+

Code review requirements, CI/CD quality gates, testing, and static analysis.

OSPS-SA @@ -114,47 +265,65 @@

Security Architecture

OSPS-VM

Vulnerability Management

-

Security policies, reporting channels, and timely response to findings.

+

Security policies, dependency scanning, and timely response to advisories.

- The Baseline is only the first plugin: the repo already ships - reproducibility checks - and gittuf policy checks, - and any standard can be implemented, or composed in pure TOML, as a Darnit plugin. + The Baseline is the first of several plugins. The repository also ships + reproducibility checks, + gittuf policy checks, and + Community Specification License checks. To + write your own, start from the + plugin packaging guide.

+
+
Get Started
+

Up and Running in Two Commands

-
Install
-

From Source, in Four Lines

-
$ git clone https://github.com/kusari-oss/darnit
-$ cd darnit
-$ uv sync
-$ uv run darnit audit /path/to/repo
+

1 Install

+
$ uv tool install git+{{ $repo }}

- Requires Python 3.11+ and uv. Packaged channels — PyPI, - Homebrew, containers are on the way. + Requires Python 3.11+ and uv. To try it without + installing, run uvx --from git+{{ $repo }} darnit audit .. A PyPI release that + installs the darnit command is + coming next, and Homebrew and container images are + on the way.

-
MCP
-

Bring Your AI Assistant

-
# expose Darnit to any MCP client
-$ uv run darnit serve --framework openssf-baseline
+

2 Connect Your Agent

+
$ darnit install         # MCP config + skills
+# restart Claude Code, then:
+> /darnit-audit

- Point Claude or any MCP-capable assistant, at the server to audit, remediate, and attest - interactively. See the - getting started guide - for the full walkthrough. + The skill runs the audit, asks about anything it can’t safely guess, previews fixes, and + generates the attestation. It works with Claude Code, Claude Desktop, and Cursor; see + using skills.

+
+ Just want to see a report in your terminal? +
$ darnit audit /path/to/repo
+

+ The CLI is handy for a quick check or for iterating on controls. Remediation and attestation work + best through the agent workflow above. +

+
+
+
@@ -162,20 +331,25 @@

Bring Your AI Assistant

Community

Get Involved

- Issues, ideas, and pull requests are welcome — whether you're fixing a control, writing a plugin for + Issues, ideas, and pull requests are welcome, whether you’re fixing a control, writing a plugin for a new standard, or improving the docs. Development happens in the open on GitHub.

- Star on GitHub + Star on GitHub + Good first issues
Project
-

Built in the Open

+

Open Governance

- Darnit is an Apache-2.0 licensed open source project by Kusari and contributors. Read the - contributing guide, - the governance model, and - the security policy to get - oriented. + Darnit is an OpenSSF project, hosted as Darnit a Series of LF + Projects, LLC. It is licensed under Apache-2.0 and governed by an open + Technical Steering Committee. + It was started at Kusari and is built with contributors from + the wider community. To get oriented, read the + contributing guide, the + charter, the + governance model, and the + security policy.

@@ -183,27 +357,94 @@

Built in the Open

{{ end }} diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html index d8c8369..e26ce42 100644 --- a/layouts/partials/meta.html +++ b/layouts/partials/meta.html @@ -16,6 +16,8 @@ > + + {{- with .Site.Title }}{{ end }} diff --git a/layouts/partials/nav.html b/layouts/partials/nav.html index 8921f02..dc27cc5 100644 --- a/layouts/partials/nav.html +++ b/layouts/partials/nav.html @@ -1,6 +1,12 @@
  • About
  • +
  • + How It Works +
  • +
  • + Features +
  • Baseline
  • diff --git a/static/fonts/inter/InterVariable-latin.woff2 b/static/fonts/inter/InterVariable-latin.woff2 new file mode 100644 index 0000000..798d6d9 Binary files /dev/null and b/static/fonts/inter/InterVariable-latin.woff2 differ diff --git a/static/fonts/inter/inter-v20-latin-regular.woff2 b/static/fonts/inter/inter-v20-latin-regular.woff2 deleted file mode 100644 index f15b025..0000000 Binary files a/static/fonts/inter/inter-v20-latin-regular.woff2 and /dev/null differ