
Description
This agent skill helps a coding agent add 2D physics to a web page with the Matter.js library. It first confirms the environment, such as plain HTML, React or a canvas-only page, and the rendering approach, choosing between the built-in Matter.Render for debugging and a custom renderer. It then provides a minimal setup with an Engine, a World, a Render and a Runner, and adds bodies to the scene. Mouse interaction and constraints are added only when the task asks for them. For single-page apps and other teardown scenarios, the skill also covers cleanup. The skill is aimed at developers who want physics-based interactions on a web page. It is delivered as instructions for a coding agent, so the agent writes the code and explains the setup in your project. It does not include a standalone app or a hosted demo.…
Highlights
- Minimal Engine, World, Render and Runner setup
- Adds bodies and optional mouse constraints
- Chooses debug or custom rendering
- Cleanup for single-page apps
Ratings & Reviews
No ratings yet
Be the first to rate matterjs.
People also visit
matterjs FAQ
What does the skill cover?
Engine and World setup, Render and Runner configuration, adding bodies, mouse constraints when requested, and cleanup for single-page apps or teardown.
Which environments does it handle?
Plain HTML, React and canvas-only pages. The skill checks which one you use before writing code.
How do I install it?
Run npx skills add https://github.com/mengto/skills --skill matterjs in your project.
What did the security audits show?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best matterjs alternatives?
Popular alternatives to matterjs include phaser, threejs-gameplay-systems and game-engine. See all matterjs alternatives










