Scan your whole stack
Are you using crassus?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.3.3
crassus was last scanned on 23 Nov 2026 at version 0.3.3. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.3.3 LATEST | 23 Nov 2026 | No rules fired |
| 0.3.2 | 21 Nov 2026 | No rules fired |
| 0.3.1 | 25 Oct 2026 | No rules fired |
| 0.3.0 | 12 Oct 2026 | Not shown |
| 0.2.0 | 10 Oct 2026 | Not shown |
Findings for v0.3.3. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.3.3; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Zero-dependency CSS cascade regression testing.
Prove which declarations are dead, catch cascade flips between builds, and check what real browsers resolve.
The library runs anywhere JavaScript does: Bun, Node, Deno,
browsers and workers.
The CLI and crassus/browser need Bun.
CSS refactors are risky because the cascade is global and order-dependent: a regression throws nothing, a button is just the wrong color in one theme on hover. crassus treats the resolved cascade as the thing under test, at increasing cost and certainty:
| Rung | Check | Cost | Claim |
|---|---|---|---|
| 0 | deadDeclarations |
ms, no browser | proof: a later rule with the same selectors always wins |
| 1 | cascadeDiff |
~100 ms, no browser | heuristic: winner relationships that flipped between two builds (over-reports by design) |
| 2 | runUsage |
seconds, real browser | evidence: declarations that match but never win, bounded by your fixture pages |
| 3 | capture |
seconds, real browser | ground truth: computed styles per element, theme and forced state |
Every rung says how far its findings can be trusted, and cheaper rungs point at the ones that can confirm them.
bun i -d crassus
bunx crassus dead dist/styles.css # rung 0: declarations that can never win
bunx crassus diff --base main # rung 1: cascade flips since main
Or as a library:
import { cascadeDiff, deadDeclarations, parseRules } from "crassus";
// Rung 0: declarations that can never win.
for (const d of deadDeclarations(css, true)) {
console.log(
`${d.selector} { ${d.property}: ${d.value} } <- ${d.by.property}`,
);
}
// Rung 1: cascade flips between a base and a head build.
const diff = cascadeDiff(parseRules(baseCss, true), parseRules(headCss, true));
for (const f of diff.flips) {
console.log(
`${f.rule.selector} now ${f.after} '${f.prop}' vs ${f.other.selector}`,
);
}
The crassus bin runs on Bun.
crassus dead [file.css...] # declarations that can never win (proof)
crassus dead --fix [--dry-run] # delete them, in the CSS or in its sources
crassus diff [--base <ref>] # cascade flips since a git ref (heuristic)
crassus diff base.css head.css # or between two files
crassus diff --confirm # only the flips Chrome shows changing a value
crassus capture <dir> # computed styles of every fixture page (rung 3)
crassus capture --base main <dir> # the same at a git ref, in a worktree
crassus capture --css new.css <dir> # today's fixtures with another library stylesheet
crassus snapshot-diff <base> <head> # compare two captures (ground truth)
crassus compare --base main # today's fixtures, library CSS at main vs now, page by page
crassus bisect main..HEAD # which commits in a range changed what users see
crassus usage # declarations that match but never win (rung 2, evidence)
crassus compare --report out # the same, as change cards: report.json, index.html, report.md
crassus explain <id> # one card, for a person or an agent
crassus repro <id> # a standalone page that shows it
crassus verify <id> # whether it's fixed
crassus reduce <id> # the fewest declaration edits that make it
crassus approve <id...> # or record it as intended: CI stops failing on it
crassus compare --tokens cds- # also fail where a property stops following a design token
crassus tokens --tokens cds- # which tokens drive what; unused tokens; hard-coded colors
crassus doctor # check Chrome, the machine and the config before a long run
crassus coverage # which declarations decide a value the fixtures render
Browser runs open one tab (a renderer process) per --concurrency,
by default half the cores and at most 4,
in Playwright's chrome-headless-shell
when it's installed (bunx playwright install chromium-headless-shell)
and otherwise the Chrome Bun finds, which may be your own.
Raise it on a dedicated machine, lower it beside other work.
While the 1-minute load average is above the core count,
every tab but one waits for it to settle,
so a run beside other work slows down instead of piling on;
it says so once on stderr when it starts waiting,
and the summary line ends with the time spent on one tab.
loadAverage on the visit options replaces the reader
(os.loadavg()[0]).
crassus doctor checks the Chrome it would use (and starts it),
the tabs against the cores, the load,
free disk for the project and the temp directory, the fixture pages,
what sheetMarker finds and the tokens browser.tokens names,
and says how to fix each problem; it exits 1 on an error.
| Option | Description |
|---|---|
--base <ref> |
Git ref to diff against (default HEAD). The base is built with your own build in a temporary git worktree, and cached by commit under node_modules/.cache/crassus. With the config's inputs, it's built from just those paths and cached by their contents, so a commit that left them alone reuses the build. |
--entry <name> |
Only this stylesheet (repeatable). |
--format <format> |
human (default), json (stable schema), github (workflow annotations at the source line) or sarif (code scanning). compare and bisect take human, json, markdown (change cards for a PR) or sarif (one result per change card, at the changed rule's source line). --json is short for --format json. |
--config <file> |
Config file (default crassus.config.{ts,js,mjs}). |
--fix |
dead: delete the dead declarations. See Fixing. |
--confirm |
diff: render each cascade flip in Chrome and fail only on those whose value changes (needs the config's browser block). |
--dry-run |
With --fix: print the edits as a unified diff and write nothing. |
--no-cache |
Rebuild the base (and the head, which inputs caches). |
--verbose |
List every rule in review sections. |
--summary <file> |
dead, diff, snapshot-diff, compare, bisect: also append the human report to this file, as a fenced block, whatever --format prints. Meant for $GITHUB_STEP_SUMMARY: it's cut at a line, with a note, to stay within GitHub's 1 MiB. |
capture, compare, bisect and usage load the fixture pages from
the config's browser block, and take:
| Option | Description |
|---|---|
--base <ref> |
capture: build and capture the fixtures of a git ref, in a temporary worktree. compare: build the stylesheet at that ref (default HEAD). |
--css <file> |
capture: serve this CSS in place of the library stylesheet (the largest fixture .css file containing sheetMarker). |
--entry <name> |
compare: the configured stylesheet the fixtures load, when there are several. |
--group-by <how> |
bisect: segments of consecutive commits of one conventional-commit type (type, default) or one per commit (commit). |
--no-split |
bisect: report a segment with visible changes as it is, instead of halving it down to the commits that made them. |
--no-scope |
compare, bisect: load every page and read every element, instead of only what the changed rules can reach. |
--tokens <prefix> |
compare, bisect: trace design tokens (custom properties with this prefix; cds- for --cds-*, or browser.tokens in the config). tokens: the prefix to report on. |
--report <dir> |
compare, bisect: write change cards to this directory (with --explain and --visual). explain, repro, verify, approve: the report to read (default .crassus/report). |
--explain |
compare, bisect (Chrome): for each changed property, the declaration that won on each side, at its source through the stylesheet's source map. |
--visual |
compare, bisect (Chrome): screenshot every changed element someone could see on both sides, in its forced state, and count those whose pixels differ. Elements already proven invisible (clipped to nothing, display: none, off the page) aren't screenshotted. |
--only <text> |
Only fixtures whose name contains this. |
--themes <a,b> |
Themes to load each page in. |
--viewport <WxH> |
Viewport (repeatable), as 320x640. |
--no-states |
Skip forced :hover/:focus/:active states. |
--engine <name> |
chrome (default) or webkit. |
--matcher <name> |
usage: dom (default, any engine) or cdp (Chrome, exact per element). |
--concurrency <n> |
Tabs in parallel (default half the cores, at most 4). |
--url <base> |
Use a running server instead of building and serving the fixtures. |
--out <dir> |
usage: output directory (default .crassus/usage). |
Exit codes: 0 clean, 1 findings
(dead declarations, cascade flips; for snapshot-diff, any difference;
for compare and bisect, a visible change, or with
crassus.approved.json one it doesn't approve; for capture, compare
and bisect, a page that never matched readySelector, unless
browser.allowNotReady lists its fixture), 2 usage or build error.
Review sections, like order-tie flips from moved rules,
never fail a run, and usage always exits 0:
its findings are evidence, bounded by the fixtures.
Findings point at the authoring source (css/_button.scss:42)
when the stylesheet has a source map: a sibling .map,
a sourceMappingURL comment, or the map a compile hook returns.
Without one they point at the CSS.
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.