Have you tried the Matter Javascript implementation on Microvium? https://github.com/project-chip/matter.js/