ClojureScript
clojurescript.org
- Free plan
- Windows
- macOS
- Linux
- Web
- Self-hosted
What ClojureScript is
ClojureScript is a compiler that turns Clojure code into JavaScript, for client and embedded application development in JavaScript environments. It carries Clojure’s data structures and programming constructs into those environments, including functional programming, macros, destructuring, and polymorphism. Its JavaScript output is compatible with Google Closure Compiler advanced compilation, which can minify output and remove dead code. Developers can use REPLs for interactive work and testing in a browser or Node.js. The quick start produces browser output by default, with Node.js output available by selecting that target. ClojureScript supports both ClojureScript and JavaScript dependencies, and its quick start demonstrates React. 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 covers compiler and REPL options, dependencies, advanced compilation, and source maps. The software is open source under the Eclipse Public License 1.0 and listed for Linux, macOS, Windows, web, and self-hosted environments.
Who it suits
It suits developers who want to write Clojure for browser or Node.js environments, including client and embedded application work. Its REPLs and listed build and editor resources support interactive development.
Good to know, and what to watch
- Compiles Clojure to JavaScript.
- Supports interactive REPL work in browsers or Node.js.
- Output works with Closure Compiler advanced compilation.
- Supports JavaScript and ClojureScript dependencies.
- Open source under the Eclipse Public License 1.0.
- The main macOS/Linux tutorial specifies Clojure and a browser.
- The Windows quick start specifies Java 21 and a standalone JAR.
- JavaScript module support is marked Alpha.
Plans
Every plan and priceClojureScript
Open source
Getting started
- Visit https://clojurescript.org/
- On macOS or Linux, prepare a browser and Clojure
- On Windows, prepare Java 21 and the standalone ClojureScript JAR
- Choose browser output or select the Node.js target
- Use the compiler through its CLI or API
- Add ClojureScript or JavaScript dependencies as needed
The Club's review
ClojureScript is a source-to-source compiler that brings Clojure to browser and Node.js applications by emitting JavaScript. It suits developers and teams who value Clojure’s functional language model and interactive workflow more than a JavaScript-native toolchain. Choose it when that language fit is central; look elsewhere when minimizing platform-specific setup is the priority.
Overview
Created in 2011, ClojureScript translates Clojure into JavaScript for client and embedded applications wherever JavaScript runs. Browser output is the default in the quick start, while a Node.js target produces Node output. The Eclipse Public License 1.0 covers use and distribution, so organizations can adopt and ship it without a subscription.
REPL support allows interactive development and testing in a browser or in Node.js. Source-mapped stack traces identify ClojureScript locations instead of only JavaScript locations, a practical advantage when diagnosing failures in generated code. The trade-off is a development environment that requires familiarity with Clojure and the relevant host platform.
Key features
Clojure constructs for JavaScript targets
Rich data structures, functional programming, macros, the reader, destructuring, and polymorphism constructs are available in JavaScript environments. This is a substantial reason to choose ClojureScript for teams standardizing on Clojure concepts across client or embedded work. It is a weaker fit for developers who want to stay entirely within JavaScript syntax and conventions.
Compilation and optimization
The emitted JavaScript is compatible with Google Closure Compiler advanced compilation. That pipeline can minify output and remove dead code, helping production bundles retain only what the application uses. The benefit depends on adopting the associated compilation workflow rather than treating ClojureScript as a drop-in JavaScript transpiler.
Dependencies and tooling
ClojureScript projects can include both ClojureScript and JavaScript dependencies; the quick start demonstrates React integration. The maker’s build-tool list includes shadow-cljs, Figwheel, Leiningen, and lein-cljsbuild, giving teams several established routes instead of one mandatory build system. Editor resources cover Cursive, Emacs, VS Code, Light Table, Sublime Text, Vim, and Atom. Documentation spans API and reference material, compiler and REPL options, dependency handling, advanced compilation, source maps, and JavaScript module support marked Alpha.
Prerequisites and runtime support
The main macOS and Linux tutorial calls for a browser and Clojure. The Windows path calls for Java 21 and the standalone ClojureScript JAR. The quick start describes support for stable Node.js versions at or above 0.12.X at the time of that page, so teams should verify current runtime guidance before standardizing on Node.
Pricing
| Plan | Price | What it includes |
|---|---|---|
| ClojureScript | Free | Open source software under the Eclipse Public License 1.0 |
There are no paid tiers, seat charges, quotas, or renewal terms. The free plan is the complete open-source project, including CLI and API access, so it fits individuals, commercial teams, and organizations that can manage their own development and build environment. The saving comes with the responsibility of installing and operating the toolchain rather than receiving a hosted service.
Platforms
ClojureScript supports Linux, macOS, Windows, self-hosted environments, and the web. Its source-to-source conversion mode targets JavaScript, with browser and Node.js runtime paths. Self-hosting is appropriate for teams that want control over their compiler and build infrastructure; web and Node targets cover the principal application destinations described by the project.
Who it's for
ClojureScript is for Clojure developers moving into browser or Node.js work, teams building client or embedded applications that run wherever JavaScript reaches, and organizations that want an open-source compiler with REPL-driven development. It is less suitable for teams seeking a conventional JavaScript-only workflow, or for projects unwilling to accommodate Clojure, Java, and target-specific setup requirements.
Pros and cons
- Pro: Clojure’s data structures, functional features, macros, destructuring, and polymorphism carry into JavaScript environments, giving Clojure-oriented teams a consistent programming model.
- Pro: Browser and Node.js REPLs support interactive development and testing, while source maps connect stack traces to maintained ClojureScript code.
- Pro: Advanced-compilation compatibility enables minification and dead-code elimination, and the project has broad build-tool and editor options.
- Con: The workflow introduces Clojure, Java, and platform-specific prerequisites, which can be heavier than a JavaScript-native setup.
- Con: JavaScript module support is marked Alpha, so projects depending on that path should assess its suitability before committing.
- Con: Node.js guidance in the quick start references an old minimum version threshold, making runtime compatibility checking important.
Alternatives
For a broader selection of transpilers, browse Code Transpilers.
- SourceMeld is a freemium, self-hosted or API option with a free Community Edition Docker deployment, agentic search, MCP, and repository integrations; choose it for that service-oriented workflow rather than a Clojure compiler.
- JSweet is a free, open-source Java-to-JavaScript transpiler with Android, iOS, web, desktop, and API coverage; pick it when Java is the source language.
- Google Web Toolkit is a free Apache 2.0 open-source option; choose it when its Java-to-web approach and extension support fit better.
- Kotlin/JS targets JavaScript through the Kotlin Multiplatform Gradle plugin; select it for Kotlin-based projects.
- Scala.js compiles Scala to JavaScript and is managed through a Scala build tool; choose it for Scala teams.
- SWC is a free, Rust-based developer toolchain for broad platform coverage; pick it when a JavaScript ecosystem toolchain is preferable.
- Transcrypt is a free Apache 2.0 open-source option for translating Python-style code to web targets.
- Cython is a free Apache 2.0 project for Linux, macOS, and Windows; choose it for Python-oriented compilation needs.
Verdict
Choose ClojureScript if you want Clojure’s language features, REPL workflow, and source-map-aware debugging in browser or Node.js applications, with no licensing fee and flexible tooling. Look elsewhere if your priority is the shortest path from a JavaScript-native codebase to production, or if the required Clojure and Java setup outweighs the benefits of that language model.
The verdict
ClojureScript brings Clojure language features and interactive development to JavaScript targets. It is a free, open-source compiler with documentation and a broad list of build-tool and editor resources.
Questions people ask
Is ClojureScript free?
Yes. The ClojureScript plan costs nothing, and the software is open source.
What license does it use?
Use and distribution are covered by the Eclipse Public License 1.0.
Which platforms are listed?
Linux, macOS, Windows, web, and self-hosted environments are listed.
Can it target Node.js?
Yes. The quick start uses browser output by default and produces Node.js output when the Node.js target is selected.
Can projects use JavaScript libraries?
Yes. ClojureScript supports ClojureScript and JavaScript dependencies, and the quick start demonstrates React.
What the maker publishes
- Build ecosystem
- The maker’s tools page lists shadow-cljs, Figwheel, Leiningen, and lein-cljsbuild as build tools. source
- Debugging
- The quick start says source mapped stack traces point to ClojureScript source locations instead of JavaScript locations. source
- Development prerequisites
- The quick start specifies a browser and Clojure for its main macOS/Linux tutorial, and Java 21 plus the standalone ClojureScript JAR on Windows. source
- Documentation
- The maker provides API and reference documentation, including compiler options, REPL options, dependency handling, advanced compilation, source maps, and JavaScript module support marked Alpha. source
- Editor ecosystem
- The tools page lists editor support resources for Cursive, Emacs, VS Code, Light Table, Sublime Text, Vim, and Atom. source
- Founded
- 2011 source
- Intended use
- The rationale describes ClojureScript as a way to use Clojure for client and embedded application development wherever JavaScript reaches. source
- Interactive development
- The compiler supports REPLs for interactive development and testing in a browser or Node.js. source
- JavaScript dependencies
- ClojureScript supports including ClojureScript and JavaScript dependencies, and its quick start demonstrates using React. source
- Language features
- It brings Clojure’s rich data structures, functional programming, macros, reader, destructuring, and polymorphism constructs to JavaScript environments. source
- License
- Use and distribution are covered by the Eclipse Public License 1.0. source
- Node.js version
- The quick start says that only stable Node.js versions at or above 0.12.X are supported at the time described on that page. source
- Optimization
- Its JavaScript output is compatible with Google Closure Compiler advanced compilation, which can minify output and eliminate dead code. source
- Runtime targets
- The quick start describes browser output by default and Node.js output when the node target is selected. source
- What it does
- ClojureScript is a compiler for Clojure that emits JavaScript. source
Checked against the maker's pages on 3 Oct 2026.