Skip to content

About

Ready-to-run Helia examples for Node.js and the browser

Topics

Resources

Security policy

Stars

117 stars

Watchers

2 watching

Forks

Latest commit

 

History

132 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helia logo

A collection of Helia examples


Explore the docs · View Demo · Report Bug · Request Feature/Example

Table of Contents

About The Project

Getting Started

Examples

Feel free to jump directly into the examples, however going through the following sections will help build context and background knowledge.

Basics

Frameworks

Bundlers

Testing

Other tooling

Prerequisites

Make sure you have installed all of the following prerequisites on your development machine:

IPFS Tutorials at ProtoSchool

Explore ProtoSchool's IPFS tutorials for interactive Helia coding challenges, deep dives into DWeb concepts like content addressing, and more.

Documentation

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the IPFS Examples Project (https://github.com/ipfs/helia-examples)
  2. Create your Feature Branch (git checkout -b feature/amazing-feature)
  3. Commit your Changes (git commit -a -m 'feat: add some amazing feature')
  4. Push to the Branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

How to add a new example

  1. Decide on a pithy folder name for your example, it should start with helia- and ideally be one or two words that describe what it's about - e.g. helia-transfer-files
  2. Create a folder in this repo under examples, eg. ./examples/helia-transfer-files
  3. Add the files and tests that make up the example
  4. Add the folder name to the project matrix of the examples job in this repository's .github/workflows/ci.yml
  5. Open a PR with your changes
  6. ⚠️ Maintainer required: Review the example
    1. Does it show the example clearly and concisely?
    2. Does it have tests?
    3. Has it been added to the project matrix of the examples job in .github/workflows/ci.yml?
  7. ⚠️ Maintainer required: Merge the example

Examples must

  • Live inside the /examples/ folder
  • Have tests, using the test-node-example or test-browser-example runners from the test-ipfs-example library
  • Implement a test script used to test the example, plus these scripts where they apply:
    • clean: used to clean all the unnecessary code (e.g.: files generated by bundlers and package managers)
    • build: used to build the example
    • start: used to start the example
  • The README.md must have (see an existing example such as helia-101):
    • Link to Codesandbox.com for one-click running demonstration
    • References for documentation/tutorials used to build the example
    • Optional: Screenshots, gifs, etc... under img/ folder

Testing against Helia changes

The ipfs/helia CI runs every folder in examples/ against the Helia code in each PR, so a Helia change that breaks an example shows up before release. New examples are picked up automatically; there is nothing to add to that repo.

Want to hack on IPFS?

The IPFS implementation in JavaScript needs your help! There are a few things you can do right now to help out:

Read the Code of Conduct and JavaScript Contributing Guidelines.

  • Check out existing issues The issue list has many that are marked as 'help wanted' or 'difficulty:easy' which make great starting points for development, many of which can be tackled with no prior IPFS knowledge
  • Look at the Helia Roadmap This are the high priority items being worked on right now
  • Perform code reviews More eyes will help a. speed the project along b. ensure quality, and c. reduce possible future bugs
  • Add tests. There can never be enough tests

About

Ready-to-run Helia examples for Node.js and the browser

Topics

Resources

Security policy

Stars

117 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors