Giter VIP home page Giter VIP logo

sheshin's Introduction

Sheshin

she: Knowing
shin: As it is

An in-memory hierarchical key-value store (think objects) capable of providing change notifications at arbitrary keypaths.

Sheshin exposes one class, Store.

The read API is based on RX Observables, and is the only public API of Store. This API is wholly comprised of a single function, observe(), which takes a dot-delimited keypath.

The write API is only provided via callback to the code calling Store's constructor. The intent is to enforce unidirectional data flow (any mutation to a Store's state is mediated by the code instantiating the Store), similar to React's design philosophy. This API is wholly composed of a single function, set(), which takes a dot-delimited keypath and a value.

This is at the design idea stage, see the tests for API usage.

Internally, Store very thinly wraps an instance of Backing, which does the heavy lifting.

https://books.google.com/books?id=9QHEAwAAQBAJ&lpg=PT352&ots=DPmNPsrnWA&dq=trenpa&pg=PT352#v=onepage&q=trenpa&f=false

Run the tests with npm test.

sheshin's People

Contributors

transplier avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.