Can I self-host the p5 editor in the same computer as my browser?

Hi @proxor,

Welcome to the forum! :wink:

There’s a lot of questions! Here are my answers:

Are you talking about separate browser windows? Or “windows” within the web page itself? If you are talking about browser windows, I don’t think there’s a way to preview your sketch in full screen without any code editor and toolbar…

The p5 web editor was meant to be served from a web server therefore saving your sketches and assets on the “cloud” (using S3 and AWS I suppose). So you can’t open or save programs to your local computer (this is also limited by the browser and JavaScript API for security concerns). (see this for a desktop version)

Yes, see the GitHub repository: GitHub - processing/p5.js-web-editor: p5.js Web Editor, officially launched!
(it’s 82% of JavaScript and uses the React front-end UI framework)

Do you mean the server side code or assets stored in the server?

No, almost all the work is done in the client browser, the editor, p5js of course and assets and the code is stored server side. It serves static js / html / css but talks to the S3 storage and user account if any

See the contributor Deployment section. It should be better to install it with Docker (if you know it).

Is there a server shipped with the p5 download?

1 Like