Rasti is a minimalistic JavaScript MV framework for building user interfaces.
It gives structure to applications by providing models that emit events on properties changes, and views with declarative event handling to define UI components.
Rasti is inspired in Backbone. You can consider it as an ES6 version of Backbone with no underscore or jQuery dependencies.
It's ideal for building simple applications without the need of a module bundler, config or boilerplate.
The project is hosted on GitHub, and it's available for use under the MIT software license.
You can report bugs and discuss features on the GitHub issues page.
$ npm install --save rasti
import { View } from 'rasti';
class TodoView extends View {
}
<script src="https://unpkg.com/rasti/dist/rasti.min.js"></script>
class TodoView extends Rasti.View {
}
The rasti npm package includes precompiled production and development UMD builds in the dist folder. They can be used directly without a bundler and are thus compatible with many popular JavaScript module loaders and environments.
For example, you can drop a UMD build as a <script>
tag on the page, or tell Bower to install it. The UMD builds make Rasti available as a window.Rasti global variable.
The rasti GitHub repository includes, in the example folder, a vanila js and a webpack versions of a Todo app that can be used as starter project.
Complete API documentation.