On GitHub, f/delorean has picked up 748 stars, JavaScript. An Agnostic, Complete Flux Architecture Framework
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
Unidirectional data flow, it makes your app logic simpler than MVC,
Automatically listens to data changes and keeps your data updated,
Makes data more consistent across your whole application,
It's framework agnostic, completely. There's no view framework dependency.
Very small, just 5K gzipped.
Built-in React.js integration, easy to use with Flight.js and Ractive.js and probably all others.
Improve your UI/data consistency using rollbacks.
Tutorial
You can learn Flux and DeLorean.js in minutes. Read the tutorial
Using with Frameworks
Try React.js example on JSFiddle
Try Flight.js example on JSFiddle
Try Ractive.js example on JSFiddle
Install
You can install DeLorean with Bower:
bower install delorean
You can also install by NPM to use with Browserify(recommended)
npm install delorean
Usage
Hipster way:
var Flux = require('delorean').Flux;
// ...
Old-skool way:
<script src="//rawgit.com/f/delorean/master/dist/delorean.min.js"></script>
<script>
var Flux = DeLorean.Flux;
// ...
</script>
Overview
var Flux = DeLorean.Flux;
/*
* Stores are simple data buckets which manages data.
*/
var Store = Flux.createStore({
data: null,
setData: function (data) {
this.data = data;
this.emit('change');
},
actions: {
'incoming-data': 'setData'
}
});
var store = Store;
/*
* Dispatcher are simple action dispatchers for stores.
* Stores handle the related action.
*/
var Dispatcher = Flux.createDispatcher({
setData: function (data) {
this.dispatch('incoming-data', data);
},
getStores: function () {
return {increment: store};
}
});
/*
* Action Creators are simple controllers. They are simple functions.
* They talk to dispatchers. They are not required.
*/
var Actions = {
setData: function (data) {
Dispatcher.setData(data);
}
};
// The data cycle.
store.onChange(function () {
// End of data cycle.
document.getElementById('result').innerText = store.data;
});
document.getElementById('dataChanger').onclick = function () {
// Start data cycle:
Actions.setData(Math.random());
};
Run this example on JSFiddle
Docs
You can read the tutorial to get started
DeLorean.js with your favorite framework.
Basic Concepts
Store: A postbox
Dispatcher: The postman, drops mail in the postboxes
View (or Component): Box owner, checks the box for mail
Action Creator: The post office, manages postmen
Or you can visit documents page.
Running the TodoMVC example
There is a simple TodoMVC example working with DeLorean.js
cd examples/todomvc
grunt
open index.html
Authors
Fatih Kadir Akin @f
Burak Can @burakcan
Darcy Adams @darcyadams
Contributors
Tom Moor @tommoor
Tim Branyen @tbranyen
Quang Van @quangv
James H. Edwards @incrediblesound
Fehmi Can Sağlam @fehmicansaglam
Serge van den Oever @svdoever
Markus Ast @rkusa
Peter Rumenov Denev @peterdenev
Contribution
git clone [email protected]:deloreanjs/delorean.git
cd delorean
git checkout -b your-feature-branch
After you make some changes and add your test cases to the test/spec/*Spec.js
files. please run:
grunt
grunt test
When it's all OK, open a pull request.
License
MIT License
Name
The flux capacitor was the core component of Doctor Emmett Brown's DeLorean time machine
The most recent commit recorded on f/delorean was 6.2 years ago, based on the GitHub push timestamp. The repository has 38 forks — one of the better signals of community interest.
How many stars does f/delorean have?
f/delorean has 748 GitHub stars — refresh the page for the live number, or check github.com/f/delorean. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
What language is f/delorean written in?
f/delorean is written primarily in JavaScript. GitHub's language field is based on the largest share of bytes in the default branch.
What topics is f/delorean associated with?
GitHub's repository topics for f/delorean: "agnostic", "flux", "flux-architecture". TopGit's editorial category is open-source.
Where do I read more about f/delorean?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/f/delorean is the definitive source.
Read full README in the tab above.
Want a second opinion on delorean?
Ask an AI that can read this page — one click and you get its take on delorean.