Skip to content
mike edited this page Apr 26, 2020 · 11 revisions

Sirius is a modern javascript framework for client side.

1. MVC pattern

Sirius has a power model support (if you worked with ActiveRecord from Rails you appreciate)

MVC pattern great for client side because we work with backend through ajax or websockets or another protocol (it does not matter) Dataflow:

some event => routing => client side controller => ajax|websockets request => backend => response => client side controller => view 

2. Routing

It's an universally routing, not only for changes in urls, but also for mouse or key event, and for custom javascript events of course, and scheduled jobs.

3. Power models

Models have computed-fields/validators/event subscription. You might create own validator that is simple.

4. Adapters for jQuery or PrototypeJs and Vanilla.js.

5. Logging

All events, message passing in framework logging, you might see what Sirius does underhood.

6. Templates

Select you favorite javascript template library and use.

7. Collection support

Collection parametrized by model type, subscribe on any changes in collection, indexes for quick search by field name.

8. Forgot about html code, write only javascript or coffee code. Forgot about horror like <div data-directive='bla-bla'></div>

9. Forgot about events in models, this is a bad style, Sirius has an obvious architecture

10. Forgot about different type of controllers, controller is just a function, (or object with functions) is not different controllers for Object, Array or something like that.

11. Write testable code with controller_wrapper