Looking for feedback about Jetset: RESTful API fetching and caching for React apps, backed by an immutable state tree

(Jed Verity) #1

Greetings, Reactors,

We’ve just open-sourced a library called Jetset that provides a simple abstraction for fetching, caching, and managing data from RESTful APIs. Since it’s brand new it would be extremely helpful to get some feedback, suggestions, concerns, etc. from seasoned React devs and newbies alike.

Please check it out and let us know what you think: https://github.com/DigitalGlobe/jetset

Thank you!

(Svobik7) #2

Hi glortho,

your package looks great and I sm thinking about use it in mx new React/REST app.

Let me ask you a few questions:

  1. Is your package still maintained?
  2. Is there some JSON to Model mapping feature in your package?
  3. Is there some JSON normalization used?

Thank you.

(Jed Verity) #3

Hi @svobik7. Thanks for looking into Jetset. Here are answers to your questions:

  1. It is still maintained, though new features were halted when we had to divert to other projects.

  2. There is no explicit mapping feature, but when you set up a resource like:

    <Api myResource="/my_resource" />

    Your model data might be props.myResource.get(id).data

  3. We don’t normalize but you can do your own normalization in onSuccess – see here https://github.com/DigitalGlobe/jetset/blob/master/docs/index.md#props