Skip to content
SPECIFICTION
Get listed

ClojureScript vs JSweet

ClojureScript

clojurescript.org

JSweet

jsweet.org

Side by side

FigureClojureScriptJSweet
Price fromFreeFree
Free planYesYes
Free trial——
Open source—Yes
WebYesYes
WindowsYesYes
macOSYesYes
LinuxYesYes
iOS—Yes
Android—Yes
API—Yes
Self-hostedYesYes
Plans published11
Spec score · Code Transpilers8.4 (#4)8.7 (#1)
DebuggingThe quick start says source mapped stack traces point to ClojureScript source locations instead of JavaScript locations.A debug mode is provided for debugging Java code in a browser.
Language featuresIt brings Clojure’s rich data structures, functional programming, macros, reader, destructuring, and polymorphism constructs to JavaScript environments.Its listed features include Java-to-TypeScript syntax mapping, Java constructs, async/await, and ECMAScript targets from ES3 to ES6.
LicenseUse and distribution are covered by the Eclipse Public License 1.0.The repository links to a license file but the opened page does not state the license name in its displayed README text.
What it doesClojureScript is a compiler for Clojure that emits JavaScript.JSweet transpiles Java source into TypeScript and JavaScript for browser, mobile-webview and Node.js applications.

Plans

ClojureScript

  • ClojureScriptFree

ClojureScript pricing →

JSweet

  • JSweetFree

JSweet pricing →

In their own words

ClojureScript

ClojureScript is a compiler that turns Clojure code into JavaScript for client and embedded application development wherever JavaScript reaches. It brings Clojure data structures and constructs—including functional programming, macros, destructuring, and polymorphism—into JavaScript environments. Its output is compatible with Google Closure Compiler advanced compilation, which can minify output and eliminate dead code. REPL support enables interactive development and testing in a browser or Node.js; the quick start uses browser output by default and selects Node.js output with a target setting. ClojureScript supports both ClojureScript and JavaScript dependencies, with React demonstrated in the quick start. Listed build tools include shadow-cljs, Figwheel, Leiningen, and lein-cljsbuild. Editor resources cover Cursive, Emacs, VS Code, Light Table, Sublime Text, Vim, and Atom. Documentation includes compiler and REPL options, dependencies, advanced compilation, source maps, and JavaScript module support marked Alpha. The project is open source under the Eclipse Public License 1.0 and lists Linux, macOS, Windows, web, and self-hosted environments.

Visit clojurescript.org

JSweet

JSweet converts Java programs into TypeScript and JavaScript for browsers, mobile Web views, or Node.js. It uses Oracle's Java compiler alongside Microsoft's TypeScript compiler to generate type-checked JavaScript. The project describes the output as regular JavaScript that can work directly with JavaScript programs and libraries. Listed language features include Java-to-TypeScript syntax mapping, Java constructs, async/await, and ECMAScript targets from ES3 to ES6. JSweet lists support for more than 1,000 JavaScript libraries, frameworks, and plugins, packaged as Maven artifacts called candies. It provides Eclipse, Maven, and Gradle plugins, and names Angular, Cordova, Node.js, and Three.js among example integrations. Generated programs can use CommonJS, AMD, or UMD modules and run in browsers or Node.js. A debug mode supports debugging Java code in a browser. Setup instructions call for Git, Node.js, and Maven, then use Maven to generate JavaScript from a quickstart project. JSweet is open source and free, and is presented for Java developers building web and mobile HTML5 applications with JavaScript libraries and frameworks.

Visit jsweet.org