Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
/ refrax Public

A framework for building api-based data-driven applications.

License

Notifications You must be signed in to change notification settings

netarc/refrax

Open more actions menu

Repository files navigation

Refrax is a JavaScript framework for building api-based data-driven applications. Inspired by collaboration with sarahhenkens and omab and concepts from similar libraries.

  • Unidirectional: User interaction in views propagate actions that affect stores, triggering view updates for those that reference data from affected stores.
  • Colocation: Resources and actions can live next to the views that rely on them, so you can easily reason about your app.
  • Partials: Data can be partially represented across various resources allowing views to efficiently fetch a small subset of data that can be re-used when a more detailed subset of data is needed.
  • Mutations: Refrax lets you mutate data on the client and propagate to a server using actions and mutable resources directly, and offers automatic data consistency, optimistic updates, and error handling.

Installation

Using npm:

$ npm install --save refrax

Documentation

Example

The repository comes with an implementation of TodoMVC. To try it out:

git clone https://github.com/netarc/refrax.git
cd refrax/examples/todo && npm install
npm start

Then, just point your browser at http://localhost:3000.

License

Refrax is BSD licensed.

About

A framework for building api-based data-driven applications.

Resources

License

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.