node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

ipfs-elements

IPFS Elements

HTML elements you can use to display content from IPFS.

Usage:

<body>
  <script src="https://cdn.jsdelivr.net/npm/ipfs-elements@latest/dist/ipfs-elements.min.js"></script> 
  <ipfs-img
    api="/ip4/127.0.0.1/tcp/5001"
    src="/ipfs/QmW2WQi7j6c7UgJTarActp7tDNikE4B2qXtFCfLPdsgaTQ/cat.jpg">
  </ipfs-img>
</body>