{"id":16397662,"url":"https://github.com/safrmo/vue-matter","last_synced_at":"2026-06-19T15:02:26.737Z","repository":{"id":77196246,"uuid":"281104465","full_name":"SaFrMo/vue-matter","owner":"SaFrMo","description":"Vue matter-js mixin","archived":false,"fork":false,"pushed_at":"2020-07-27T21:33:14.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-14T15:30:30.827Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/SaFrMo.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":"2020-07-20T12:01:17.000Z","updated_at":"2021-03-30T11:57:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8798144-92fa-4df5-8327-c712b1da78dd","html_url":"https://github.com/SaFrMo/vue-matter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SaFrMo/vue-matter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaFrMo%2Fvue-matter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaFrMo%2Fvue-matter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaFrMo%2Fvue-matter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaFrMo%2Fvue-matter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaFrMo","download_url":"https://codeload.github.com/SaFrMo/vue-matter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaFrMo%2Fvue-matter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34536283,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-19T02:00:06.005Z","response_time":61,"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-10-11T05:10:40.572Z","updated_at":"2026-06-19T15:02:26.718Z","avatar_url":"https://github.com/SaFrMo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Docs in progress**\n\n**Nuxt**: Copy and paste the contents of `src` to `/mixins`. Then:\n\n```html\n\u003cscript\u003e\n    import matter from '~/mixins/matter'\n\n    export default {\n        mixins: [matter],\n        mounted() {\n            // create a matter world and add walls to it\n            this.matterInit()\n            this.matterWalls()\n        },\n    }\n\u003c/script\u003e\n```\n\n### Docs\n\n```html\n\u003cscript\u003e\n    import matter from '~/mixins/matter'\n\n    export default {\n        mixins: [matter],\n        mounted() {\n            // default options shown throughout\n\n            // create a simple matter scene\n            this.matterInit({\n                // whether or not to clear the current scene, if any\n                clear: true,\n            })\n\n            // add walls around the scene. returns array of wall bodies\n            this.matterWalls({\n                // wall padding, in px\n                padding: 20,\n                // target world (null == world created in `matterInit`)\n                world: null,\n                // target canvas (null == canvas created in `matterInit`)\n                canvas: null,\n            })\n\n            // create your bodies - for example:\n            const body = Bodies.rectangle(\n                // width and height are computed props that return matterInit's created canvas's width and height\n                this.width / 2,\n                this.height / 2,\n                50,\n                50\n            )\n        },\n    }\n\u003c/script\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafrmo%2Fvue-matter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsafrmo%2Fvue-matter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsafrmo%2Fvue-matter/lists"}