Dak is a Lisp like language that transpiles to JavaScript.
If you want to jump in and see what it looks like, explore the Dak Tour.
JavaScript is ubiquitous. It's ecosystem is diverse and populated. Dak attempts to provide a path to leverage and participate in this ecosystem, as a modern lisp like language. It is not a Lisp. It's still JavaScript, but wearing a Lisp outfit. It's not Common Lisp or Scheme, but a bit more like Clojure or Fennel. It doesn't hide it's true nature, and aims to provide access to every feature JavaScript has.
Macros and the programmable aspects of Dak are what I consider to be it's selling points. It's much easier to achieve this in a Lisp like language. These are still very much a work-in-progress. Expect heavy iteration here.
Syntax in JavaScript is quite diverse. Much of it is already supported. What is missing is probably easy to provide.
Dak runs on Node 24.2 or newer. Preload
bootstrap.mjs to load .dak files directly, with
source maps for stack traces and test coverage:
node --import=./src/bootstrap.mjs --enable-source-maps main.dak
node --import=./src/bootstrap.mjs --enable-source-maps --test \
--experimental-test-coverage ./test/*.dak
For browsers, use the esbuild plugin exported
by transpiler.dak, as the
website does.
npm ci
npm test # run tests
npm run coverage # run tests with coverage for .dak sources
npm run bootstrap # regenerate src/bootstrap.mjs from src/transpiler.dak
npm run website # build the website into dist/
src/bootstrap.mjs is generated: edit src/transpiler.dak and run
npm run bootstrap (twice, when the change affects code generation).