BuckleScript

BuckleScript

  • Docs
  • Try
  • API
  • Community
  • Blog
  • Languages iconEnglish
    • 日本語
    • Español
    • Français
    • 한국어
    • Português (Brasil)
    • Русский
    • 中文
    • 繁體中文
    • Help Translate
  • GitHub
Hello! This particular page hash has moved to . Please update the URLs to reflect it. Thanks!
BuckleScript
A faster, simpler and more robust take on JavaScript.
let result =
  [|1, 2, 3, 4|]
  -> Belt.Array.keep(x => x > 2)
  -> Belt.Array.mapWithIndex((x, i) => x + i)
  -> Belt.Array.reduce(0, (x, y) => x + y)
  -> Js.log;
let result =
  [|1; 2; 3; 4|]
  |. Belt.Array.keep (fun x -> x > 2)
  |. Belt.Array.mapWithIndex (fun x i -> x + i)
  |. Belt.Array.reduce 0 (fun x y -> x + y)
  |. Js.log
Get Started
Tutorial

Lean Developer Experience

Simple, small and blazing fast build workflow. No more configuration debugging!

The Whole JS Ecosystem

Readable output & comprehensive support for talking to existing JavaScript code.

Solid, Stable & Performant

Decades of type system research and compiler engineering. Tools you can rely on!

QuickStart

BuckleScript seamlessly integrates with Reason.
npm install -g bs-platform

# OCaml syntax
bsb -init my-new-project

# Reason syntax
bsb -init my-new-project -theme basic-reason

Examples

Hacker News

TodoMVC

Projects Using BuckleScript

See Full List