TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How can you adopt Node.js to Web3

1 pointsby doganenginover 3 years ago
Hi,<p>Is there a distributed platform that provides node.js&#x2F;webserver capabilities? For example, I see integration between node.js and IPFS but would not using a node server be a point of failure in web3? How do you guys tackle node.js functionality in a web3 environment?<p>Thanks

2 comments

byoung2over 3 years ago
Maybe something like AWS Lambda, but the functions live on distributed nodes run by community members.
smt88over 3 years ago
Let me preface this by saying &quot;Web3&quot; is a meaningless marketing term that non-technical people have invented to pump their crypto assets.<p>To the extent that it means anything at all, it has been possible for decades without blockchain technology, and it isn&#x27;t applicable to the vast majority of users for the vast majority of purposes. As we&#x27;ve seen from BitTorrent (a true &quot;Web3&quot; decentralized network that has existed since the 1990s), it&#x27;s not: 1) censorship-proof, 2) attack-proof, or 3) useful to most people doing lawful activities.<p>&gt; <i>Is there a distributed platform that provides node.js&#x2F;webserver capabilities?</i><p>No.<p>Things like BitTorrent and IPFS (which is inspired by BitTorrent) are examples of distributed web servers, yes. For those networks, however, you can&#x27;t get participants to run your code. You can only get them to &quot;speak&quot; the same protocol to each other.<p>Dfinity (which turned out to be a series of vague lies and possibly an outright rugpull) was supposed to be something like what you&#x27;re describing, but they were centralized around whitelisted data centers. The implementation never reached the promise of distributed computing.<p>&gt; <i>I see integration between node.js and IPFS</i><p>This is just for creating applications that understand the IPFS protocol. You can&#x27;t send people Node code to run.<p>&gt; <i>would not using a node server be a point of failure in web3?</i><p>You mean having a server is a point of centralization? Yes, but all code accessible over the web is coming from a server. Decentralized systems are decentralized not because they&#x27;re &quot;serverless&quot; (which is impossible) but because the network is composed of many redundant servers that do the same thing. If you lose a few, the network doesn&#x27;t go down.<p>&gt; <i>How do you guys tackle node.js functionality in a web3 environment?</i><p>&quot;Web3 environment&quot; is a somewhat nonsensical term that you&#x27;ll have to more specifically define. Do you mean &quot;when talking to a decentralized protocol, such as BitTorrent&quot;? Well, you tackle it the same way you do with HTTP: by writing or downloading a library that understands the protocol.<p>Do you mean &quot;serving decentralized code&quot;? Currently this is impossible because you&#x27;d be insane to run arbitrary code from anonymous strangers on your hardware.<p>There is precedent for running workloads in a decentralized way, such as the SETI@home project[1] (another example of &quot;Web3&quot; that has existed since the 90s), but it doesn&#x27;t involve executing arbitrary code on a host machine. The code is predetermined by the desktop client, and only the data is distributed to decentralized &quot;servers&quot; (desktop users).<p>1. <a href="https:&#x2F;&#x2F;setiathome.berkeley.edu&#x2F;" rel="nofollow">https:&#x2F;&#x2F;setiathome.berkeley.edu&#x2F;</a>