If you talking about law then p5.js is under GNU GPL 2.1 Licence. It gives freedom to share and change the source code. So including p5.js is not an issue.
If you talking about law then p5.js is under GNU GPL 2.1 Licence. It gives freedom to share and change the source code. So including p5.js is not an issue.