
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
SLEEP is a protocol envisioned by @maxogden for open data publication and synchronization. It stands for Syncasble Lightweight Event Emitting Persistence, but is mostly just a pun on REST.
The official SLEEP spec lives on dataprotocols.org. sleep-ref doesn't necessarily follow the spec as it is currently written -- consider this to be more experimental.
This project is meant to iterate on the spec through implementation and also to produce a module that is easily usable by other databases to expose their data with SLEEP.
var sleep = require('sleep-ref')
, http = require('http')
, net = require('net')
;
function getSequences (opts) {
var c = mydatabase.getChangesStream(opts) // emits {id:'uuid', seq:1}, {id:'uuid2', seq:3}
// if opts.include_data it emits e.g. c.data = mydatabase.get(c.id)
return c
}
var sl = sleep(getSequences)
http.createServer(function (req, resp) {
sl.httpHandler(req, resp)
})
net.createServer(function (socket) {
sl.netHandler(socket)
})
var sleep = require('sleep-ref')
, changes = sleep.client('http://localhost:8888/', { include_data: true })
;
changes.on('data', function (entry) { console.log(entry) })
changes.on('end', function () { console.log('up to date') })
sleep.client(url[, opts]) takes all valid SLEEP options. The url responds to the following protocols: http:, https:, tcp:, and tls:. You can pass tls options to opts via the tls property.
% make test
or if you don't have make:
% npm install
% npm test
FAQs
Reference implementation of the SLEEP protocol.
The npm package sleep-ref receives a total of 17 weekly downloads. As such, sleep-ref popularity was classified as not popular.
We found that sleep-ref demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.