
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
hypercore-blob-server
Advanced tools
HTTP server for streaming hypercore blobs
npm install hypercore-blob-server
More flexible successor to serve-drive
const BlobServer = require('hypercore-blob-server')
// store should be a corestore
const server = new BlobServer(store, options)
await server.listen()
// To get a link to a blob to
const link = server.getLink(key, {
blob: blobId,
type: 'image/jpeg'
})
// supports drive lookups also
const link = server.getLink(key, {
filename: '/foo.js'
})
const server = new BlobServer(store, options)store - Corestore instance
options:
{
port // defaults to 49833,
host // defaults to '127.0.0.1',
token // server token
protocol // 'http' | 'https'
}
await server.listen()Listen to requests
const link = server.getLink(key, options)Generates the url used to fetch data
key - hypercore or hyperdrive key
options:
{
host // custom host
port // custom port
protocol: 'http' | 'https',
filename | blob
}
filename - hyperdrive filename
blob - blob ID in the form of { blockOffset, blockLength, byteOffset, byteLength}
When downloading blobs, you can set the Range header to download sections of data, implement pause/resume download functionality. Offsets are zero-indexed & inclusive
Range: bytes=<start>-<end>
Range: bytes=0-300
Range: bytes=2-
await server.suspend()Let the instance know you wanna suspend so it can make relevant changes.
await server.resume()Let the instance know you wanna resume from suspension. Will rebind the server etc.
Apache-2.0
FAQs
HTTP server for streaming hypercore blobs
We found that hypercore-blob-server demonstrated a healthy version release cadence and project activity because the last version was released less than 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.