Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
gun-mongo-key
Advanced tools
A key:value MongoDB adapter for GunJS.
gun-mongo-key
stores the each graph node's key:value (along with some metadata) in a separate document. This provides some major advantages in two areas: streaming large nodes (so that memory isn't overwhelmed) and making updates faster. The disadvantage is that creating new nodes (especially) nodes with lots of properties will be less efficient.
If the following are true, then gun-mongo-key
could be right for your application:
users
node with millions of children will be streamed to Gun rather than transferred in the entirety).Contrast this with gun-mongo
which has an advantages for creating nodes. This advantage dwindles at the point where a node becomes so large that it threatens to overwhelm memory.
yarn add gun-mongo-key
or npm install gun-mongo-key
.
const Gun = require('gun');
// Must be added after Gun but before instantiating Gun
require('gun-mongo-key');
// Instantiate Gun
const gun = new Gun({
file: false,
web: httpServer,
// The following are defaults. You can supply `true` to use all defaults
mongo: {
host: 'localhost',
port: '27017',
database: 'gun',
collection: 'gun_mongo_key',
query: ''
}
});
Tests run on a 2012 Macbook Pro, 2.5 GHz Intel Core i5, 16 GB RAM.
Starting with empty collection:
1.2 million existing documents in the collection:
Issues welcome on Github.
Community contributions welcome. PRs accepted after code review.
FAQs
A Mongo key:value adapter for Gunjs
The npm package gun-mongo-key receives a total of 2 weekly downloads. As such, gun-mongo-key popularity was classified as not popular.
We found that gun-mongo-key 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.