Library for managing files in a dPack, within memory, through randomized entry.
Last updated 2 years ago by distributedweb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dwrem 
SYNC missed versions from official npm registry.


dWebShield-OfficialdWebShield-dWebbuild statusJavaScript Style Guide

Works alongside dwref and maintains dwref's read/write data in memory.

Table of Contents


Works alongside dwref and maintains dwref's read/write data in memory.


Install With NPM

npm install dwrem

Install With YARN

yarn add dwrem


var dwrem = require('dwrem')
var dPackFile = dwrem()

dPackFile.dPackWrite(0, Buffer.from('greetings'), function () {
  dPackFile.dPackWrite(5, Buffer.from(' martian'), function () {
    dPackFile.dPackRead(0, 11, console.log) // returns Buffer(hello world)

You can also initialize a dwrem instance with a Buffer:

var dPackFile = dwrem(Buffer.from('greetings martian'))

Related Projects

Why The Internet Must Have A Decentralized Alternative

Today, the internet is more censored than ever and it's only getting worse. Our mission with the dWeb Protocol was to create a truly powerful P2P protocol, around benOS, dBrowser and many of benOS' underlying libraries to bring the most powerful P2P products to life. In the last few months, by rebuilding P2P technologies that have existed since the early 2000s, we have built a powerful suite of decentralized libraries for benOS and the Bench Network, that will only improve over time. But we also brought new ideas to life, like:

and more! These were the protocols and libraries that we needed to create a completely decentralized operating system, where everything was distributed, protected and people were once again in control of their data. benOS is made up of over 1100+ different libraries that we are releasing on a day-by-day basis as we move them to a stable/production state. While financial support is great for this open source project, we need developers who want to be some of the first to build the dApps and dSites of the future. We have to take back what our forefathers originally designed for freedom, by making our code the law, instead of releasing weak and highly centralized applications where law cannot be applied because the code lacks the foundation to implement a legal framework for itself. Join us for a truly historic journey on the BenchLabs Telegram. See you there.

Bench On The dWeb

dweb://bench.dnames.io // dNames Short Link dweb://3EDAE09848B77401445B7739CAFCE442DDE1752AED63025A1F94E6A86D7E9F04 // dWeb Key Link

In order to make the links above clickable or to view these links period, you will need dBrowser (Available for Mac OSX, Linux, Windows and soon to be available on iOS/Android)

"The Code Is The Law" - Stan Larimer - Godfather of BitShares.



JavaScript Style Guide


Copyright (c) 2018 Distributed Webs Project. All rights reserved.

Current Tags

  • 1.0.2                                ...           latest (2 years ago)

3 Versions

  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (2)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |