
Research
Node.js Fixes AsyncLocalStorage Crash Bug That Could Take Down Production Servers
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.
github-stream
Advanced tools
Get a stream of updates to a GitHub repository.
npm install github-stream
To construct the stream use:
'use strict';
var Repository = require('github-stream');
var stream = new Repository(USER, REPO, options);
stream.on('data', function (update) {
console.dir(update);
// { type: 'Directory', action: 'Create', path: '/my-dir' }
// { type: 'Directory', action: 'Delete', path: '/my-old-dir' }
// { type: 'File', action: 'Create', path: '/my-new-file', body: Buffer}
// { type: 'File', action: 'Update', path: '/my-file', body: Buffer}
// { type: 'File', action: 'Delete', path: '/my-old-file'}
});
In order to keep track of updates, this module keeps the sha hashes of each file in memory. By default it polls github once every 10 seconds, but it correctly handles caching such that the requests only count when there are updates.
Note also that each file is transferred wholesale as a Buffer, not as a stream. This is much more convenient but can add significant memory footprint.
branch - The github branch to fetch, defaults to 'master'auth - Optional access token to make requests withupdateFrequency - time to wait between polling (passed to the ms module, so it can be a string like '10s'), defaults to'10s'retryFrequency - time to wait if the previus poll resulted in an error, defaults to the updateFrequencystate - the previous state of the repository, you can use this to optimise server restartsIn addition to the usual stream events, it also supports the following events:
'state-updated' - emitted whenever the internal cache state has been properly updated. You can use this to persist between restarts.'error' - this is emitted whenever something goes wrong, but the polling continues even if there is an error.stream.waitUntilReady() - returns a promise that is resolved once the repo has been fully syncedstream.dispose() - stop listening for updatesMIT
FAQs
Stream updates to the files in a GitHub repository.
The npm package github-stream receives a total of 1 weekly downloads. As such, github-stream popularity was classified as not popular.
We found that github-stream 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
Node.js patched a crash bug where AsyncLocalStorage could cause stack overflows to bypass error handlers and terminate production servers.

Research
/Security News
A malicious Chrome extension steals newly created MEXC API keys, exfiltrates them to Telegram, and enables full account takeover with trading and withdrawal rights.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.