{"id":40859391,"url":"https://github.com/microhod/ball-simulator","last_synced_at":"2026-01-22T00:06:37.961Z","repository":{"id":41585446,"uuid":"320892083","full_name":"microhod/ball-simulator","owner":"microhod","description":null,"archived":false,"fork":false,"pushed_at":"2024-03-16T09:24:41.000Z","size":31401,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-03-16T11:05:03.867Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microhod.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}},"created_at":"2020-12-12T18:01:06.000Z","updated_at":"2023-03-07T08:26:23.000Z","dependencies_parsed_at":"2024-03-16T10:54:57.569Z","dependency_job_id":null,"html_url":"https://github.com/microhod/ball-simulator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/microhod/ball-simulator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microhod%2Fball-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microhod%2Fball-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microhod%2Fball-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microhod%2Fball-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microhod","download_url":"https://codeload.github.com/microhod/ball-simulator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microhod%2Fball-simulator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28647513,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T21:29:11.980Z","status":"ssl_error","status_checked_at":"2026-01-21T21:24:31.872Z","response_time":86,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":[],"created_at":"2026-01-22T00:06:37.300Z","updated_at":"2026-01-22T00:06:37.953Z","avatar_url":"https://github.com/microhod.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple 'Balls in a Box' Simulator\n\nSimple simulation of some coloured balls in a box using a [canvas](https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API).\n\n## Run\n\n1. [Install NodeJS](https://nodejs.org/) following the instructions on their website.\n2. Clone this repository\n3. Run `npm install` in this repository\n4. Run `npm start` and it should be running at `localhost:8080`\n\n\u003e Note: you can also debug in vscode. Use the `live server` extension to run the server and then you can debug in vscode using chrome (check they're pointing to the same localhost port).\n\n## Usage\n\n* Gravity: how strong the pull to the bottom of the box is\n* Friction: how much friction the sides of the box have\n* Bouce: how bouncy the balls are\n* Balls: number of balls\n\nThe 'New' button will create a new simulation.\n\n\u003e Note: all apart from 'Balls' will change the current animation, to change number of balls, you also have to click 'new'\n\n![demo](img/demo.gif)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrohod%2Fball-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrohod%2Fball-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrohod%2Fball-simulator/lists"}