{"id":50798309,"url":"https://github.com/maxschmeling/openmotor-web","last_synced_at":"2026-06-12T16:34:33.994Z","repository":{"id":355901168,"uuid":"1230015847","full_name":"maxschmeling/openmotor-web","owner":"maxschmeling","description":"A port of reilleya/openMotor to the web.","archived":false,"fork":false,"pushed_at":"2026-05-05T20:10:20.000Z","size":111,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-05T20:17:52.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/maxschmeling.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-05T15:41:09.000Z","updated_at":"2026-05-05T20:10:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/maxschmeling/openmotor-web","commit_stats":null,"previous_names":["maxschmeling/openmotor-web"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/maxschmeling/openmotor-web","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxschmeling%2Fopenmotor-web","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxschmeling%2Fopenmotor-web/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxschmeling%2Fopenmotor-web/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxschmeling%2Fopenmotor-web/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxschmeling","download_url":"https://codeload.github.com/maxschmeling/openmotor-web/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxschmeling%2Fopenmotor-web/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34253937,"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-12T02:00:06.859Z","response_time":109,"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":"2026-06-12T16:34:28.609Z","updated_at":"2026-06-12T16:34:33.989Z","avatar_url":"https://github.com/maxschmeling.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# openmotor-web\n\nPyodide spike for running openMotor simulation code entirely in the browser.\n\n## Goal\n\nProve that we can reuse the existing Python simulation core from `reilleya/openMotor` in a static web app with no backend.\n\n## Current status\n\n### Working\n- Browser-only app via Vite\n- Pyodide loads in-browser\n- Reused `motorlib` and `mathlib` Python code vendored from openMotor\n- `numpy` and `scipy` load in Pyodide\n- A real BATES motor simulation runs in-browser and returns results\n- A browser fallback now lets FMM-style grains compute regression-derived geometry values without `scikit-fmm`\n\n### Important caveat\nThe current FMM fallback is **not equivalent to `scikit-fmm`**.\n\nIt uses a Euclidean distance transform (`scipy.ndimage.distance_transform_edt`) over the generated grain mask as a browser-compatible approximation for the regression map.\n\nThat means:\n- it is good enough for viability testing\n- it may be good enough for a reduced browser MVP\n- it is **not yet validated for parity** with desktop openMotor\n- it should not be presented as scientifically equivalent without comparison work\n\n### Not working yet\n- `scikit-fmm` is still not available in the current Pyodide environment\n- `CustomGrain` still depends on `scikit-image`, which is not currently loaded in the spike\n- full parity against desktop openMotor has not been measured\n- UI work is intentionally minimal\n\n## Why this matters\n\nThis proves the Pyodide path is viable for a meaningful subset of the simulation engine, and that the hardest dependency (`scikit-fmm`) can at least be approximated in-browser well enough to keep exploring.\n\n## Dev\n\n```bash\nnpm install\nnpm run dev\n```\n\nThen open the local app and click the smoke test button.\n\n## Notes\n\nThis repo intentionally focuses on the risky simulation-runtime question first, before investing in real UI work.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxschmeling%2Fopenmotor-web","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxschmeling%2Fopenmotor-web","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxschmeling%2Fopenmotor-web/lists"}