{"id":43388240,"url":"https://github.com/seiyacooper/mraph.js","last_synced_at":"2026-02-02T12:01:33.838Z","repository":{"id":65577474,"uuid":"582683398","full_name":"SeiyaCooper/Mraph.js","owner":"SeiyaCooper","description":"✏️ Mraph.js is my poor rendering engine for graphing mathematical objects in a browser.","archived":false,"fork":false,"pushed_at":"2025-08-29T07:13:30.000Z","size":1331,"stargazers_count":44,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T15:15:01.655Z","etag":null,"topics":["canvas","canvas2d","graphics","javascript","mathematics","phisics","render","webgl"],"latest_commit_sha":null,"homepage":"https://seiyacooper.github.io/Mraph.js/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SeiyaCooper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2022-12-27T15:14:22.000Z","updated_at":"2025-09-20T12:35:42.000Z","dependencies_parsed_at":"2023-10-27T12:32:37.800Z","dependency_job_id":"1cfb4fee-ebca-4aa3-adaa-e709a5322b2d","html_url":"https://github.com/SeiyaCooper/Mraph.js","commit_stats":null,"previous_names":["seiyacooper/mraph.js"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SeiyaCooper/Mraph.js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeiyaCooper%2FMraph.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeiyaCooper%2FMraph.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeiyaCooper%2FMraph.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeiyaCooper%2FMraph.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SeiyaCooper","download_url":"https://codeload.github.com/SeiyaCooper/Mraph.js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SeiyaCooper%2FMraph.js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29012193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T10:37:29.253Z","status":"ssl_error","status_checked_at":"2026-02-02T10:37:28.644Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["canvas","canvas2d","graphics","javascript","mathematics","phisics","render","webgl"],"created_at":"2026-02-02T12:01:30.658Z","updated_at":"2026-02-02T12:01:33.825Z","avatar_url":"https://github.com/SeiyaCooper.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n    \u003cimage src='https://seiyacooper.github.io/Mraph.js/Mraph_logo.png' width=\"600px\" alt='logo'\u003e\u003c/image\u003e\n\u003c/div\u003e\n\n[![npm](https://img.shields.io/npm/v/mraph)](https://www.npmjs.com/package/mraph)\n[![GitHub](https://img.shields.io/github/license/SeiyaCooper/Mraph.js)](https://github.com/SeiyaCooper/Mraph.js/blob/main/LICENSE)\n[![last commit](https://img.shields.io/github/last-commit/SeiyaCooper/Mraph.js)](https://github.com/SeiyaCooper/Mraph.js/commits/main)\n\nMraph.js is my poor animation engine for drawing geometric shapes in a browser, inspired by [manim](https://github.com/3b1b/manim)   \n[Github](https://github.com/SeiyaCooper/Mraph.js) |\n[NPM](https://www.npmjs.com/package/mraph) |\n[Examples](https://seiyacooper.github.io/Mraph.js/gallery)\n\n# Usage\n\n### Install with npm:\n\n```shell\nnpm install --save mraph\n```\n\n### or use yarn:\n\n```shell\nyarn add mraph\n```\n\n### A short example:\n\nOnce you installed, try this example below.\n\n```js\nimport * as MRAPH from \"mraph\";\n\n// Creates a new layer\nconst layer = new MRAPH.Layer().appendTo(document.body);\n\n// Creates some points and sets their position\nconst pointsNum = 50;\nconst layersNum = 5;\nconst angleUnit = (Math.PI * 2) / pointsNum;\nfor (let j = 0; j \u003c layersNum; j++) {\n    for (let i = 1; i \u003c= pointsNum; i++) {\n        const point = new MRAPH.Point(Math.cos(angleUnit * i) * (3 + j * 2), Math.sin(angleUnit * i) * (3 + j * 2));\n        point.setColor(new MRAPH.Color(Math.random(), Math.random(), Math.random()));\n        layer.add(point);\n    }\n}\n\n// Sets an infinite event\n// This event will remain perpetually active\nlayer.timeline.addInfinite(() =\u003e {\n    layer.scene.children.forEach((point, i, arr) =\u003e {\n        point.a = point.center.mult((-1 * i) / arr.length);\n    });\n});\n\n// Starts playing animation\nlayer.enableOrbitControl().enableRotate = false;\nlayer.play();\n```\n\nInput this code in your preferred text editor.\nIf all proceeds as it should, you will observe a series of dots engaged in a, hmm..., rather peculiar dance.\n\n[See more (not such dances)](/Mraph.js/gallery)\n\n# Contribution\n\nFeel free to contribute to this repo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseiyacooper%2Fmraph.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseiyacooper%2Fmraph.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseiyacooper%2Fmraph.js/lists"}