Skip to content

Welcome to Super.js

Welcome to Super.js

Today we're introducing Super.js — a new programming language that compiles to plain JavaScript.

Why Super.js?

JavaScript is the most widely used programming language in the world. TypeScript improved it significantly with static types. But some fundamental issues remain:

  • null and undefined cause runtime crashes
  • any escapes the type system entirely
  • No sum types mean verbose null-checking

Super.js addresses all of these while compiling to the same JavaScript you know.

What's Different

const name: string? = null

type Result<T, E> = Ok(T) | Err(E)

match result {
  Ok(value) => console.log(value),
  Err(error) => console.error(error),
}

Try It Now

npm install -g superjs

We're just getting started. Follow the project on GitHub for updates.