# Is there a way to running my P5.js code locally without a webserver?

**URL:** <https://discourse.processing.org/t/is-there-a-way-to-running-my-p5-js-code-locally-without-a-webserver/25284>\
**Category:** Beginners\
**Created:** [November 8, 2020, 5:02pm UTC](https://discourse.processing.org/t/is-there-a-way-to-running-my-p5-js-code-locally-without-a-webserver/25284 "2020-11-08T17:02:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GabrielVinicios](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gabrielvinicios/32/11050_2.png) [@GabrielVinicios](https://discourse.processing.org/u/GabrielVinicios)\
**Post date:** [November 8, 2020, 5:02pm UTC](https://discourse.processing.org/t/is-there-a-way-to-running-my-p5-js-code-locally-without-a-webserver/25284/1 "2020-11-08T17:02:54Z")

</div>

Hi!  
I am developing some educational games in P5. Soon, I will bring them to you to see.

Is there a way to running my P5.js code locally, without a webserver?  
I tought putting all the libraries (p5.js) and all my js files into the index.html. Would it work?

Is there another thing I can do to achieve that?

Thanks!

---

<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 8, 2020, 5:07pm UTC](https://discourse.processing.org/t/is-there-a-way-to-running-my-p5-js-code-locally-without-a-webserver/25284/2 "2020-11-08T17:07:27Z")

</div>

> [@GabrielVinicios](#):
>
> Is there a way to running my P5.js code locally, without a webserver?

> [@Maximum size of a method in Processing](https://discourse.processing.org/t/maximum-size-of-a-method-in-processing/17136/29):
>
> Another workaround: [Chrome-allow-file-access-from-file.com](http://Chrome-allow-file-access-from-file.com) A more complete solution: More solutions: [GitHub.com/processing/p5.js/wiki/Local-server](http://GitHub.com/processing/p5.js/wiki/Local-server)
