
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
firesync-node
Advanced tools
firesync is a library for seamless data synchronization between Firebase and your local data.
firesync is a library for seamless data synchronization between Firebase and your local data. When a FiresyncObject or FiresyncArray is created this object is observed for changes. At the same time the FirebaseRef is also observed. When a change in the one end happens, the data is immediately synchronized to the other end, eliminating the need to explicitly subscribe to events in order to update objects.
firesync runs equally well in browsers and in node. Since it uses Object.observe to watch for local changes a polyfill should be used in environments that do not support it.
bower install firesync
<script src="bower_components/firesync/dist/firesync.js"></script>
npm install firesync-node
var firesync = require('firesync-node');
The entry point of firesync.
FirebaseRef object
Kind: global class
FiresyncBaseAn array which keeps its values synchronized with the remote. One should use the FiresyncArray methods to manipulate the values.
Kind: static class of firesync
Extends: FiresyncBase
Access: protected
booleanIndicates whether the object has loaded its data from Firebase.
Kind: instance method of FiresyncArray
FirebaseRefReturns the ref set in the constructor
Kind: instance method of FiresyncArray
Detaches from the subscribed events to the FirebaseRef
Kind: instance method of FiresyncArray
Applies a value to the object.
Kind: instance method of FiresyncArray
| Param | Type |
|---|---|
| val | object |
Example
firebaseObject.set({value: 1});
Fired the local object changes, regardless whether it is a result of direct local change or remote change.
Kind: event emitted by FiresyncArray
Example
firesyncObject.on('changed', function(){});
Fired when the initial value of the object is loaded from the remote.
Kind: event emitted by FiresyncArray
Example
firesyncObject.on('loaded', function(){});
Fired when the local object's value is sucesfully set to the remote.
Kind: event emitted by FiresyncArray
| Param | Type | Description |
|---|---|---|
| err | Error | Synchronization error |
Example
firesyncObject.on('synced', function(){});
FiresyncBaseAn object which keeps its values synchronized with the remote.
Kind: static class of firesync
Extends: FiresyncBase
Access: protected
booleanIndicates whether the object has loaded its data from Firebase.
Kind: instance method of FiresyncObject
FirebaseRefReturns the ref set in the constructor
Kind: instance method of FiresyncObject
Detaches from the subscribed events to the FirebaseRef
Kind: instance method of FiresyncObject
Applies a value to the object.
Kind: instance method of FiresyncObject
| Param | Type |
|---|---|
| val | object |
Example
firebaseObject.set({value: 1});
Fired the local object changes, regardless whether it is a result of direct local change or remote change.
Kind: event emitted by FiresyncObject
Example
firesyncObject.on('changed', function(){});
Fired when the initial value of the object is loaded from the remote.
Kind: event emitted by FiresyncObject
Example
firesyncObject.on('loaded', function(){});
Fired when the local object's value is sucesfully set to the remote.
Kind: event emitted by FiresyncObject
| Param | Type | Description |
|---|---|---|
| err | Error | Synchronization error |
Example
firesyncObject.on('synced', function(){});
FirebaseRef object
Kind: global external
See: https://www.firebase.com/docs/web/api/firebase/child.html
The MIT License (MIT)
Copyright (c) 2015 Firesync
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
firesync is a library for seamless data synchronization between Firebase and your local data.
The npm package firesync-node receives a total of 8 weekly downloads. As such, firesync-node popularity was classified as not popular.
We found that firesync-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.