| CARVIEW |
Select Language
HTTP/2 301
content-type: text/plain; charset=utf-8
date: Fri, 16 Jan 2026 09:16:45 GMT
location: https://www.sweetjs.org/
server: Netlify
strict-transport-security: max-age=31536000
x-nf-request-id: 01KF31FH2GK97CCZSZACYE72WN
content-length: 39
HTTP/2 200
accept-ranges: bytes
age: 39569
cache-control: public,max-age=0,must-revalidate
cache-status: "Netlify Edge"; hit
content-encoding: gzip
content-type: text/html; charset=UTF-8
date: Fri, 16 Jan 2026 09:16:45 GMT
etag: "9e8a2976417ceda75cd30eb81450ab70-ssl-df"
server: Netlify
strict-transport-security: max-age=31536000
vary: Accept-Encoding
x-nf-request-id: 01KF31FHSH4X7QP71DB0CTPECG
content-length: 1842
Sweet.js - Hygienic Macros for JavaScript
Build your dream language
Sweet brings the hygienic macros of languages like Scheme and Rust to JavaScript. Macros allow you to sweeten the syntax of JavaScript and craft the language you always wanted.
Getting started
Install the command line app:
$ npm install -g @sweet-js/cli
Write your sweet code:
syntax hi = function (ctx) {
return #`console.log('hello, world!')`;
}
hi
And compile:
$ sjs my_sweet_code.js
console.log('hello, world!')
Next steps
- Learning: read the tutorial or check out the reference.
- Questions: feel free to open an issue on GitHub with any questions you might have. Folks in the gitter room are also very nice.
- Contributing: from documentation, website upkeep, bug fixes, and features we’d love your help! See the contributing guide for pointers on how to get involved.