https://github.com/douganderson444/ipfs-svelte-component
A Svelte Wrapper for IPFS to easily use it in web apps
https://github.com/douganderson444/ipfs-svelte-component
Last synced: 3 months ago
JSON representation
A Svelte Wrapper for IPFS to easily use it in web apps
- Host: GitHub
- URL: https://github.com/douganderson444/ipfs-svelte-component
- Owner: DougAnderson444
- License: mit
- Created: 2020-11-14T19:07:34.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-18T18:51:36.000Z (about 4 years ago)
- Last Synced: 2024-03-26T09:48:05.539Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 6.18 MB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IPFS-Svelte-Component
An experimental Svelte Wrapper for IPFS to easily use it in other apps.
## Hacks
Bundling IPFS with Rollup is a bit fickle. Kept getting blocked on
```js
implementation = node(options) || browser (options)```
...which wants cluster to be present. No matter how I tried to null out cluster, it still was a problem.
So I had to cut-and-paste the build from Gozala's [replciator](https://github.com/Gozala/replicator/tree/default/replicator/modules/ipfs-core) in order to bundle it into the component. This means it needs to be manually updated to bump versions. Not ideal, but it works in the browser.
## Use
In a svelte app:
```
// TODO
``````
npm run build
```The rollup build is smaller (due to treeshaking I suspect)