Skip to content

Instantly share code, notes, and snippets.

View doctorzhivago's full-sized avatar

Dr. Zhivago doctorzhivago

View GitHub Profile
@doctorzhivago
doctorzhivago / manage-db.js
Last active May 13, 2021 00:54
Establish an IPNS name that points to a file containing an OrbitDB address
const createClient = require('ipfs-http-client');
const OrbitDB = require('orbit-db');
require('buffer');
const toBuffer = require('it-to-buffer');
const LOG='orbit*';
// NOTE: This runs via node.js 14.x +
// This was only tested with a go-ipfs node running on the same
// device on port 5001