{"id":21070706,"url":"https://github.com/microbit-foundation/makecode-microbit-ml-simulator","last_synced_at":"2025-05-16T05:31:01.439Z","repository":{"id":252916646,"uuid":"841549775","full_name":"microbit-foundation/makecode-microbit-ml-simulator","owner":"microbit-foundation","description":"Unused","archived":true,"fork":false,"pushed_at":"2024-10-07T18:32:43.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T02:46:54.172Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/microbit-foundation.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}},"created_at":"2024-08-12T16:18:56.000Z","updated_at":"2024-10-15T09:04:00.000Z","dependencies_parsed_at":"2024-11-19T18:48:35.145Z","dependency_job_id":"e4d684cf-a476-45b5-bbe7-c87a05adc8d4","html_url":"https://github.com/microbit-foundation/makecode-microbit-ml-simulator","commit_stats":null,"previous_names":["microbit-foundation/makecode-microbit-ml-simulator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmakecode-microbit-ml-simulator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmakecode-microbit-ml-simulator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmakecode-microbit-ml-simulator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microbit-foundation%2Fmakecode-microbit-ml-simulator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microbit-foundation","download_url":"https://codeload.github.com/microbit-foundation/makecode-microbit-ml-simulator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254473849,"owners_count":22077186,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-11-19T18:47:53.542Z","updated_at":"2025-05-16T05:30:56.430Z","avatar_url":"https://github.com/microbit-foundation.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# micro:bit Machine Learning MakeCode Simulator\n\nThe simulator extension for the micro:bit Machine Learning MakeCode extension.\n\nThis is responsible for the user interface that appears below the micro:bit board in the MakeCode simulator.\n\nBootstrapped with Vite, this app is a minimal implementation which essentially consists of a select element to allow users to simulate ML events using the iframe message protocol supported by MakeCode.\n\n## Building and running the simulator\n\n1. Ensure you have a working [Node.js environment](https://nodejs.org/en/download/). We recommend using the LTS version of Node and NPM.\n2. Install the dependencies by running `npm install` on the command line in the checkout folder.\n\n### `npm run dev`\n\nRuns the app in the development mode.\n\nOpen [http://localhost:3000](http://localhost:3000) to view it in the browser.\n\nThe page will reload if you make edits.\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.\n\n## Translations\n\nWe manage translations via Crowdin.\n\nWe use react-intl from [FormatJS](https://formatjs.io/) to manage user interface strings. These are stored in this repository.\n\nIn development, add strings to `lang/ui.en.json` and run `npm run i18n:compile` to update the strings used by the app.\n\n#### Incorporting changes from Crowdin\n\nUse [update-translations.sh](../bin/update-translations.sh).\n\nBuild and download the Crowdin zip and unzip it to a temporary location. Note the zip itself doesn't contain a top-level directory, so on Mac/Linux use e.g. `unzip -d ~/tmp/trans microbit-org.zip`. Run the script passing the directory containing the unzipped translations.\n\nThe script will update the UI strings.\n\n#### Updating files in Crowdin\n\nThe UI files are updated manually. Please download the existing files and diff locally to ensure the changes are as expected.\n\n### Adding a new language\n\nThis process assumes the language is already in Crowdin and has at least some translations.\n\nSteps:\n\n1. Add the language to the update script.\n2. Update `supportedLanguages` in [TranslationProvider.tsx](../src/messages/TranslationProvider.tsx).\n\n## Deployments\n\nThe editor is deployed by [GitHub actions](./.github/workflows/build.yml).\n\nThe `main` branch is deployed to https://microbit-foundation.github.io/makecode-microbit-ml-simulator/ on each push.\n\n## License\n\nThis software is under the MIT open source license.\n\n[SPDX-License-Identifier: MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobit-foundation%2Fmakecode-microbit-ml-simulator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrobit-foundation%2Fmakecode-microbit-ml-simulator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrobit-foundation%2Fmakecode-microbit-ml-simulator/lists"}