-
Notifications
You must be signed in to change notification settings - Fork 30
IPFS WebComponents #316
Comments
Link to the example: https://github.com/krl/ipfs-import |
Nice work @krl. |
So I've been thinking if we actually need anything from web components or any other spec and created this: https://github.com/Dignifiedquire/components-on-ipfs It's just a webpack config that resolves all assets, bundles them and allows you to serve them completely through IPFS. Still thinking about sharing dependencies, but that could easily be handled via a script loader which loads from an ipfs url or somewhere else. The main point I'm trying to make is that I think we do not need to restrict ourselves to any spec or specific loader/bundler, but rather can support a lot of them very easily and just provide recipes on how to best use those. |
looks interesting! -- @diasdavid we should probably review this together
👍 |
I like the sound of that :) I feel that the end goal will always be |
we didnt discuss this in the hangouts today. let's try next week, or later this week. |
well the hangout was already long enough so I didn't want to stretch everyone's attention even more. I won't be around next week so maybe we can have a chat this week? |
SGTM :) |
I would like to have @krl in that discussion but I haven't seen anything from him in a while, any ideas what's up with him/when he will be around? Timing wise, today I'm flexible, tomorrow is not so good for me. |
@mikeal has brought back the idea of making IPFS WebComponents with @mikeal any plan to make a js-ipfs standalone version? |
yup, i want it to work on the same element. i want it to actually default to that behavior. is there some demo content up that I can use for testing and getting this to work? |
@mikeal try my fav test image: Jokes aside, XKCD archive has a lot of images that are safe for use: Other data sets can be found at https://archives.ipfs.io |
@mikeal awesome you are picking this up. Now if you host the library itself & the html on IPFS then you are IPFS from top to bottom :) |
@mikeal, there is https://github.com/ipfs/js-ipfs/tree/master/examples/exchange-files-in-browser. In fact, both js-ipfs-api and js-ipfs implement the same API, it is just how the node gets started that is different. In js-ipfs you have to -> https://github.com/ipfs/js-ipfs#ipfs-core-use-ipfs-as-a-module I see that you use |
I'm only using streams because At some point I'm going to need to re-write |
So, i've been doing a fair amount of research and experimentation, and i think i've come to a very nice point.
Instead of using the full-blown webcomponent stack, which seems to be unstable, hardly supported by browsers, and heavily tied-into different frameworks (polymer et al).
Here i'm only using the custom element part. This gives us css namespacing and html imports, and not much more. Still enough to provide a demo of what is possible.
The biggest part is the JS imports over ipfs, which i think fits very well into the model we're envisioning. Please check out krl/ipfs-import for a demo and readme!
@jbenet @diasdavid (feel free to ping more ppl, not sure of all web github handles)
The text was updated successfully, but these errors were encountered: