sau

sauronjs

frontend library for advanced interactivity based on observables

Showing:

Popularity

Downloads/wk

323

Maintenance

No Maintenance Data Available

Package

Dependencies

1

Size (min+gzip)

34.2KB

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Readme

SauronJS

SauronJS is a library that was created to help developers build interactive components while leveraging server-side technologies. The goal was to allow for standard server-side development to be used primarily, and add interactivity where required.

Coupled with a library like Turbolinks or Turbograft, it can make a standard web app feel like a Single Page Application (SPA).

Its name comes from the use of the observer pattern followed in RxJS, the main dependency for the library. It allows developers to write better structured and more maintainable JavaScript.

Principles

  • Treat the DOM as a model
  • Minimize AJAX requests to backend
  • Use SauronJS to build descriptive data flows and handle submission intelligently

Potential Upcoming Improvements

  • Demo application & Documentation
  • Renaming data-fs -> data-sj
  • Clearly defined method of passing data from the server to SauronJS
  • Ruby Gem for easy installation
  • Plugins for Turbolinks & Turbograft
  • ECMAScript 6 w/ Babel for ESNext
  • More base elements/components/events
  • Set folder structure and import/exports
  • Better instantiation of SauronJS
  • More Lifecycle hooks
  • Changelog

Example application

To view the extended documentation and see the example app:

  1. Install gulp:
    npm install -g gulp
    
  2. Launch the demo server
    gulp demo
    
  3. Open your browser to http://localhost:3001/
  4. Be amazed

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100