{"id":15012656,"url":"https://github.com/microsoft/pxt-sample","last_synced_at":"2025-04-06T11:08:04.586Z","repository":{"id":6928205,"uuid":"53893602","full_name":"microsoft/pxt-sample","owner":"microsoft","description":"Sample target for PXT","archived":false,"fork":false,"pushed_at":"2023-03-18T09:57:59.000Z","size":29533,"stargazers_count":87,"open_issues_count":4,"forks_count":151,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-03-30T09:08:12.141Z","etag":null,"topics":["makecode","pxt"],"latest_commit_sha":null,"homepage":"https://microsoft.github.io/pxt-sample/","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/microsoft.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-14T21:35:49.000Z","updated_at":"2025-03-29T23:32:08.000Z","dependencies_parsed_at":"2024-06-21T20:24:25.715Z","dependency_job_id":"7cb3bfdf-0a98-4883-a3a3-1a99e2a52bd9","html_url":"https://github.com/microsoft/pxt-sample","commit_stats":null,"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/pxt-sample/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471518,"owners_count":20944158,"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":["makecode","pxt"],"created_at":"2024-09-24T19:42:59.161Z","updated_at":"2025-04-06T11:08:04.564Z","avatar_url":"https://github.com/microsoft.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample target for a Microsoft MakeCode Editor\n\nThis repo contains a sample editor built with [Microsoft MakeCode (PXT)](https://github.com/Microsoft/pxt). The editor is hosted on the GitHub pages at [http://microsoft.github.io/pxt-sample/](http://microsoft.github.io/pxt-sample/)\n\n[![Build Status](https://travis-ci.org/Microsoft/pxt-sample.svg?branch=master)](https://travis-ci.org/Microsoft/pxt-sample)\n[![Community Discord](https://img.shields.io/discord/448979533891371018.svg)](https://aka.ms/makecodecommunity)\n\nIf you'd like to start your own editor, fork this repo and fix all the TODOs.\n\n## TODOs\n\n- [ ] Fork repo and setup local server (see below)\n- [ ] Update metadata in ``pxtarget.json``. Change the id, title, name, etc... to your taste.\n- [ ] Update the JavaScript runtime in ``sim/simulator.ts``. If needed add additional JS library under ``sim/public/**``\nand edit ``sim/public/simulator.html`` with additional ``script`` tags.\n- [ ] Update the APIs in ``sim/api.ts`` to use your runtime.\n- [ ] Test your editor in the local server\n- [ ] run ``pgk staticpkg --gh --bump`` to upload a static version to GitHub pages.\n\n## Running locally\n\nThese instructions allow to run locally to modify the sample.\n\n### Setup\n\nThe following commands are a 1-time setup after synching the repo on your machine.\n\n* install [node.js](https://nodejs.org/en/)\n\n* install the PXT command line\n```\nnpm install -g pxt\n```\n* install the dependencies\n```\nnpm install\n```\n\n### Running the local server\n\nAfter you're done, simple run this command to open a local web server:\n```\npxt serve\n```\n\nAfter making a change in the source, refresh the page in the browser.\n\n## Updating the tools\n\nIf you would like to pick up the latest PXT build, simply run\n```\npxt update\n```\n\nMore instructions at https://github.com/Microsoft/pxt#running-a-target-from-localhost \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fpxt-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fpxt-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fpxt-sample/lists"}