sauronjs
TypeScript icon, indicating that this package has built-in type declarations

0.1.5 • Public • Published

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
  1. Launch the demo server
gulp demo
  1. Open your browser to http://localhost:3001/
  2. Be amazed

Package Sidebar

Install

npm i sauronjs

Weekly Downloads

1

Version

0.1.5

License

MIT

Unpacked Size

33 kB

Total Files

33

Last publish

Collaborators

  • fullscript_dev
  • aidanfeuerherm
  • sean.graves
  • josejr.delapaz
  • ryan.o