Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Elixir
  3. elixirscript

elixirscript

MITElixirv0.32.1

Converts Elixir code to JavaScript, enabling developers to write JavaScript using Elixir syntax and semantics.

Visit WebsiteGitHubGitHub
1.6k stars68 forks0 contributors

What is elixirscript?

ElixirScript is a compiler that converts Elixir code into JavaScript, enabling developers to write JavaScript applications using Elixir's syntax and functional programming features. It transforms the Elixir Abstract Syntax Tree (AST) into JavaScript AST, producing runnable JavaScript code. This allows Elixir developers to leverage their existing skills for frontend or full-stack JavaScript projects.

Target Audience

Elixir developers who want to use Elixir for client-side web development or integrate Elixir code into JavaScript environments, as well as teams seeking consistency across backend and frontend codebases.

Value Proposition

It provides a unique bridge between Elixir and JavaScript, offering the expressiveness and reliability of Elixir in JavaScript contexts without requiring developers to switch languages or paradigms entirely.

Overview

Converts Elixir to JavaScript

Use Cases

Best For

  • Writing frontend JavaScript applications using Elixir syntax
  • Integrating Elixir logic into JavaScript-based projects
  • Building web applications with ElixirScript React library
  • Maintaining code consistency across Elixir backend and JavaScript frontend
  • Exploring functional programming paradigms in client-side code
  • Prototyping or transitioning Elixir code to run in browser environments

Not Ideal For

  • Projects requiring extensive use of JavaScript-specific libraries or frameworks without established ElixirScript bindings
  • Teams with no prior Elixir experience looking for a straightforward frontend solution
  • Applications where minimal bundle size and optimal runtime performance are critical, as compiled code may have overhead
  • Environments needing tight integration with server-side rendering frameworks like Next.js, due to added complexity

Pros & Cons

Pros

Elixir Syntax Leverage

Allows developers to use Elixir's expressive, functional syntax for client-side code, reducing context switching between backend and frontend, as highlighted in the value proposition.

Seamless Mix Integration

Integrates directly into Elixir's build tool via Mix compilers, simplifying the compilation process, as shown in the README's configuration example where it's added to the compilers list.

Functional Paradigms in JS

Brings Elixir's concurrency and fault-tolerance models to JavaScript environments, enabling more robust frontend applications, per the project's philosophy.

Ecosystem Bridging

Facilitates code reuse and consistency by allowing Elixir code to run in JavaScript contexts, with libraries like ElixirScript React for web apps.

Cons

Partial Language Support

The README states it converts a 'subset' of Elixir, meaning not all language features or standard libraries may be fully supported or available in JavaScript.

Niche Ecosystem

With only a few examples like Todo and ElixirScript React, the community and available libraries are limited compared to native JavaScript's vast ecosystem.

Setup Complexity

Requires specific versions of Erlang, Elixir, and Node for development, adding dependency hurdles for teams not already invested in the Elixir stack.

Frequently Asked Questions

Quick Stats

Stars1,566
Forks68
Contributors0
Open Issues19
Last commit6 years ago
CreatedSince 2015

Tags

#javascript-interop#functional-programming#elixir#compiler#frontend-development#transpiler#ast-transformation#javascript#web-development#elixir-ecosystem

Built With

E
Erlang
E
Elixir
N
Node.js

Links & Resources

Website

Included in

Elixir13.1k
Auto-fetched 1 day ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub