Skip to content

mkontogiannis/p5.js-next.js

Repository files navigation

A p5.js Next.js/React boilerplate w/ Typescript

This is a simple boilerplate for writing p5.js sketches in Next.js/React with typescript.

It uses the awesome @p5-wrapper/react & @p5-wrapper/next libraries for rendering the Sketch as a React component and next-seo for super easy SEO configuration.

DEMO on Vercel (https://p5-js-next-js.vercel.app/)

Usage

Clone the repository without the whole history:
git clone --depth 1 git@github.com:mkontogiannis/p5.js-next.js.git

The application has been created using Create Next App and uses its standard development / deployment process.

For SEO you will have to update the seo.json file accordingly

Resources

For a react/typescript setup please have a look here -> p5.js-react-vite