Sass

The reference Dart implementation of Sass, the mature CSS preprocessor that compiles SCSS and indented syntax to standards-compliant CSS.

Tool
npm
v1.106.1
4,235 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
91 /100 Excellent
Development Activity 96
Maintenance 96
Community 72
Maturity 60
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
88 /100 Excellent
Architecture 92
Code Quality 90
Innovation 88
Learning Curve 80

Sass (Syntactically Awesome Style Sheets) is the most widely used CSS preprocessor, and this package is its canonical reference implementation written in Dart and distributed on npm as JavaScript. It compiles the SCSS and indented Sass syntaxes down to plain CSS, adding variables, nesting, mixins, functions, partials, and a module system on top of ordinary stylesheets.

Available as both a command-line sass executable and an embeddable compilation API (compile, compileString, and their async variants), it powers the styling pipeline of countless build tools, design systems, and frameworks. With more than 28 million weekly npm downloads it is effectively the industry standard for authoring maintainable, DRY stylesheets at scale.

What You Get

  • A sass command-line executable that compiles files and whole directories, with --watch mode and source-map generation
  • An embeddable JavaScript/Dart API (compile, compileString, compileAsync, compileStringAsync) for programmatic compilation inside build pipelines
  • Full support for the modern module system (@use, @forward) alongside the SCSS and indented Sass syntaxes
  • A rich built-in function library for color, math, string, list, and map manipulation
  • Custom importers and custom functions so host applications can hook their own resolution and logic into compilation

Common Use Cases

  • Authoring maintainable design systems with shared variables, mixins, and reusable partials
  • Integrating with bundlers such as Webpack (sass-loader), Vite, and Parcel to compile styles at build time
  • Compiling stylesheets on the command line during local development with live --watch rebuilds
  • Generating production CSS with compressed output and accurate source maps for debugging

Under The Hood

Architecture — Dart Sass is structured as a classic compiler pipeline under lib/src: source text is tokenized and parsed (lib/src/parse) into an abstract syntax tree (lib/src/ast), evaluated by a tree-walking visitor (lib/src/visitor/evaluate.dart) that resolves variables, mixins, modules, and the @extend machinery (lib/src/extend), and finally serialized to CSS (lib/src/visitor/serialize.dart). The public compile/compileString entry points in lib/sass.dart delegate to lib/src/compile.dart, importers are pluggable via lib/src/importer, and cross-cutting concerns like value types, functions, and logging live in dedicated lib/src/value, lib/src/functions, and lib/src/logger directories.

Tech Stack — The engine is written in Dart (SDK >=3.6.0) and compiled to JavaScript for npm distribution. Core dependencies include args and cli_repl for the CLI, source_maps/source_span for source maps and diagnostics, string_scanner and charcode for lexing, protobuf for the embedded-compiler protocol, and js/node_interop for the JS bridge. A distinctive detail is that synchronous files such as compile.dart are code-generated from their async counterparts via tool/grind/synchronize.dart, keeping the sync and async APIs in lockstep.

Code Quality — The codebase is mature and disciplined: roughly 59 Dart test files under test/ cover the Dart API, CLI, compressed output, deprecations, doc comments, and the embedded protocol, and generated files carry checksums to guard against manual edits drifting from their sources. Strong static analysis (analysis_options.yaml, lints), consistent MIT license headers, and clear module boundaries reflect a project maintained to reference-implementation standards.

API Design — The public surface is deliberately small and ergonomic: four compile functions (compile, compileString, compileAsync, compileStringAsync) cover file and string input in sync and async forms, returning a structured CompileResult. Custom importers and custom functions offer well-typed extension points, and the CLI mirrors the library so the same engine is reachable from a terminal or a build script with minimal boilerplate.

Used by 108 apps in this directory

Vue
41%
AGPL 3.0

Operational

Analytics · Automation · Monitoring

474

Open-source event tracker with real-time push notifications and action buttons for tech founders.

View details
54
Repo Health
68
Technical
68
Dependency
Built with
Vue 41%
JavaScript 39%
MDX 13%
Updated 4 weeks ago
PHP
62%
Other

OpnForm

Forms Surveys · Marketing

3,865

Build unlimited, embeddable forms with no code — powered by AI, logic rules, and real-time analytics

View details
91
Repo Health
75
Technical
65
Dependency
Built with
PHP 62%
Vue 28%
Updated 1 weeks ago
Go
71%
Apache 2.0

OSV.dev

Security

3,001

Google's open-source vulnerability database that maps CVEs to exact package versions across 50+ ecosystems with a public API and data dumps.

View details
87
Repo Health
82
Technical
66
Dependency
Built with
Go 71%
Python 19%
Updated 1 weeks ago
JavaScript
64%
AGPL 3.0

overleaf

Collaboration · Productivity

18,266

Open-source, real-time collaborative LaTeX editor with sandboxed compilation and full TeXLive support for self-hosted academic and research teams.

View details
84
Repo Health
80
Technical
59
Dependency
Built with
JavaScript 64%
TypeScript 30%
Updated 1 months ago
TypeScript
96%
MIT

Payload CMS

Blogging · CMS · Developer Tools

45,458

The open-source, Next.js-native headless CMS that lives inside your /app folder and gives you a full TypeScript backend instantly.

View details
92
Repo Health
88
Technical
65
Dependency
Built with
TypeScript 96%
Updated 6 days ago
Clojure
73%
MPL 2.0

Penpot

Design Tools

61,563

Open-source design platform with GPU-accelerated canvas, native design tokens, and MCP-powered AI workflows for teams that ship fast.

View details
91
Repo Health
83
Technical
72
Dependency
Built with
Clojure 73%
Updated 1 weeks ago
TypeScript
50%
Other

Phase Console

Devops · Security

931

End-to-end encrypted secrets management for engineering teams — from local dev to Kubernetes production.

View details
85
Repo Health
73
Technical
63
Dependency
Built with
TypeScript 50%
Python 48%
Updated 1 weeks ago
PHP
70%
AGPL 3.0

Pixelfed

Social Media

7,129

A decentralized, self-hosted photo sharing platform built on ActivityPub for the open Fediverse.

View details
94
Repo Health
68
Technical
66
Dependency
Built with
PHP 70%
Vue 21%
Updated 1 weeks ago
TypeScript
90%
MIT

Plasmic

CMS · Design Tools · Low Code Platforms

7,125

The open-source visual builder that lets teams design React apps and websites with drag-and-drop while integrating seamlessly with your codebase.

View details
81
Repo Health
78
Technical
64
Dependency
Built with
TypeScript 90%
Updated 1 weeks ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers