Scala.js
scala-js.org
- Free plan
- Windows
- macOS
- Linux
- Web
- API
What Scala.js is
Scala.js is a Scala-to-JavaScript compiler for applications that run in browsers, Node.js and serverless environments. The project also reports stable WebAssembly support. Scala’s strong typing can catch mistakes such as mixing strings and numbers or calling misspelled methods, while editor support can flag type errors and typos and show inline information about methods, arguments, return types and documentation. The project describes incremental compilation with a 1–2 second turnaround; generated JavaScript for a full application starts at 45 kB gzipped. Scala.js can use JavaScript libraries and APIs through either statically or dynamically typed access. Listed library facades and integrations include React, Angular, Vue, Three.js and Chart.js. Supported build tools include sbt, scala-cli, Mill and Gradle with a Scala.js plugin. Tutorials list Scala development tools and Node.js as prerequisites and recommend VS Code with Metals. Scala.js is free and open source under the Apache License 2.0. Community help is available through Discord and Stack Overflow. The 1.22.0 release is not entirely backward source compatible with 1.21.x.
Who it suits
Scala.js suits Scala developers building browser, Node.js or serverless applications who need to work with JavaScript libraries and APIs. It may also suit teams using one of the listed Scala build tools and editor setups.
Good to know, and what to watch
- Strong typing can catch common code mistakes.
- Incremental compilation has a stated 1–2 second turnaround.
- Can interoperate with JavaScript libraries and APIs.
- Supports several listed build tools and library integrations.
- Free and open source under Apache License 2.0.
- The 1.22.0 release is not fully source-compatible with 1.21.x.
- Tutorials list Scala development tools and Node.js as prerequisites.
Plans
Every plan and priceScala.js
Open source
Getting started
- Open the Scala.js website
- Install Scala development tools and Node.js
- Choose sbt, scala-cli, Mill, or Gradle with the Scala.js plugin
- Use the command line or API access to compile Scala
- Use VS Code with the Metals extension for editor support
The verdict
Scala.js combines Scala’s type checking with access to JavaScript libraries and multiple runtime targets. Review the stated source-compatibility caveat when moving from 1.21.x to 1.22.0.
Questions people ask
Is Scala.js free?
Yes. The listed Scala.js plan costs nothing, and the project is open source under the Apache License 2.0.
What can Scala.js target?
It targets browser, Node.js, and serverless applications, with stable WebAssembly support also described.
Can it use JavaScript libraries?
Yes. Scala.js supports JavaScript libraries and APIs through statically or dynamically typed access.
Which build tools are supported?
Documentation names sbt, scala-cli, Mill, and Gradle with a Scala.js plugin.
Where can users get help?
The documentation directs users to the community, including Discord and Stack Overflow.
What the maker publishes
- Build tools
- The documentation names sbt, scala-cli, Mill, and Gradle with a Scala.js plugin as supported build tool options. source
- Compatibility note
- The 1.22.0 release announcement says the release is not entirely backward source compatible with 1.21.x. source
- Correctness
- The site says Scala.js uses strong typing to catch mistakes such as mixing strings and numbers or calling methods with typos. source
- Development setup
- The tutorials list Scala development tools and Node.js as prerequisites and recommend VS Code with the Metals extension. source
- Editor support
- The homepage says editor support catches typos and type errors and provides inline method, argument, return type, and documentation information. source
- JavaScript interoperability
- Scala.js can use JavaScript libraries and interact with JavaScript APIs, with either statically or dynamically typed access. source
- Library ecosystem
- The libraries page lists facades and integrations for libraries including React, Angular, Vue, Three.js, and Chart.js. source
- License
- The project repository states that Scala.js is distributed under the Apache License Version 2.0. source
- Output targets
- The June 2026 release announcement says WebAssembly support is stable; the homepage describes browser, Node.js, and serverless apps. source
- Performance
- The site describes incremental compilation with 1–2 second turnaround and generated JavaScript starting at 45 kB gzipped for a full application. source
- Purpose
- Scala.js is a Scala to JavaScript compiler for building applications that run in browsers, Node.js, and serverless environments. source
- Support
- The documentation directs users to the community for help, including Discord and Stack Overflow. source
Checked against the maker's pages on 4 Oct 2026.