Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ndn/segmented-object

Package Overview
Dependencies
Maintainers
0
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ndn/segmented-object

NDNts: Segmented Object

  • 0.0.20240630
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by1000%
Maintainers
0
Weekly downloads
 
Created
Source

@ndn/segmented-object

This package is part of NDNts, Named Data Networking libraries for the modern web.

This package implements functions to publish and retrieve segmented objects. @ndn/cat package is a command line program that uses this package, and serves as an example.

The consumer functionality:

  • supports version discovery via CanBePrefix.
  • supports version discovery by requesting metadata (in @ndn/rdr package).
  • supports manifest.
  • allows specifying segment range.
  • supports segment numbers.
  • supports byte offsets.
  • supports multiple naming conventions.
  • has Interest pipelining, congestion control, and loss recovery.
  • verifies packets with a Verifier (fixed key or trust schema).
  • emits events as segments arrive.
  • outputs in-order data chunks as a readable stream.
  • outputs completely reassembled object via Promise.

The producer functionality:

  • takes input from Uint8Array.
  • takes input from readable streams.
  • takes input from files or Blob.
  • generates segments of fixed size.
  • generates segments of available data as Interest arrives, to minimize delivery latency.
  • responds to version discovery Interests with CanBePrefix.
  • responds to metadata requests (in @ndn/rdr package).
  • generates manifest.
  • supports segment numbers.
  • supports byte offsets.
  • supports multiple naming conventions.
  • signs packets with a Signer (fixed key or trust schema).
  • reports when all segments have been retrieved at least once.

Keywords

FAQs

Package last updated on 01 Jul 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc