# js-ipfs

**URL:** https://discuss.ipfs.tech/c/archive/help-js-ipfs/25.md?page=3

[Latest](https://discuss.ipfs.tech/latest.md) · [Categories](https://discuss.ipfs.tech/categories.md) · [Tags](https://discuss.ipfs.tech/tags.md)

**Page:** 4

---

## [Javascript version of ParsePubKey](https://discuss.ipfs.tech/t/javascript-version-of-parsepubkey/7398)

<div class="topic-metadata">

**Author:** [@uchevt](https://discuss.ipfs.tech/u/uchevt)\
**Replies:** 1\
**Last updated:** [March 5, 2020, 11:54am UTC](https://discuss.ipfs.tech/t/javascript-version-of-parsepubkey/7398 "2020-03-05T11:54:15Z")

</div>

Hi there, Is there a javascript version of the following function: btcec.ParsePubKey(data, btcec.S256()) which can be found under UnmarshalSecp256k1PublicKey(…) Cheers,

---

## [Problem with creating a PubSub enabled node in browser](https://discuss.ipfs.tech/t/problem-with-creating-a-pubsub-enabled-node-in-browser/7187)

<div class="topic-metadata">

**Author:** [@smixqse](https://discuss.ipfs.tech/u/smixqse)\
**Replies:** 1\
**Last updated:** [February 5, 2020, 5:13pm UTC](https://discuss.ipfs.tech/t/problem-with-creating-a-pubsub-enabled-node-in-browser/7187 "2020-02-05T17:13:52Z")

</div>

I was trying to use ipfs-pubsub-room in the browser (using a browserified version of the package and the IPFS package from the cdn), and i keep getting the error: Uncaught Error: This IPFS node does not have pubsub. .…

---

## ['URL': Invalid URL in configure.js and get-endpoint-config.js](https://discuss.ipfs.tech/t/url-invalid-url-in-configure-js-and-get-endpoint-config-js/7052)

<div class="topic-metadata">

**Author:** [@uchevt](https://discuss.ipfs.tech/u/uchevt)\
**Replies:** 3\
**Last updated:** [January 22, 2020, 7:55pm UTC](https://discuss.ipfs.tech/t/url-invalid-url-in-configure-js-and-get-endpoint-config-js/7052 "2020-01-22T19:55:55Z")

</div>

Hello All, I have the ipsf daemon running in the background, successfully. However, when I try to run the example, upload-file-via-browswer, in js-ipfs-http-client repo, I get the following error on my chrome browser: U…

---

## [Getting public IP from ipfs node](https://discuss.ipfs.tech/t/getting-public-ip-from-ipfs-node/6629)

<div class="topic-metadata">

**Author:** [@xxxxxxxxx](https://discuss.ipfs.tech/u/xxxxxxxxx)\
**Replies:** 1\
**Last updated:** [November 10, 2019, 4:29pm UTC](https://discuss.ipfs.tech/t/getting-public-ip-from-ipfs-node/6629 "2019-11-10T16:29:37Z")

</div>

When running an ipfs node, is it possible to get the public ip (multiaddr) from this node?

---

## [How to upload a file from local storage to IPFS by using CDN link](https://discuss.ipfs.tech/t/how-to-upload-a-file-from-local-storage-to-ipfs-by-using-cdn-link/5313)

<div class="topic-metadata">

**Author:** [@catlog](https://discuss.ipfs.tech/u/catlog)\
**Replies:** 10\
**Last updated:** [September 9, 2019, 6:24pm UTC](https://discuss.ipfs.tech/t/how-to-upload-a-file-from-local-storage-to-ipfs-by-using-cdn-link/5313 "2019-09-09T18:24:16Z")

</div>

I tried to upload a file from local system to IPFS using Script CDN link but can't, can anyone solve this.

---

## [addFromURL() Not Following Redirects](https://discuss.ipfs.tech/t/addfromurl-not-following-redirects/5990)

<div class="topic-metadata">

**Author:** [@leoherzog](https://discuss.ipfs.tech/u/leoherzog)\
**Replies:** 1\
**Last updated:** [August 1, 2019, 2:50pm UTC](https://discuss.ipfs.tech/t/addfromurl-not-following-redirects/5990 "2019-08-01T14:50:53Z")

</div>

Hello! I’m running this in NodeJS: const ipfs = require('ipfs'); const node = new ipfs(); node.addFromURL("http://isoredirect.centos.org/centos/7/isos/x86\_64/CentOS-7-x86\_64-Minimal-1810.iso", (error, result) =\> { if…

---

## [Questions for implementing "ipfs diag cmds" in javascript](https://discuss.ipfs.tech/t/questions-for-implementing-ipfs-diag-cmds-in-javascript/5930)

<div class="topic-metadata">

**Author:** [@weichiao-cs07](https://discuss.ipfs.tech/u/weichiao-cs07)\
**Replies:** 0\
**Last updated:** [July 24, 2019, 1:16am UTC](https://discuss.ipfs.tech/t/questions-for-implementing-ipfs-diag-cmds-in-javascript/5930 "2019-07-24T01:16:51Z")

</div>

I’m trying to keep an record of the commands that I performed in ipfs. In go-ipfs we are able to find out via “ipfs diag cmds”. However, in IMPLEMENTATION\_STATUS.md pointed out that there are no js-implementation of “ipf…

---

## [Init js-ipfs node with ed25519 key pair](https://discuss.ipfs.tech/t/init-js-ipfs-node-with-ed25519-key-pair/5821)

<div class="topic-metadata">

**Author:** [@npfoss](https://discuss.ipfs.tech/u/npfoss)\
**Replies:** 2\
**Last updated:** [July 16, 2019, 2:27pm UTC](https://discuss.ipfs.tech/t/init-js-ipfs-node-with-ed25519-key-pair/5821 "2019-07-16T14:27:06Z")

</div>

It looks from the documentation and conversations on github that using ed25519 instead of RSA for node IDs is possible, but not the default. However, I can’t seem to find how to actually do it, and even creating one with…

---

## [Unable to connect to my private network using ipfs-http-client?](https://discuss.ipfs.tech/t/unable-to-connect-to-my-private-network-using-ipfs-http-client/5519)

<div class="topic-metadata">

**Author:** [@AkshitV](https://discuss.ipfs.tech/u/AkshitV)\
**Replies:** 2\
**Last updated:** [May 28, 2019, 2:53pm UTC](https://discuss.ipfs.tech/t/unable-to-connect-to-my-private-network-using-ipfs-http-client/5519 "2019-05-28T14:53:13Z")

</div>

\[beginner\] js-ipfs is same as ipfs-http-client right ? ()https://www.npmjs.com/package/ipfs-http-client I have made a private network using my pc and an instance from aws i want to add files onto this network, check …

---

## [Live upload progress not showing](https://discuss.ipfs.tech/t/live-upload-progress-not-showing/5443)

<div class="topic-metadata">

**Author:** [@salihkemaloglu](https://discuss.ipfs.tech/u/salihkemaloglu)\
**Replies:** 0\
**Last updated:** [May 20, 2019, 5:41am UTC](https://discuss.ipfs.tech/t/live-upload-progress-not-showing/5443 "2019-05-20T05:41:12Z")

</div>

When I Upload any file, it is not showing live uploaded status using progress; The progress showed after whole file or folder is uploaded. CODE: var ipfsClient = require(‘ipfs-http-client’) const fs = require(‘fs’); …

---

## [Js-ipfs restoring rsa keys](https://discuss.ipfs.tech/t/js-ipfs-restoring-rsa-keys/5002)

<div class="topic-metadata">

**Author:** [@nomadcrypto](https://discuss.ipfs.tech/u/nomadcrypto)\
**Replies:** 3\
**Last updated:** [May 13, 2019, 6:18pm UTC](https://discuss.ipfs.tech/t/js-ipfs-restoring-rsa-keys/5002 "2019-05-13T18:18:36Z")

</div>

I am in the discovery/research phase for a decenteralized app and have some really basic questions regarding js-ipfs. I was planning on using orbitdb and noticed that they use secp256k1keys. For those keys I was thinking…

---

## [How to auto resolve ipld refs by dag.get](https://discuss.ipfs.tech/t/how-to-auto-resolve-ipld-refs-by-dag-get/5377)

<div class="topic-metadata">

**Author:** [@Jonybang](https://discuss.ipfs.tech/u/Jonybang)\
**Replies:** 5\
**Last updated:** [May 13, 2019, 3:39pm UTC](https://discuss.ipfs.tech/t/how-to-auto-resolve-ipld-refs-by-dag-get/5377 "2019-05-13T15:39:55Z")

</div>

I've seen many cases where code like this works: const obj = { simple: 'object' }; const dagParams = { format: 'dag-cbor', hashAlg: 'sha3-512' }; const cid = await ipfs.dag.put(obj, dagParams); const cidString = cid.…

---

## [Js-ipfs in-browser persistent pins](https://discuss.ipfs.tech/t/js-ipfs-in-browser-persistent-pins/5386)

<div class="topic-metadata">

**Author:** [@npfoss](https://discuss.ipfs.tech/u/npfoss)\
**Replies:** 2\
**Last updated:** [May 13, 2019, 3:38pm UTC](https://discuss.ipfs.tech/t/js-ipfs-in-browser-persistent-pins/5386 "2019-05-13T15:38:00Z")

</div>

Hey, is there a way to pin a hash in the browser (presumably to localStorage) so that it persists between refreshes? I'd like users to be able to come back to my site and have access to all the stuff they saved before …

---

## [Question\[Stress testing MFS\]: How does \`ipfs.files.rm\` work?](https://discuss.ipfs.tech/t/question-stress-testing-mfs-how-does-ipfs-files-rm-work/5108)

<div class="topic-metadata">

**Author:** [@vasa-develop](https://discuss.ipfs.tech/u/vasa-develop)\
**Replies:** 2\
**Last updated:** [March 29, 2019, 3:53pm UTC](https://discuss.ipfs.tech/t/question-stress-testing-mfs-how-does-ipfs-files-rm-work/5108 "2019-03-29T15:53:09Z")

</div>

Environment go-ipfs(for local daemon) version: 0.4.19 OS: Ubuntu 16.04 LTS ipfs-http-client version: 30.1.1 Description of Question I was stress testing IPFS MFS. For stress testing, I used this script: // Importi…

---

## [Getting Started - Javascript Example?](https://discuss.ipfs.tech/t/getting-started-javascript-example/4879)

<div class="topic-metadata">

**Author:** [@zillerium](https://discuss.ipfs.tech/u/zillerium)\
**Replies:** 1\
**Last updated:** [February 15, 2019, 1:49pm UTC](https://discuss.ipfs.tech/t/getting-started-javascript-example/4879 "2019-02-15T13:49:30Z")

</div>

I want to create a web UI which can store images and text into IPFS. Has anyone a code example?

---

## [ReferenceError when using js-IPFS](https://discuss.ipfs.tech/t/referenceerror-when-using-js-ipfs/4868)

<div class="topic-metadata">

**Author:** [@kwakwa](https://discuss.ipfs.tech/u/kwakwa)\
**Replies:** 0\
**Last updated:** [February 13, 2019, 6:05pm UTC](https://discuss.ipfs.tech/t/referenceerror-when-using-js-ipfs/4868 "2019-02-13T18:05:38Z")

</div>

Hello, When following the 101 tutorial for starting a node and deploying a file I’m getting an error on my browser (I’m using Angular with webpack), basically all I’m doing is calling the function ipfsLoad on a differe…

---

## [Current state of browser jsipfs](https://discuss.ipfs.tech/t/current-state-of-browser-jsipfs/4854)

<div class="topic-metadata">

**Author:** [@ethericsol](https://discuss.ipfs.tech/u/ethericsol)\
**Replies:** 0\
**Last updated:** [February 11, 2019, 4:27pm UTC](https://discuss.ipfs.tech/t/current-state-of-browser-jsipfs/4854 "2019-02-11T16:27:46Z")

</div>

Hi, I am working on an application that uses browser js-ipfs to pull and add files to the network. Up until recently I was having no issues finding files pinned from external nodes across the network. Now files I once wa…

---

## [How to connect 2 nodes in my own network (not private network)](https://discuss.ipfs.tech/t/how-to-connect-2-nodes-in-my-own-network-not-private-network/4084)

<div class="topic-metadata">

**Author:** [@SivaNithish](https://discuss.ipfs.tech/u/SivaNithish)\
**Replies:** 0\
**Last updated:** [October 19, 2018, 1:10pm UTC](https://discuss.ipfs.tech/t/how-to-connect-2-nodes-in-my-own-network-not-private-network/4084 "2018-10-19T13:10:53Z")

</div>

Hi guys, I've been searching for a while now, trying to connect two nodes in their own network. I already tried with the Private Network but I got an issue with it and I'm not sure that I can implement it with the libp…

---

## [OrbitDb vs IPFS](https://discuss.ipfs.tech/t/orbitdb-vs-ipfs/4088)

<div class="topic-metadata">

**Author:** [@gaga\_gogo](https://discuss.ipfs.tech/u/gaga_gogo)\
**Replies:** 2\
**Last updated:** [October 21, 2018, 5:40pm UTC](https://discuss.ipfs.tech/t/orbitdb-vs-ipfs/4088 "2018-10-21T17:40:19Z")

</div>

Hi folks, I'm just getting started with IPFS and keen to understand best way to get an application up and running. Should I use a more direct Js-ipfs implementation or pursue something like OrbitDb that provides off…

---

## [Are direct messages to a peer through libp2p encrypted?](https://discuss.ipfs.tech/t/are-direct-messages-to-a-peer-through-libp2p-encrypted/3394)

<div class="topic-metadata">

**Author:** [@owenauch](https://discuss.ipfs.tech/u/owenauch)\
**Replies:** 2\
**Last updated:** [October 11, 2018, 2:55pm UTC](https://discuss.ipfs.tech/t/are-direct-messages-to-a-peer-through-libp2p-encrypted/3394 "2018-10-11T14:55:17Z")

</div>

When I use libp2p under the hood of a normal IPFS node, are my direct messages to other peers encrypted?

---

## [Accessing Public and Private Keys Programmatically in JS-IPFS](https://discuss.ipfs.tech/t/accessing-public-and-private-keys-programmatically-in-js-ipfs/3393)

<div class="topic-metadata">

**Author:** [@owenauch](https://discuss.ipfs.tech/u/owenauch)\
**Replies:** 6\
**Last updated:** [October 8, 2018, 7:35pm UTC](https://discuss.ipfs.tech/t/accessing-public-and-private-keys-programmatically-in-js-ipfs/3393 "2018-10-08T19:35:28Z")

</div>

Hello, I was trying to access the IPFS public and private keys programmatically within JS-IPFS in Node. When I ran ipfs.key.list() however, I got the error of Error: Key management requires '--pass ...' option. I didn't …

---

## [\[SOLVED\] Reproduce IPFS hash](https://discuss.ipfs.tech/t/solved-reproduce-ipfs-hash/3982)

<div class="topic-metadata">

**Author:** [@hdriqi](https://discuss.ipfs.tech/u/hdriqi)\
**Replies:** 2\
**Last updated:** [October 2, 2018, 4:11am UTC](https://discuss.ipfs.tech/t/solved-reproduce-ipfs-hash/3982 "2018-10-02T04:11:05Z")

</div>

Hi! Im trying to reproduce IPFS hash using js-multihash (https://github.com/multiformats/js-multihash). From my understanding IPFS hash basically take the input of file that has been hashed with sha2-256 (or other algori…

---

## [What the "Deduplication" means exactly?](https://discuss.ipfs.tech/t/what-the-deduplication-means-exactly/3937)

<div class="topic-metadata">

**Author:** [@maroodb](https://discuss.ipfs.tech/u/maroodb)\
**Replies:** 1\
**Last updated:** [September 26, 2018, 4:20pm UTC](https://discuss.ipfs.tech/t/what-the-deduplication-means-exactly/3937 "2018-09-26T16:20:20Z")

</div>

in the whitepaper the author said : "Deduplication: all objects that hold the exact same content are equal, and only stored once." is that mean that data is stored once ? and nodes cant store the some objects ?

---

## [Recursive Folder Upload Via Browser Example - js-ipfs](https://discuss.ipfs.tech/t/recursive-folder-upload-via-browser-example-js-ipfs/3907)

<div class="topic-metadata">

**Author:** [@bigjpr83](https://discuss.ipfs.tech/u/bigjpr83)\
**Replies:** 0\
**Last updated:** [September 23, 2018, 3:50am UTC](https://discuss.ipfs.tech/t/recursive-folder-upload-via-browser-example-js-ipfs/3907 "2018-09-23T03:50:32Z")

</div>

Does anyone have an example of a recursive folder upload via a browser based js-ipfs node?

---

## [Reading streams in Javascript](https://discuss.ipfs.tech/t/reading-streams-in-javascript/1789)

<div class="topic-metadata">

**Author:** [@Mitra](https://discuss.ipfs.tech/u/Mitra)\
**Replies:** 6\
**Last updated:** [August 13, 2018, 2:07am UTC](https://discuss.ipfs.tech/t/reading-streams-in-javascript/1789 "2018-08-13T02:07:34Z")

</div>

Hi - posting here as its probably a question, though the "issue" would be lack of documentation :slight\_smile: Has anyone tried using the IPFS file streams in Javascript? I'm trying to get something like a Node stream…

---

## [Serving a gateway from a js-ipfs web app](https://discuss.ipfs.tech/t/serving-a-gateway-from-a-js-ipfs-web-app/3222)

<div class="topic-metadata">

**Author:** [@buzz](https://discuss.ipfs.tech/u/buzz)\
**Replies:** 2\
**Last updated:** [July 29, 2018, 9:47pm UTC](https://discuss.ipfs.tech/t/serving-a-gateway-from-a-js-ipfs-web-app/3222 "2018-07-29T21:47:03Z")

</div>

I'd like to write a small proof-of-concept web app that allows upload of files and makes them accessible to the global IPFS network. As I understand this should already be possible using js-ipfs and js-p2p-websocket-star…

---

## [User specified block-splitting functions](https://discuss.ipfs.tech/t/user-specified-block-splitting-functions/3461)

<div class="topic-metadata">

**Author:** [@ambertch](https://discuss.ipfs.tech/u/ambertch)\
**Replies:** 0\
**Last updated:** [July 22, 2018, 4:56am UTC](https://discuss.ipfs.tech/t/user-specified-block-splitting-functions/3461 "2018-07-22T04:56:25Z")

</div>

Hi, In the white paper, secion 3.6.7 Splitting files into Lists and Blob, it mentions about IPFS: "Allow users to specify block-splitting functions highly tuned for specific files. Is this implemented in the codebase…

---

## [Best way of pinning](https://discuss.ipfs.tech/t/best-way-of-pinning/3433)

<div class="topic-metadata">

**Author:** [@yashwanth2804](https://discuss.ipfs.tech/u/yashwanth2804)\
**Replies:** 0\
**Last updated:** [July 19, 2018, 2:40am UTC](https://discuss.ipfs.tech/t/best-way-of-pinning/3433 "2018-07-19T02:40:03Z")

</div>

what should be actual procedure, 1)uploading file to server folder then pin that folder 2) use ipfs.add.file method, and provide random 'path' (i dont consider about path) as parameter ,then get hash of it and feed it …

---

## [Js-ipfs server hangs for multiple queries](https://discuss.ipfs.tech/t/js-ipfs-server-hangs-for-multiple-queries/1117)

<div class="topic-metadata">

**Author:** [@davidweisss](https://discuss.ipfs.tech/u/davidweisss)\
**Replies:** 0\
**Last updated:** [September 19, 2017, 4:00pm UTC](https://discuss.ipfs.tech/t/js-ipfs-server-hangs-for-multiple-queries/1117 "2017-09-19T16:00:06Z")

</div>

I've been implementing a simple web service to upload, encrypt and send files to ipfs. It works nicely the first time but the second time the server hangs. I've been trying and trying without success. Guess I don't under…

---

## [Can't install ipfs with npm](https://discuss.ipfs.tech/t/cant-install-ipfs-with-npm/991)

<div class="topic-metadata">

**Author:** [@alexandre1985](https://discuss.ipfs.tech/u/alexandre1985)\
**Replies:** 4\
**Last updated:** [August 22, 2017, 5:48pm UTC](https://discuss.ipfs.tech/t/cant-install-ipfs-with-npm/991 "2017-08-22T17:48:27Z")

</div>

When I do on my Manjaro Deepin Linux x64: # npm i ipfs --global I get npm ERR! code 128 npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b master git://github.com/dignifiedquire/webcrypto-shim.git /root/.npm/\_…

[Previous page](https://discuss.ipfs.tech/c/archive/help-js-ipfs/25.md?page=2)

[Next page](https://discuss.ipfs.tech/c/archive/help-js-ipfs/25.md?page=4)
