Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
kappa-core
Advanced tools
a small core for append-only log based programs
a lot like flumedb, but using multifeed as an append-only log base, which is actually a set of append-only logs
pronounced "capricorn"
Experimental
Mostly not even built! Right now this is more of a module sketch than anything usable.
var kappa = require('kappa-core')
var hypercore = require('hypercore')
var view = require('kappa-core-view')
var core = kappa(hypercore, './log', { valueEncoding: 'json' })
var sum = 0
// the api of flumeview-reduce will be mounted at db.sum...
core
.use('sum', function (msgs, next) {
msgs.forEach(function (msg) {
if (typeof msg.value === 'number') sum += msg.value
})
next()
})
var feed = core.feed('default')
feed.append(1, function (err) {
core.sum.get(function (err, value) {
console.log(value) // 1
})
})
var kappa = require('kappa-core')
Create a new kappa-core database.
hypercore
is the value of require('hypercore')
of the version of hypercore
you'd like to use. It's passed in in this fashion so that kappa-core doesn't
bind itself to a specific (and potentially broken or out of date) version of
hypercore that you cannot change.storage
is an instance of
random-access-storage. If a string
is given,
random-access-file
is used with the string as the filename.opts
include:
valueEncoding
: a string describing how the data will be encoded.With npm installed, run
$ npm install kappa-core
flumedb presents an ideal small core API for an append-only log: append new data, and build (versioned) views over it. kappa-core copies this gleefully, but with two major differences:
hypercore provides some very useful superpowers:
Building views in arbitrary sequence is more challenging than when order is known to be topographic, but confers some benefits:
kappa-core is built atop ideas from a huge body of others' brilliant work:
ISC
[git-shallow]: https://www.git-scm.com/docs/gitconsole.log(one#gitconsole.log(one---depthltdepthgt)
FAQs
Minimal peer-to-peer database, based on kappa architecture.
The npm package kappa-core receives a total of 191 weekly downloads. As such, kappa-core popularity was classified as not popular.
We found that kappa-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.