# How to put github dependencyob p5.js

**URL:** <https://discourse.processing.org/t/how-to-put-github-dependencyob-p5-js/25915>\
**Category:** Development\
**Created:** [December 3, 2020, 3:19am UTC](https://discourse.processing.org/t/how-to-put-github-dependencyob-p5-js/25915 "2020-12-03T03:19:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jumbleview](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@jumbleview](https://discourse.processing.org/u/jumbleview)\
**Post date:** [December 3, 2020, 3:19am UTC](https://discourse.processing.org/t/how-to-put-github-dependencyob-p5-js/25915/1 "2020-12-03T03:19:01Z")

</div>

I am new to p5.js (my experience with JavaScript is very limited as well). I am going to create public guthub repository with sketch and I would like that anybody who clone it will have the ability to run it. That would be easy to achieve by putting p5.js into the repository, but that does not look nice. Can I describe in my project dependency on p5.js the way Go does it with mod file or Rust with cargo file.

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [December 3, 2020, 3:46am UTC](https://discourse.processing.org/t/how-to-put-github-dependencyob-p5-js/25915/2 "2020-12-03T03:46:46Z")

</div>

> [@jumbleview](#):
>
> … by putting p5.js into the repository, but that does not look nice.

Just have an “index.html” file like the 1 from the link below:

> <https://github.com/GoSubRoutine/Ball-in-the-Chamber/blob/master/p5js_global/index.html>

Then go to “Settings” & enable the “GitHub Pages” option there in order for the repo to become runnable like this:  
[GoSubRoutine.GitHub.io/Ball-in-the-Chamber/p5js\_global/](http://GoSubRoutine.GitHub.io/Ball-in-the-Chamber/p5js_global/)

---

<div class="post-metadata">

**Author:** ![jumbleview](https://avatars.discourse-cdn.com/v4/letter/j/b487fb/32.png) [@jumbleview](https://discourse.processing.org/u/jumbleview)\
**Post date:** [December 3, 2020, 8:11pm UTC](https://discourse.processing.org/t/how-to-put-github-dependencyob-p5-js/25915/3 "2020-12-03T20:11:15Z")

</div>

Thanks. It helped. Actually [https://p5js.org/get-started/](https://p5js.org/get-started/) describes it I just missed: **Using a hosted version of the p5.js library**
