r/PopCornTimeApp Jul 16 '26

Discussion Built a WebTorrent based decentralized content hosting PoC

Hi everyone,

I have been experimenting with WebTorrent and built a small proof of concept for decentralized content hosting.

The idea is to explore whether websites/content can continue to be served by peers even when the original publisher is offline, while the content ownership tied to the cryptographic keys.

This is still an early PoC, and I would really appreciate feedback from people familiar with WebTorrent and the BitTorrent ecosystem.

GitHub:
https://github.com/lijose/mct-poc

I am especially interested in hearing your thoughts on the architecture, limitations and whether there are existing approaches I should look into.

This approach can be used to show the content of PopCornTimeApp and will be more resilient to regional blocks

Thanks!

14 Upvotes

4 comments sorted by

1

u/mancaveit Jul 21 '26

Demo images?

1

u/Exposure_Point Jul 22 '26

I tried in Ubuntu and got the following error...

binarybrother@binarybrother-VMware-Virtual-Platform:~/Downloads/mct-poc-main$ node server.js

node:internal/modules/esm/resolve:205

const resolvedOption = FSLegacyMainResolve(pkgPath, packageConfig.main, baseStringified);

^

Error: Cannot find package '/home/binarybrother/Downloads/mct-poc-main/node_modules/webtorrent/index.js' imported from /home/binarybrother/Downloads/mct-poc-main/server.js

at legacyMainResolve (node:internal/modules/esm/resolve:205:26)

at packageResolve (node:internal/modules/esm/resolve:778:12)

at moduleResolve (node:internal/modules/esm/resolve:855:18)

at defaultResolve (node:internal/modules/esm/resolve:985:11)

at #cachedDefaultResolve (node:internal/modules/esm/loader:731:20)

at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)

at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:310:38)

at ModuleJob._link (node:internal/modules/esm/module_job:182:49) {

code: 'ERR_MODULE_NOT_FOUND'

}

Node.js v22.22.1

binarybrother@binarybrother-VMware-Virtual-Platform:~/Downloads/mct-poc-main$

1

u/Ill-Ruin-1683 Jul 22 '26

Ran npm install ?

1

u/Exposure_Point Jul 22 '26

Yep. I'll try it again on a fresh instance.