{"id":48375663,"url":"https://github.com/pyymenta/spacecraft-cli","last_synced_at":"2026-04-05T18:14:54.967Z","repository":{"id":38425965,"uuid":"300743878","full_name":"pyymenta/spacecraft-cli","owner":"pyymenta","description":"Let's build a rocket together! Our rocket, Spacecraft, is a simple CLI Project made with typescript","archived":false,"fork":false,"pushed_at":"2023-03-05T14:07:06.000Z","size":4126,"stargazers_count":10,"open_issues_count":15,"forks_count":28,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-18T06:24:03.826Z","etag":null,"topics":["beginner-friendly","challenge","cli","help-wanted","javascript","spacecraft","typescript"],"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/pyymenta.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}},"created_at":"2020-10-02T21:51:37.000Z","updated_at":"2025-03-17T13:43:49.000Z","dependencies_parsed_at":"2023-02-06T05:47:27.581Z","dependency_job_id":null,"html_url":"https://github.com/pyymenta/spacecraft-cli","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/pyymenta/spacecraft-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyymenta%2Fspacecraft-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyymenta%2Fspacecraft-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyymenta%2Fspacecraft-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyymenta%2Fspacecraft-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyymenta","download_url":"https://codeload.github.com/pyymenta/spacecraft-cli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyymenta%2Fspacecraft-cli/sbom","scorecard":{"id":752540,"data":{"date":"2025-08-11","repo":{"name":"github.com/pyymenta/spacecraft-cli","commit":"0eca4dd6bc4852b9684e7921fca1d7ff843cccf7"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/build.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/9 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:69: update your workflow using https://app.stepsecurity.io/secureworkflow/pyymenta/spacecraft-cli/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/pyymenta/spacecraft-cli/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/pyymenta/spacecraft-cli/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/pyymenta/spacecraft-cli/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/pyymenta/spacecraft-cli/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/pyymenta/spacecraft-cli/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/pyymenta/spacecraft-cli/build.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/build.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/pyymenta/spacecraft-cli/build.yml/main?enable=pin","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   3 out of   3 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"25 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx","Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch","Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T20:45:15.462Z","repository_id":38425965,"created_at":"2025-08-22T20:45:15.463Z","updated_at":"2025-08-22T20:45:15.463Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31444986,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-05T15:22:31.103Z","status":"ssl_error","status_checked_at":"2026-04-05T15:22:00.205Z","response_time":75,"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":["beginner-friendly","challenge","cli","help-wanted","javascript","spacecraft","typescript"],"created_at":"2026-04-05T18:14:54.318Z","updated_at":"2026-04-05T18:14:54.956Z","avatar_url":"https://github.com/pyymenta.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spacecraft-CLI\n\n[![Spacecraft CI](https://github.com/pyymenta/spacecraft-cli/actions/workflows/build.yml/badge.svg)](https://github.com/pyymenta/spacecraft-cli/actions/workflows/build.yml)\n[![License](https://img.shields.io/github/license/pyymenta/spacecraft-cli)](https://github.com/pyymenta/spacecraft-cli/blob/master/LICENSE)\n[![GitHub contributors](https://img.shields.io/github/contributors/pyymenta/spacecraft-cli)](https://github.com/pyymenta/spacecraft-cli/graphs/contributors)\n[![npm version](https://img.shields.io/npm/v/spacecraft-app-cli.svg?style=flat)](https://www.npmjs.com/package/spacecraft-app-cli)\n\nA simple CLI to solve the Spacecraft Problem, made with [TypeScript](https://www.typescriptlang.org/)\n\nLet's build a rocket together!\n\n![Image of a rocket](./images/rocket.jpg)\n\n## The Problem\n\nSay, the Canadian Space Agency is building an unmanned spacecraft that’ll go to the moon.\n\n![To the moon](https://i.imgur.com/15vvnfN.png)\n\nHere’s some more info about the project.\n\n* The ship’s starting coordinates are `(0, 0)`, which is on Earth.\n* The ship’s final destination is `(0, 250)`, which is on the moon.\n* The ship will be controlled over a CLI using a standard keyboard as follows:\n\n* The ship starts at `(0, 0)` at 0 speed, i.e. at complete rest.\nThe ship only moves when a valid key is pressed.\n* Pressing `W` increases the ship’s speed and then moves it forward by speed units.\n  * The ship’s maximum speed is 5.\n* Pressing `S` decreases the ship’s speed and then moves it forward by speed units.\n  * The ship’s minimum speed is 0.\n  * After launch, the ship cannot go below speed 1, i.e. it always moves forward until it reaches the moon.\n\n* Pressing `A` and `D` move the ship left and right by one unit respectively.\n* The ship also moves forward by speed units.\n\n## Problem\n\nWrite a CLI program in your preferred language to simulate the above spacecraft. Display output as follows:\n\n* Begin with `(0, 0) ready for launch`.\n* After every movement, display the updated position.\n* If the ship goes more than 5 points to the left/right, display `wrong trajectory`.\n* If the ship tries to decrease the speed below 1, display `minimum speed`.\n* If the ship tries to increase the speed over 5, display `maximum speed`.\n* When the ship reaches `(0, 250)` display `on the moon`.\n* If the ship goes beyond 250 on the y-axis, display `contact lost`.\n\n## Demo\n\n![Demo Example](./images/demo.gif)\n\n## Sample output\n\n```none\n(0, 0) # Begin with original position.\n(0, 1) # W increases the speed to 1 and moves forward.\n(0, 3) # W increases the speed to 2 and moves forward.\n(-1, 5) # A moves the ship left and forward.\n(0, 7) # D moves the ship right and forward.\n(0, 8) # S decreases the speed to 1 and moves forward.\n...\n(0, 250) on the moon # Ship reaches the moon\n```\n\n## Install Globally\n\n\n```sh\nnpm i -g spacecraft-app-cli\n```\n\nor\n\nYou can run directly with `npx`\n\n```sh\nnpx spacecraft-app-cli\n```\n\n## Getting started - Local Development\n\n### Requirements\n\n* NodeJS 16.0.0\n* Npm 7.10.0\n\nSee [nvm](https://github.com/nvm-sh/nvm) or [asdf](https://github.com/asdf-vm/asdf-nodejs)\n\n### Installation\n\nTo get started locally, follow these instructions:\n\n1. Clone to your local computer using `git`.\n2. Make sure you have Node installed; see instructions [here](https://nodejs.org/en/download/).\n\n### Usage\n\n```sh\n# starts 🚀 on coordinates (0,0) - Earth\nyarn start\n\n# Use W, A, S, or D  to starting control 🚀 .\n```\n\n### Build the CLI bundle\n\n```sh\nyarn build\n```\n\n### Run tests\n\n```sh\nyarn test\n```\n\n## Contributors\n\n\u003ca href=\"https://github.com/pyymenta/spacecraft-cli/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contributors-img.web.app/image?repo=pyymenta/spacecraft-cli\" /\u003e\n\u003c/a\u003e\n\n## Docs\n\n- [Contribution Guidelines](./docs/contributor-guidelines.md)\n\n## License\n\nCopyright (c) 2021 pyymenta\n\nSpacecraft is licensed under the [MIT](LICENSE) license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyymenta%2Fspacecraft-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyymenta%2Fspacecraft-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyymenta%2Fspacecraft-cli/lists"}