{"id":23118538,"url":"https://github.com/simplyhexagonal/create-p5-project","last_synced_at":"2026-05-13T02:04:17.839Z","repository":{"id":248472627,"uuid":"828785083","full_name":"simplyhexagonal/create-p5-project","owner":"simplyhexagonal","description":"An npm / npx starter template for P5 projects using Typescript and Hot Reload preview","archived":false,"fork":false,"pushed_at":"2024-07-15T07:11:30.000Z","size":3052,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-04T12:34:03.147Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simplyhexagonal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-15T06:03:12.000Z","updated_at":"2025-02-04T01:26:37.000Z","dependencies_parsed_at":"2024-07-15T07:20:56.208Z","dependency_job_id":"2657db96-917c-4513-ae14-81a7591a62f2","html_url":"https://github.com/simplyhexagonal/create-p5-project","commit_stats":null,"previous_names":["simplyhexagonal/create-p5-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/simplyhexagonal/create-p5-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyhexagonal%2Fcreate-p5-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyhexagonal%2Fcreate-p5-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyhexagonal%2Fcreate-p5-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyhexagonal%2Fcreate-p5-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simplyhexagonal","download_url":"https://codeload.github.com/simplyhexagonal/create-p5-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simplyhexagonal%2Fcreate-p5-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32964445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T23:30:32.555Z","status":"online","status_checked_at":"2026-05-13T02:00:07.132Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-17T05:18:13.339Z","updated_at":"2026-05-13T02:04:17.825Z","avatar_url":"https://github.com/simplyhexagonal.png","language":"TypeScript","funding_links":["https://ko-fi.com/jeanlescure","https://www.patreon.com/jeanlescure"],"categories":[],"sub_categories":[],"readme":"# Create P5 Project\n\n## Introduction\n\nAn npm / npx starter template for P5 projects using Typescript and Hot Reload preview. This tool simplifies the process of setting up a p5.js project, allowing you to focus on creating fully parametric 2D drawings, 2D animations, and fully interactive vector-based experiences in the browser with ease.\n\n![Demo GIF](./assets/demo.gif)\n\n## Features\n\n- 🚀 **Easy Setup**: Initialize your P5 project with a single command.\n- 💻 **TypeScript Support**: Leverage the power of TypeScript for more robust code.\n- 🔁 **Hot Reload Preview**: Instantly view changes in your design as you code.\n- 📁 **Automated Structure and Dependency Management**: Automatically creates the necessary folder structure and installs dependencies.\n- 🎨 **Focus on Design**: Spend more time designing and less on setup.\n- 🛠️ **Integrated VSCode Experience**: Recommended extensions and launch configurations for a seamless development experience.\n- 📤 **SVG Export Option**: Export your designs SVG format.\n\n## Like this project? ❤\n\nPlease consider:\n\n- [Buying me a coffee](https://ko-fi.com/jeanlescure) ☕\n- Supporting me on [Patreon](https://www.patreon.com/jeanlescure) 🏆\n- Starring this repo on [Github](https://github.com/simplyhexagonal/create-p5-project) 🌟\n\n## Getting Started\n\n### Prerequisites\n\nEnsure you have Node.js installed on your system to use `npm` or `npx`.\n\n### Installation\n\nTo create a new P5 project, run the following command in your terminal:\n\n```bash\nnpm init p5-project \u003cyour-project-name\u003e\n```\n\nor\n\n```bash\nnpx create-p5-project \u003cyour-project-name\u003e\n```\n\nThis command will create a new directory with your project name, set up the folder structure, and install all the necessary dependencies.\n\n### Templates\n\nTo use a specific template, pass the `--template` argument when creating a new project. For example:\n\n```bash\nnpm init p5-project \u003cyour-project-name\u003e -- --template=screw-and-nut\n```\n\nTo list available templates you can run:\n\n```bash\nnpx create-p5-project --list-templates\n```\n\nThere are currently three templates available:\n\n- `default`: A blank canvas for whatever project you're working on.\n- `svg-export`: Contains a screw and nut for you to play with.\n- `sound`: Contains a screw and nut for you to play with.\n\nMore templates will be added soon, hopefully by contributors too!\n\n### VSCode Integration\n\n- **Recommended Extensions**: The generated `.vscode` directory contains recommendations for helpful extensions. Please review and install them to enhance your development experience.\n- **Launch Configuration**: Use the \"Launch P5\" configuration in the `Run and Debug` section of VSCode. This will open the `design.ts` file, run `npm run dev`, and open the preview browser. \n  - **Note**: The first time you run this, the preview browser may initially display a white screen. Please wait until the debug output indicates that it's safe to reload the simple browser panel.\n\n### Alternatively - Development in other IDEs\n\nIf you are **NOT** using VSCode, or if you'd rather run the dev environment manually, then, after setting up your project, navigate to your project directory and start the development server:\n\n```bash\ncd \u003cyour-project-name\u003e\nnpm run dev\n```\n\n### Preview and Export\n\n- The project uses Vite to provide a hot reload dev server to be able to preview changes to the design any time you save.\n- To export to SVG, you can set the `renderSvg` variable to `true` and serialize the SVG html element for download. For an example you can use the `svg-export` template.\n\n## Related Projects and Resources\n\n`create-p5-project` is built upon and inspired by the capabilities of `p5.js`. Here are some resources and related projects that can enhance your experience with `p5.js`:\n\n- **p5.js**: The core framework upon which this project is based. For more information and documentation, visit [P5's website](https://p5js.org/).\n\n- **p5.js Cheat Sheet**: A handy guide for quick reference to P5 syntax and features. Perfect for beginners and experienced users alike. Check out the [P5 Cheat Sheet by Andreas Metz](https://sqrlycode.com/p5-js-cheatsheet/).\n\n- **Using p5.js \u0026 React to fill a Canvas**: Dive into a practical example of integrating p5.js with React for creative coding in this informative talk by Monica Powell. Watch the [Using p5.js \u0026 React to fill a Canvas](https://www.youtube.com/watch?v=7dCoz56Pucw) video for insights and inspiration.\n\n- **Processing**: The Processing software is used by thousands of visual designers, artists, and architects to create their works. It is the parent project of p5.js. For more information and documentation, visit the [Processing website](https://processing.org/).\n\n## Contributing\n\nContributions are welcome! Feel free to submit pull requests or open issues to improve `create-p5-project`.\n\n## Contributors\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\n      \u003ca href=\"https://github.com/jeanlescure\"\u003e\n        \u003cimg\n          alt=\"jeanlescure\"\n          src=\"https://raw.githubusercontent.com/simplyhexagonal/create-p5-project/main/assets/contributors/jeanlescure.svg\" width=\"117\"\n        /\u003e\n      \u003c/a\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n## License\n\nThis project is licensed under the [Apache-2.0]([LICENSE](https://www.apache.org/licenses/LICENSE-2.0)).\n\nHappy Designing with `create-p5-project`!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplyhexagonal%2Fcreate-p5-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimplyhexagonal%2Fcreate-p5-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimplyhexagonal%2Fcreate-p5-project/lists"}