Functional Reactive Programming library for JavaScript (original) (raw)
What is Bacon.js?
A small functional reactive programming lib for JavaScript. Turns your event spaghetti into clean and declarative feng shui bacon, by switching from imperative to functional. It's like replacing nested for-loops with functional programming concepts like map and filter. Stop working on individual events and work with event-streams instead. Transform your data with map and filter. Combine your data with merge andcombine. Then switch to the heavier weapons and wield flatMap and combineTemplate like a boss. It's the _
of Events. Too bad the symbol ~
is not allowed in Javascript.
Getting started
Check out the introduction (slideshow), the API reference and theGitHub page. Or take a look at one of the tutorials to learn how to use Bacon.js on theclient,server or ingame programming.
Examples
Simple counter
Behold! It counts up and down as you click the buttons
0
Movie Search
Type a word with at least three characters into the box.
Next, you might want to check out our Tutorials.