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

feat: create single example to host mini-code-snippets #70

Open
SgtPooki opened this issue Jun 13, 2023 · 3 comments
Open

feat: create single example to host mini-code-snippets #70

SgtPooki opened this issue Jun 13, 2023 · 3 comments

Comments

@SgtPooki
Copy link
Contributor

While helping out with HackFS, several questions came up that I think would make great tiny examples.

tiny examples that I think would be useful for the community

based on some recent ETHGlobal HackFS questions in the #partner-ipfs channel.

Some thoughts about how we should add tiny examples in this repo:

catch-all with links to Codepen/stackblitz

I don't think it would make sense to use codepen/stackblitz for these because they would quickly become out of date or forgotten.

Single repo for each tiny example

A lot of overhead and a lot of duplicated code.

Single repo for all tiny examples

I think this option is best.

We could create a single repo, similar to helia-101, where we share the main helia instance, and only render different UI components via SPA, where each path is its own codepen-esque view for a particular use-case.


Questions for @Helia-Dev (@achingbrain & @whizzzkid) and @discordian folks:

  1. Does this seem valuable to you?
  2. Would you rather have a single example for these smaller scenarios, or should we have each as its own separate example repo?
  3. Is there a better option I didn't consider?
  4. Are there other tiny examples that may make sense?
@whizzzkid
Copy link
Contributor

I can get behind this:

We could create a single repo, similar to helia-101, where we share the main helia instance, and only render different UI components via SPA, where each path is its own codepen-esque view for a particular use-case.

However, I'd like interactive demos, since helia runs in the browser, it would be nice to have batteries included. Maybe a SPA to demo examples like a design system.

@SgtPooki
Copy link
Contributor Author

I'd like interactive demos, since helia runs in the browser, it would be nice to have batteries included.

I think this would be much harder to maintain in the long term. I think exposing the helia instance and letting people run commands in the terminal if they want is fine, but we likely won't be able to keep an example that has interactivity up-to-date easily.

Maybe a SPA to demo examples like a design system.

i'm not sure what you mean by "like a design system." can you clarify?

@achingbrain
Copy link
Contributor

I like it, sort of like a cookbook for code snippets. As long as they all have tests!

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

3 participants