Dear Elmers,
please let me announce the new package elmfire-extra.
It provides an API layer on top of the basic ElmFire API, that treats a Firebase collection as a key-value store and makes it available basically as an Elm dictionary with corresponding operations on it.
ElmFire.Dict
lets you mirror a Firebase collection as a Dict
.ElmFire.Op
provides several operations on the collection like insert
,
push
,
update
,
map
,
filter
.As a small demo I extended the well-known Stamps example to share its data model by syncing with a Firebase: Source - Demo.
Adapting my version of TodoMVC from pure elmfire to elmfire-extra made the Firebase specific code much easier and leaner (diff).
As always, any feedback is highly welcome!