Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to actually use it ? #14

Open
veermetri05 opened this issue Apr 17, 2023 · 2 comments
Open

How to actually use it ? #14

veermetri05 opened this issue Apr 17, 2023 · 2 comments

Comments

@veermetri05
Copy link

Currently, I am unsure even if this is usable at all or not ? If yes then please provide with some guide on how to integrate it in my own website. What does community hosted Saturn Node mean ? Are these special nodes that are running publicly and there are other nodes that we pay to use ?

@tennox
Copy link

tennox commented Sep 20, 2023

The instructions are quite lacking, I agree... I did figure out how to use it - but it's very hacky:

demo:

https://cool-colossal-square-goblin.fission.app/

repo & instructions

https://gitlab.com/TeNNoX/saturn-cdn-hacky-demo

What I'm lacking is how to load DAG blocks (this one only loads unixfs-based stuff / files)

@tennox
Copy link

tennox commented Sep 21, 2023

Update: I half-figured out how to fetch DAG car files:

I needed to modify sw-core to use r.searchParams.set("dag-scope", "all").
The request to saturn.ms returns the car file correctly, but the service worker response returns a network error 😞

see this branch on the demo repo & the deployed demo (check console)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants