
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@kele23/level-sync
Advanced tools
!Repository under development!
Sync multiple LevelDB instances. It works on both browser and nodejs!!!
// create level-logged
const db = new LevelLogged(new Level()<string, any>('./db'));
// create a connection
const p2p = new Peer();
const connection = new P2PConnection(p2p);
p2p.on('connection', (dataConnection) => {
connection.incomingConnection(dataConnection);
});
// connect connection & db with the sync manager
const sync = new SyncManager(db, connection);
// various sync
sync.doPull(); // pull from other db to mine
sync.doPush(); // push from my db to other
sync.doSync(); // pull and then push
sync.doSync(interval); // make a sync every <interval> seconds
sync.isScheduled(); // true if there is a sync scheduled
sync.stopSync();
const p2p = new Peer(); // PeerJS
const connection = new P2PConnection(p2p);
p2p.on('connection', (dataConnection) => {
connection.incomingConnection(dataConnection);
});
Client
const connection = new ClientConnection(async (data) => {
return await axios.put(...
});
Server
const connection = new ServerConnection();
server.onReceive(async (data) => {
return await connection.incomingReceive(data);
});
When a Master - Master replication occurs it is always possible for conflicts to occur.
Conflicts can arise in various situations, the most common is that both DBs have modified the same key and therefore it is necessary to understand which of the two versions to keep. For the moment, conflicts are resolved by maintaining the "remote" version, in order to be as simple as possible.
As soon as possible we will also try to implement a custom management.
FAQs
_!Repository under development!_
We found that @kele23/level-sync 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.