npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

vipfs-protocol

v1.0.2

Published

A robust TypeScript library for fragmenting, encrypting and uploading large video files to IPFS, using Ethereum-derived keys for security. Generates a JSON index to ensure video can be safely reassembled and decrypted later.

Readme

VIPFS Protocol

GitHub stars npm GitHub issues License

VIPFS Protocol is a TypeScript library for splitting large video files into fragments, encrypting each fragment with Ethereum-derived keys, uploading encrypted fragments to IPFS, and persisting the resulting metadata as a JSON index.

It is designed for workflows where large media assets need deterministic encryption, content-addressed storage, and a portable manifest that can be used later to recover fragment order and status.

What It Does

  • Splits a source video into fixed-size fragments without loading the whole file into memory.
  • Derives per-fragment encryption keys from an Ethereum mnemonic.
  • Encrypts each fragment independently with AES-256-GCM.
  • Uploads encrypted fragments to a Kubo-compatible IPFS HTTP API.
  • Persists an index JSON manifest with CIDs, timestamps, and fragment status values.

Features

  • Fragment large files with stream-based reads.
  • Encrypt each fragment independently with AES-256-GCM.
  • Derive deterministic encryption keys from an Ethereum mnemonic.
  • Upload and retrieve encrypted fragments through the Kubo HTTP API.
  • Persist fragment metadata and upload status through a portable JSON index.

Installation

npm install vipfs-protocol

or

yarn add vipfs-protocol

Usage

import {
  EthereumWallet,
  FragmentEncryptor,
  IndexManager,
  IPFSUploader,
  VideoFragmenter,
} from 'vipfs-protocol'

const wallet = new EthereumWallet(process.env.VIPFS_MNEMONIC as string)
const fragmenter = new VideoFragmenter(5 * 1024 * 1024)
const encryptor = new FragmentEncryptor(wallet)
const uploader = new IPFSUploader('http://localhost:5001/api/v0')
const indexManager = new IndexManager()
const sourceVideoPath = './public/sample_1280x720.mp4'

const fragments = []
let index = 0

for await (const chunk of fragmenter.fragment(sourceVideoPath)) {
  const encryptedChunk = await encryptor.encrypt(chunk, index)
  const cid = await uploader.upload(encryptedChunk)

  fragments.push({
    index,
    cid,
    timestamp: Date.now(),
    status: 'ok',
  })

  index += 1
}

const manifest = indexManager.createIndex('sample-video', fragments)
indexManager.saveToFile('./sample-video.index.json', manifest)

Package Surface

The current public API exports five services:

  • VideoFragmenter
  • FragmentEncryptor
  • EthereumWallet
  • IPFSUploader
  • IndexManager

Core Services

  • VideoFragmenter: reads a local file as stream-safe chunks.
  • FragmentEncryptor: encrypts and decrypts each fragment buffer.
  • EthereumWallet: derives deterministic 32-byte keys from a mnemonic.
  • IPFSUploader: uploads encrypted fragments and downloads them by CID.
  • IndexManager: creates, updates, saves, and loads the index JSON manifest.

These services are exposed as composable primitives rather than a single orchestration manager.

Development

Recommended runtime: Node.js 22. Recommended package manager: Yarn 1.22.22.

Setup:

yarn

Watch TypeScript builds:

yarn dev

Run the project quality pipeline:

yarn ci:local

Scripts

| Script | Description | | --- | --- | | build | Compile the library with TypeScript. | | dev | Run TypeScript in watch mode. | | test | Run Jest with coverage and JUnit output. | | lint | Run ESLint against src/ and __tests__/. | | lint:fix | Apply ESLint fixes. | | format | Format src/ and __tests__/ with Prettier. | | clean | Remove build, coverage, lockfile, and dependency artifacts. | | ci:local | Execute the local all-in-one quality pipeline: clean, install, lint, format, test, build, and pack. |

Documentation

Contributing

Read CONTRIBUTING.md before opening a pull request. The repository also includes GitHub issue templates, a pull request template, and Copilot collaboration guidance under .github/.

Security

Read SECURITY.md for responsible disclosure guidance.

License

MIT


📬 Contact Us

For questions, feedback, or business inquiries:

✉️ Email: [email protected]
🌐 Website: Github


👨‍💻 Authors

Made with ❤️ by the @Netzulo