Skip to content
master
Switch branches/tags
js-ipfs/examples/browser-script-tag/
js-ipfs/examples/browser-script-tag/
This branch is 5324 commits behind ipfs:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

Use IPFS in the browser with <script> tags

You can use IPFS in your in-browser JavaScript code with just a <script> tag.

<script src="https://unpkg.com/ipfs/dist/index.min.js"></script>

This exposes a global Ipfs; you can get a node by making a new Ipfs().

See index.html for a working example.