
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
herm-js-document
Advanced tools
Herm-js document system for offline sync, and auto conflict resolution.
This module allow you to create a "git like" sync system for documents in JS with automatic conflict resolution. With this module, you can edit multiple instances of the same document and merge them in a queue, the module will solve the conflict by itself.
You can either use it via NPM (for Node or bundled modules)
npm install herm-js-document
or via ES6 modules
<script type="module">
import HermDoc from '//unpkg.com/herm-js-document';
let doc = new HermDoc();
</script>
For plain text :
let doc = new HermDoc();
doc.push(0, "Hello");
let doc2 = doc.duplicate();
doc.push(6, " world");
doc2.push(6, " !");
console.log("doc1 : ", doc.display()); // doc1 : Hello world
console.log("doc2 : ", doc2.display()); // doc2 : Hello !
doc = doc.merge(doc2); // first merge
console.log("doc(first merge) : ", doc.display()); // doc(first merge) : Hello world !
doc2.push(7, "?");
console.log("doc2(updated) : ", doc2.display()); // doc2(updated) : Hello ?!
doc = doc.merge(doc2); // no duplicates, even with outdated documents
console.log("doc(merged with outdated) : ", doc.display()); // doc(merged with outdated) : Hello world ?!
doc.deleteRange(0, 6);
console.log("doc(delete) : ", doc.display()); // doc(merged with outdated) : world ?!
For JSON :
let docJson = new HermJsonDoc();
docJson.key = "123";
console.log(docJson.display()) // {key: "123"}
let docJson2 = docJson.duplicate();
docJson2.key = "5";
docJson2.key2 = "7";
docJson = docJson.merge(docJson2);
console.log(docJson.display()) // {key: "5", key2: "7"}
FAQs
Herm-js document system for offline sync, and auto conflict resolution.
The npm package herm-js-document receives a total of 8 weekly downloads. As such, herm-js-document popularity was classified as not popular.
We found that herm-js-document 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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.