![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
intergalactic
Advanced tools
Intergalactic is a client-side gateway to the IPFS distributed web. After the initial page load and bootstrapping, it pulls content from IPFS peers entirely in your browser.
Intergalactic brings the distributed web to anyone with a web browser. Web developers and content producers, simply publish your content through IPFS, and then bring it to your users with Intergalactic. All without downloads, software installation, or running IPFS yourself.
Intergalactic automatically installs a JavaScript service worker in your browser that intercepts requests to IPFS multihash URLs, and fetches their content from the IPFS network before rendering in the browser. In other words, Intergalactic serves as a translation layer between HTTP and IPFS without needing to go through a central server.
Additionally, Intergalactic treats each IPFS base hash as its own separate origin. This helps avoid cross-site request forgery among IPFS pages, even if they're all served on the same domain.
npm install
TODO
First, run the following from your copy of Intergalactic's source code:
node server.js
Then, enter a URL like http://localhost:3000/ipfs/<hash>
into your web
browser, where <hash>
is the IPFS hash of some content on the network.
If the corresponding content is loadable, it will load and render in your browser.
Open your browser's web console to see what's going on and debug any issues loading content.
TODO
So far, this is only tested in Firefox 57 on Linux. If you have success or issues on other browsers, please let me know.
FAQs
[![codecov](https://codecov.io/gh/semrush/intergalactic/branch/master/graph/badge.svg?token=OILALW3YQE)](https://codecov.io/gh/semrush/intergalactic) [![version](https://img.shields.io/npm/v/intergalactic.svg)](https://www.npmjs.com/package/intergalactic)
The npm package intergalactic receives a total of 1,626 weekly downloads. As such, intergalactic popularity was classified as popular.
We found that intergalactic demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.