
Security News
The Next Open Source Security Race: Triage at Machine Speed
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.
Core compiler for the rics CSS preprocessor. A fast, lightweight SCSS-like preprocessor that runs anywhere JavaScript runs.
npm install rics
import { compile } from "rics";
const css = compile(`
$primary: #f43f5e;
.button {
background: $primary;
&:hover {
background: darken($primary, 10%);
}
}
`);
Compiles rics/SCSS input to CSS.
const css = compile(input);
Returns full compilation result including errors, warnings, and stats.
const result = compileWithDetails(input);
console.log(result.css);
console.log(result.errors); // CompileError[]
console.log(result.warnings); // CompileWarning[]
console.log(result.stats); // { duration, rules, iterations, inputSize, outputSize }
Non-blocking compilation for large inputs.
const result = await compileAsync(largeStylesheet);
compile(input, {
timeout: 5000, // Max compilation time (ms)
maxIterations: 10000, // Max loop iterations
maxNestingDepth: 64, // Max selector nesting
minify: false, // Minify output
strictMode: false, // Throw on first error
});
& parent selector@function and @return@if, @else, @for, @each, @whiledarken, lighten, mix, saturate, and more#{}Auto-generated. Run
pnpm benchin the benchmarks folder to regenerate.
| Preprocessor | ops/sec | Comparison |
|---|---|---|
| rics | 897 | fastest |
| stylus | 334 | 2.7x slower |
| sass | 279 | 3.2x slower |
| less | 221 | 4.1x slower |
| Package | Size | Dependencies | Comparison |
|---|---|---|---|
| rics | 12.7 KB | 0 | smallest |
| less | 49.0 KB | 0 | 4x larger |
| stylus | 82.8 KB | 5 | 7x larger |
| sass | 686.0 KB | 1 | 54x larger |
MIT
Built by Better Lyrics
FAQs
Lightweight SCSS-like CSS preprocessor for browser/real-time use
The npm package rics receives a total of 113 weekly downloads. As such, rics popularity was classified as not popular.
We found that rics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Claude Opus 4.6 has uncovered more than 500 open source vulnerabilities, raising new considerations for disclosure, triage, and patching at scale.

Research
/Security News
Malicious dYdX client packages were published to npm and PyPI after a maintainer compromise, enabling wallet credential theft and remote code execution.

Security News
gem.coop is testing registry-level dependency cooldowns to limit exposure during the brief window when malicious gems are most likely to spread.