# How to add libraries to p5 Web editor?

**URL:** https://discourse.processing.org/t/how-to-add-libraries-to-p5-web-editor/11769
**Category:** Libraries
**Created:** [June 2, 2019, 7:45am UTC](https://discourse.processing.org/t/how-to-add-libraries-to-p5-web-editor/11769 "2019-06-02T07:45:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![TurboFanny](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@TurboFanny](https://discourse.processing.org/u/TurboFanny)
#### Post date: [June 2, 2019, 7:45am UTC](https://discourse.processing.org/t/how-to-add-libraries-to-p5-web-editor/11769/1 "2019-06-02T07:45:14Z")

</div>

I am new to using p5 and am struggling to find out how to add libraries to the web editor.

🙃🙃

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [June 2, 2019, 9:17am UTC](https://discourse.processing.org/t/how-to-add-libraries-to-p5-web-editor/11769/2 "2019-06-02T09:17:18Z")

</div>

basically for P5.js you use HTML, the  
index.html file  
to link to libs.  
so you start with the defaults:

```auto
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/p5.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/addons/p5.dom.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.8.0/addons/p5.sound.min.js"></script>

```

( copy from the [https://editor.p5js.org/](https://editor.p5js.org/) for a new projects index.html )

* * *

[https://p5js.org/libraries/](https://p5js.org/libraries/)  
add there are contributed libraries  
you can download and link ( see also each example there )  
or just link like

```auto
<script src="https://cdn.jsdelivr.net/gh/processing/p5.accessibility@0.2.0/dist/p5.accessibility.js"></script>

```

* * *

so as you see there ( at p5.jds) are the 3 main libs loaded by default

- p5
- dom
- sound

already, what is lots to play with,  
and the other libs documented there can be added also.

so my question is, why you not started with  
“i want to do this or that”  
if you already know the library what could help you, to do that,  
then why you not named it  
? kind of confusing?
