# How to add library from github to openprocessing p5js sketch?

**URL:** <https://discourse.processing.org/t/how-to-add-library-from-github-to-openprocessing-p5js-sketch/33468>\
**Category:** Libraries\
**Created:** [November 12, 2021, 10:25am UTC](https://discourse.processing.org/t/how-to-add-library-from-github-to-openprocessing-p5js-sketch/33468 "2021-11-12T10:25:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MoonAlien822](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Post date:** [November 12, 2021, 10:25am UTC](https://discourse.processing.org/t/how-to-add-library-from-github-to-openprocessing-p5js-sketch/33468/1 "2021-11-12T10:25:23Z")

</div>

I want to add [this](https://github.com/Spacebrew/p5.spacebrew.js) library to this sketch but I cant figure out how to do it.  
how to I do this?  
https://openprocessing.org/sketch/1335702/embed/?

---

<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:** [November 12, 2021, 1:07pm UTC](https://discourse.processing.org/t/how-to-add-library-from-github-to-openprocessing-p5js-sketch/33468/2 "2021-11-12T13:07:37Z")

</div>

There’s an icon w/ 3 horizontal lines at the top right side on the same row as the “mySketch” tab which reveals a panel upon click.

At the bottom of that panel there’s a section called “Libraries”.

And as its last option we have “Add Custom Library”, where we can paste a link for any JS library.

Here’s a CDN link for the “p5.spacebrew.js” library you’re asking for:  
[https://cdn.JsDelivr.net/gh/Spacebrew/p5.spacebrew.js/library/p5.spacebrew.min.js](https://cdn.JsDelivr.net/gh/Spacebrew/p5.spacebrew.js/library/p5.spacebrew.min.js)

---

<div class="post-metadata">

**Author:** ![MoonAlien822](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Post date:** [November 12, 2021, 1:37pm UTC](https://discourse.processing.org/t/how-to-add-library-from-github-to-openprocessing-p5js-sketch/33468/3 "2021-11-12T13:37:06Z")

</div>

could you help me getting the library to work?

---

<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:** [November 12, 2021, 1:40pm UTC](https://discourse.processing.org/t/how-to-add-library-from-github-to-openprocessing-p5js-sketch/33468/4 "2021-11-12T13:40:19Z")

</div>

I’ve never heard about that library so I can’t help you w/ that.

But if you have a code problem in certain parts we can try to solve them.

---

<div class="post-metadata">

**Author:** ![MoonAlien822](https://avatars.discourse-cdn.com/v4/letter/m/65b543/32.png) [@MoonAlien822](https://discourse.processing.org/u/MoonAlien822)\
**Post date:** [November 12, 2021, 3:42pm UTC](https://discourse.processing.org/t/how-to-add-library-from-github-to-openprocessing-p5js-sketch/33468/5 "2021-11-12T15:42:00Z")

</div>

the biggest problem i’m having is trying to set up a server [Getting Started — Spacebrew](http://docs.spacebrew.cc/gettingstarted)
