The LBRY format is an application format designed to promote interoperability and transmission of complex digital media.
Find a file
2019-01-10 23:58:00 -06:00
.gitignore Initial commit 2019-01-03 22:08:57 -06:00
index.js Code cleanup, fix race condition, return promise on unpack 2019-01-10 23:58:00 -06:00
LICENSE Initial commit 2019-01-03 22:08:57 -06:00
package-lock.json Add pack/unpack functionality 2019-01-06 15:41:49 -06:00
package.json Add pack/unpack functionality 2019-01-06 15:41:49 -06:00
README.md Update README.md 2019-01-06 19:54:12 -06:00

PROPOSAL STAGE

LBRY File Format

The LBRY format is a multimedia-format designed to promote interoperability and transmission of complex digital media.

Name

  • Name Format: *.lbry
  • Character Set: UTF-8
  • Extension: lbry

Metadata

  • Media Type: application/x-lbry

Container

  • Compression: Zstandard
  • Archival: tar

Contents

Descriptor

  • Format: JSON, UTF-8

lbry-format

Requirements

Usage

WARNING: These method signatures will change as the JSON Descriptor is finalized.

Install npm i https://github.com/lbryio/lbry-format.git

Pack

const lbryFormat = require('lbry-format');

// Pack `./` to `package.lbry`
lbryFormat.packDirectory('./', {
  fileName: 'package.lbry',
});

Unpack

const lbryFormat = require('lbry-format');

// Unpack `package.lbry` to `./`
lbryFormat.unpackDirectory('./', {
  fileName: 'package.lbry',
});