Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@stet-css/scanner

Latest version: v0.3.0

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: miles0930
0 Stars
0 Forks
3 Versions
333 Downloads
TypeScript Repo language

Scan summary

@stet-css/scanner was last scanned on 27 Nov 2026 at version 0.3.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions; the latest was published on 27 Nov 2026.
  • Findings: No rules fired in version 0.3.0.
  • Downloads: 333 downloads.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.3.0 LATEST 27 Nov 2026 No rules fired
0.1.0 17 Nov 2026 No rules fired
0.0.0-stage 17 Nov 2026 Not shown

No rules fired in 0.3.0

Findings

Findings for v0.3.0. 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.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@stet-css/scanner

StetCSS source scanner for static rendering.

Installation

npm install @stet-css/scanner

@stet-css/scanner validates class candidates from supplied source text, inserts the rules of the valid ones, and caches what it has seen for build integrations. Source discovery, the class set, file watching, and CSS file output are owned by @stet-css/stylesheet and the CLI/framework/build integrations.

Usage

import { CSSScanner } from '@stet-css/scanner'

const scanner = new CSSScanner(options, cwd)

Options

Default options are exported from the root package and the side-effect-free ./options subpath:

import { scannerOptions, validateScannerOptions } from '@stet-css/scanner'
import defaultScannerOptions from '@stet-css/scanner/options'
Option Type Description
adapters SourceAdapter[] Custom source adapters, tried before the built-in ones.

Any other key throws. The removed options throw with their replacement:

Removed option Replacement
safelist @safelist in the CSS entry
blocklist @blocklist in the CSS entry
exclude @source not in the CSS entry
manifest a CSS entry that imports @stet-css/core
verbose the CLI's -v
path none; it had no effect

validateScannerOptions(options, owner?) runs this check for any options object and names owner (default CSSScanner) in its errors; SCANNER_OPTION_KEYS lists the allowed keys and REMOVED_SCANNER_OPTIONS maps each removed key to its replacement.

Every build plugin (@stet-css/vite, webpack, next, nuxt, astro, svelte) takes these same options, only adapters, and checks them with validatePluginOptions(options, owner) when the config loads. Besides the keys above, it rejects the removed plugin keys listed in REMOVED_PLUGIN_OPTIONS:

Removed plugin option Replacement
mode none; static CSS is the only output (to also run the runtime, start @stet-css/runtime in the app with CSSRuntime.create(...).observe())
injectRuntime start @stet-css/runtime in the app with CSSRuntime.create(...).observe()
avoidFOUC none; static CSS is in the page before it renders
scanner, scannerOptions pass adapters directly; removed keys inside them are named in the same error

CSS directives

CLI and framework/build integrations handle ordinary project source discovery. Use stylesheet directives when a stylesheet needs explicit source exceptions or candidate policy.

@source '../content/**/*.mdx';
@source '../packages/ui/**/*.{ts,tsx}';
@source not '../packages/ui/**/*.stories.tsx';

@safelist 'dialog-open bg:blue-60@dark';
@blocklist 'debug-*';

The stylesheet pipeline resolves the files a static build reads as (project source files + @source) - @source not. Project source files are the files under the project root with a source extension, outside dependency (node_modules, vendor), version control, build output and cache directories. Use @source for files outside that set, such as a component library in node_modules (@source '../node_modules/ui-kit';) or a package outside the project root, rather than restating the default app scan. A path without glob characters that names a directory covers everything under it.

Arguments are quoted strings. An unquoted argument such as @safelist fg:blue; fails the build with an error that names the quoted form (@safelist 'fg:blue';).

Bare source globs are resolved from cwd. Globs that start with ./ or ../ are resolved relative to the CSS file that declares the directive. @blocklist accepts exact strings and * / ? wildcard patterns.

Native CSS in stylesheet entries

A stylesheet that imports @stet-css/core keeps all of its native CSS, the same as any other CSS file. Rules such as .card { color: red; } are emitted whether or not markup uses card. Local relative .css imports are expanded and the @stet-css/core import is replaced by generated CSS.

Class candidate extraction

Use @stet-css/source when a tool only needs unvalidated class-like candidates from source content:

import { extractClassCandidates } from '@stet-css/source'

const result = extractClassCandidates(source)

OX Radar and Response Center

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.

Where it’s listed

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).

  • npm @stet-css/scanner

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Cry2Wolf: How to Tell a Real Bug from a Nothingburger
AI & VibeSec

Cry2Wolf: Not Every Branded Bug Deserves a Fire Drill

Frame 2085668439 (1)
Group 1261154229