# Where can I find the p5.js library folder for basic sketches to download?

**URL:** <https://discourse.processing.org/t/where-can-i-find-the-p5-js-library-folder-for-basic-sketches-to-download/25239>\
**Category:** Beginners\
**Created:** [November 6, 2020, 10:48am UTC](https://discourse.processing.org/t/where-can-i-find-the-p5-js-library-folder-for-basic-sketches-to-download/25239 "2020-11-06T10:48:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anna\_rose](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@anna\_rose](https://discourse.processing.org/u/anna_rose)\
**Post date:** [November 6, 2020, 10:48am UTC](https://discourse.processing.org/t/where-can-i-find-the-p5-js-library-folder-for-basic-sketches-to-download/25239/1 "2020-11-06T10:48:15Z")

</div>

Hi,

I was wondering if someone could help me because whenever I download p5.js complete, the example folder doesn’t include the library. This means that when I edit the text in Brackets(my editor) it doesn’t have any definitons.

Thanks  
Anna

---

<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 6, 2020, 3:38pm UTC](https://discourse.processing.org/t/where-can-i-find-the-p5-js-library-folder-for-basic-sketches-to-download/25239/2 "2020-11-06T15:38:46Z")

</div>

> [@anna\_rose](#):
>
> , the example folder doesn’t include the library.

> [@CDN for 0.10.2?](https://discourse.processing.org/t/cdn-for-0-10-2/14804/2):
>
> Use the “index.html” minimal template file from this sketch below instead: bulb index.html: \<script defer src=https://Unpkg.com/p5\>\</script\> \<script defer src=sketch.js\>\</script\> Other alternative CDNs: file_cabinet[Unpkg.com/p5/](http://Unpkg.com/p5/)[cdn.JsDelivr.net/npm/p5/](http://cdn.JsDelivr.net/npm/p5/) As a last recourse, we can grab “p5.min.js” directly from their site: shushing_face[p5js.org/assets/js/p5.min.js](http://p5js.org/assets/js/p5.min.js)

> [@Sketch is displayed twice inside my index.html page](https://discourse.processing.org/t/sketch-is-displayed-twice-inside-my-index-html-page/15335/14):
>
> However, [https://Unpkg.com/p5](https://Unpkg.com/p5) would grab the full version, which is useful only when we’re in the debugging phase. bug For deploying, [https://cdn.JsDelivr.net/npm/p5](https://cdn.JsDelivr.net/npm/p5) is a much better fit, b/c it grabs the minified version: cowboy_hat_face \<script defer src=https://cdn.JsDelivr.net/npm/p5\>\</script\> \<!--\<script defer src=https://Unpkg.com/p5/lib/addons/p5.sound.min.js\>\</script\>--\> \<script defer src=sketch.js\>\</script\>

> [@Help! Why I cannot use the P5JS](https://discourse.processing.org/t/help-why-i-cannot-use-the-p5js/18067/2):
>
> For an absolute beginner, my advice is to start on some p5js online editor, such as this 1: man_student[OpenProcessing.org/sketch/create](http://OpenProcessing.org/sketch/create) Some sketches I’ve got there btW: grinning By using such specialized p5js online resources we don’t need to make our own “index.html” file. wink When you decide it’s time to learn how to code your own “index.html” file, you can use more generic JS online editors, such as these 2 below: sunglasses You can also take a look at my sketches I…

---

<div class="post-metadata">

**Author:** ![anna\_rose](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@anna\_rose](https://discourse.processing.org/u/anna_rose)\
**Post date:** [November 7, 2020, 9:10am UTC](https://discourse.processing.org/t/where-can-i-find-the-p5-js-library-folder-for-basic-sketches-to-download/25239/3 "2020-11-07T09:10:25Z")

</div>

That’s really helpful thank you! I’ve already learnt with the online editor so wanted to take it into my own site so I think “index.html” minimal template is the best option. Thanks again! 🙂 😁
