# sweet-js/sweet-core

Sweeten your JavaScript.

Repository: https://github.com/sweet-js/sweet-core
Canonical: https://ross.abutalabs.com/products/sweet-core
Homepage: https://www.sweetjs.org
Language: JavaScript
License: BSD-2-Clause
License Family: permissive
Topics: javascript, macros, parser
Archived: true
Last push: 2017-10-26T12:24:08+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5145, "days_push": 3233, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4559, forks 210 (observed 2026-08-28T04:08:53.445377+00:00)

## What it is
Sweet.js is a JavaScript macro system that brings hygienic macros (like those in Scheme and Rust) to JavaScript, letting developers define new syntax and extend the language. It ships as a compiler library and CLI (`sjs`) that transforms sweetened code into plain JavaScript.

## Use cases
- define custom syntax for javascript
- create hygienic macros in js
- build a custom dsl on top of javascript
- extend javascript language syntax
- compile sweet.js macros to javascript

## When to choose
- you want to add new syntax or language features to JavaScript
- you're building a DSL that compiles to JavaScript
- you're experimenting with language design and macro systems

## When to avoid
- you need a production-stable tool with a frozen API
- you need an actively maintained project (last release was 2017)
- you just need standard JavaScript tooling without syntax extension

## Facets
- artifact type: library
- maturity: experimental
- function: compiler, parser, programming-language, developer-tools
- domain: programming-languages, compilers, developer-tools, web-development
- platform: cli, cross-platform
- tags: macros, hygienic-macros, javascript, syntax-extension, transpiler, nodejs

## Member repositories
- sweet-js/sweet-core (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:53.445377+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:20:01.101089+00:00, confidence not recorded.
  - readme: https://github.com/sweet-js/sweet-core (fetched 2026-08-28T04:08:53.445377+00:00, sha eb5e78b5c0b0)
  - homepage: https://www.sweetjs.org (fetched 2026-08-29T09:05:43.443299+00:00, sha aebc558cf6a5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
