{"id":27811178,"url":"https://github.com/microsoft/pxt-calliope","last_synced_at":"2025-05-01T11:58:54.323Z","repository":{"id":39794073,"uuid":"69291649","full_name":"microsoft/pxt-calliope","owner":"microsoft","description":"A Microsoft MakeCode editor for the Calliope Mini board","archived":false,"fork":false,"pushed_at":"2025-04-30T22:58:53.000Z","size":152765,"stargazers_count":42,"open_issues_count":35,"forks_count":24,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-05-01T11:58:48.664Z","etag":null,"topics":["makecode","microbit"],"latest_commit_sha":null,"homepage":"https://makecode.calliope.cc","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/microsoft.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","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-09-26T20:49:53.000Z","updated_at":"2025-04-30T22:57:27.000Z","dependencies_parsed_at":"2023-11-08T23:26:05.993Z","dependency_job_id":"f4982a32-e913-4aa3-97eb-0000ca9e5d8a","html_url":"https://github.com/microsoft/pxt-calliope","commit_stats":{"total_commits":2688,"total_committers":36,"mean_commits":74.66666666666667,"dds":"0.45498511904761907","last_synced_commit":"b0af4b54b2a8418fd7c9b364ece3fe2aeb70d5c1"},"previous_names":[],"tags_count":744,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-calliope","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-calliope/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-calliope/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/microsoft%2Fpxt-calliope/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/microsoft","download_url":"https://codeload.github.com/microsoft/pxt-calliope/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251871468,"owners_count":21657465,"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","microbit"],"created_at":"2025-05-01T11:58:53.565Z","updated_at":"2025-05-01T11:58:54.313Z","avatar_url":"https://github.com/microsoft.png","language":"TypeScript","readme":"# calliope target for PXT\n\n\n\npxt-calliope is a [Microsoft Programming Experience Toolkit (PXT)](https://github.com/Microsoft/pxt) target that allows you to program a [Calliope mini](https://calliope.cc/en). \n\n\n* [Try it live](https://makecode.calliope.cc/)\n\n## Issue tracking\n\nPlease add an issue if you discover an (unreported) bug.\n\n## Developing new extensions\n\nAuthoring and testing of new extensions can be done directly from the web editor. See [our documentation](https://makecode.com/blog/github-packages) on how to get started. If you want to run the editor locally, keep reading.\n\n## Local server setup\n\nThe local server lets you to run the editor and serve the documentation from your own computer. It is meant for a single developer used and not designed to serve the editor to a large amount of users.\n\n1. Install [Node.js](https://nodejs.org/) 8.9.4 or higher.\n2. Clone this repository.\n```\ngit clone https://github.com/microsoft/pxt-calliope\ncd pxt-calliope\n```\n3. Install the PXT command line (add `sudo` for Mac/Linux shells).\n```\nnpm install -g pxt\n```\n4. Install the pxt-calliope dependencies.\n```\nnpm install\n```\n\nGo to the **Running** section.\n\n### Developer Setup\n\nThis is the typical setup used by the MakeCode team to work on the microbit.\n\n1. Install [Node.js](https://nodejs.org/) 8.9.4 or higher.\n2. Install [Docker](https://www.docker.com/get-started) if you plan to build ``.cpp`` files.\n3. Clone the pxt repository.\n```\ngit clone https://github.com/microsoft/pxt\ncd pxt\n```\n4. Install the dependencies of pxt and build it\n```\nnpm install\nnpm run build\ncd ..\n```\n5. Clone the pxt-common-packages repository\n```\ngit clone https://github.com/microsoft/pxt-common-packages\ncd pxt-common-packages\nnpm install\ncd ..\n```\n6. Link pxt-common-packages to pxt\n```\nnpm link ../pxt\ncd ..\n```\n7. Clone this repository.\n```\ngit clone https://github.com/microsoft/pxt-calliope\ncd pxt-calliope\n```\n8. Install the PXT command line (add `sudo` for Mac/Linux shells).\n```\nnpm install -g pxt\n```\n9. Install the pxt-calliope dependencies.\n```\nnpm install\n```\n10. Link pxt-calliope back to base pxt repo (add `sudo` for Mac/Linux shells). \nThis step is only required if you intend to make changes to pxt and/or \npxt-common-packages repos. If all you want is serve a local Makecode, you can skip\nthis step.\n```\nnpm link ../pxt ../pxt-common-packages\n```\nNote the above command assumes the folder structure of   \n```\n       makecode\n          |\n  ----------------------------------\n  |       |                        |\n pxt      pxt-common-packages  pxt-calliope\n ```\n\n### Running\n\nRun this command from inside pxt-calliope to open a local web server\n```\npxt serve\n```\nIf the local server opens in the wrong browser, make sure to copy the URL containing the local token. \nOtherwise, the editor will not be able to load the projects.\n\nIf you need to modify the `.cpp` files (and have installed yotta), enable yotta compilation using the `--localbuild` flag:\n```\npxt serve --local\n```\n\nIf you want to speed up the build, you can use the ``rebundle`` option, which skips building and simply refreshes the target information\n```\npxt serve --rebundle\n```\n\n### Cleaning\n\nSometimes, your built folder might be in a bad state, clean it and try again.\n```\npxt clean\n```\n\n### Updates\n\nMake sure to pull changes from all repos regularly. More instructions are at https://github.com/Microsoft/pxt#running-a-target-from-localhost\n\n## Update playlists in markdown\n\nGet a Google API key and store it in the ``GOOGLE_API_KEY`` environment variables (turn on data from the app).\n\n```\npxt downloadplaylists\n```\n\n## Repos \n\nThe pxt-calliope target depends on several other repos. The main ones are:\n- https://github.com/Microsoft/pxt, the PXT framework\n- https://github.com/Microsoft/pxt-common-packages, common APIs accross various MakeCode editors\n- https://github.com/lancaster-university/microbit, basic wrapper around the DAL\n- https://github.com/lancaster-university/microbit-dal\n\n## History\n\nSee the [MakeCode blog](https://makecode.com/blog).\n\n## Code of Conduct\n\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\n\n## Trademarks\n\nMICROSOFT, the Microsoft Logo, and MAKECODE are registered trademarks of Microsoft Corporation. They can only be used for the purposes described in and in accordance with Microsoft’s Trademark and Brand guidelines published at https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general.aspx. If the use is not covered in Microsoft’s published guidelines or you are not sure, please consult your legal counsel or MakeCode team (makecode@microsoft.com).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fpxt-calliope","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmicrosoft%2Fpxt-calliope","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmicrosoft%2Fpxt-calliope/lists"}