{"id":22048248,"url":"https://github.com/wisq/space_ex","last_synced_at":"2025-07-21T11:05:08.836Z","repository":{"id":57550618,"uuid":"117159219","full_name":"wisq/space_ex","owner":"wisq","description":"Elixir client library for kRPC, a remote control API for Kerbal Space Program","archived":false,"fork":false,"pushed_at":"2023-05-24T03:36:00.000Z","size":338,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-10T20:58:59.644Z","etag":null,"topics":["elixir","kerbal-space-program","krpc"],"latest_commit_sha":null,"homepage":"","language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wisq.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-01-11T22:06:08.000Z","updated_at":"2023-04-20T00:51:03.000Z","dependencies_parsed_at":"2024-11-30T14:09:41.785Z","dependency_job_id":"40e6ad84-1afd-47c1-9502-f3524e4c738c","html_url":"https://github.com/wisq/space_ex","commit_stats":{"total_commits":246,"total_committers":1,"mean_commits":246.0,"dds":0.0,"last_synced_commit":"56a87bdd67af093ad70e2843ff4cf963ddf7018c"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/wisq/space_ex","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisq%2Fspace_ex","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisq%2Fspace_ex/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisq%2Fspace_ex/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisq%2Fspace_ex/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wisq","download_url":"https://codeload.github.com/wisq/space_ex/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wisq%2Fspace_ex/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266287824,"owners_count":23905461,"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":["elixir","kerbal-space-program","krpc"],"created_at":"2024-11-30T14:09:31.971Z","updated_at":"2025-07-21T11:05:08.803Z","avatar_url":"https://github.com/wisq.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpaceEx\n\nSpaceEx is an Elixir client library for [kRPC](https://krpc.github.io/krpc/).\n\nkRPC is a mod for [Kerbal Space Program](https://kerbalspaceprogram.com/), the rocket simulation game.\n\nWith kRPC, you can control your rocket using external scripts.  With SpaceEx, you can write those external scripts in [Elixir](https://elixir-lang.org/), and enjoy all the wonderful features of the Elixir language and the Erlang VM.\n\n[![Build Status](https://travis-ci.org/wisq/space_ex.svg?branch=master)](https://travis-ci.org/wisq/space_ex)\n[![Hex.pm Version](http://img.shields.io/hexpm/v/space_ex.svg?style=flat)](https://hex.pm/packages/space_ex)\n\n## Installation\n\nSpaceEx is [available on hex.pm](https://hex.pm/packages/space_ex).\n\nIf you haven't already, start a project with `mix new`.\n\nThen, add `space_ex` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:space_ex, \"~\u003e 0.8.0\"}\n  ]\nend\n```\n\nRun `mix deps.get` to pull SpaceEx into your project, and you're good to go.\n\n## Usage\n\n```elixir\n# If your kRPC is on the same machine:\nconn = SpaceEx.Connection.connect!()\n# If it's on a different one:\n# conn = SpaceEx.Connection.connect!(host: \"1.2.3.4\")\n\nvessel = SpaceEx.SpaceCenter.active_vessel(conn)\ncontrol = SpaceEx.SpaceCenter.Vessel.control(vessel)\n\nSpaceEx.KRPC.set_paused(conn, false)\n\nIO.puts(\"Burning for 1 second ...\")\nSpaceEx.SpaceCenter.Control.set_throttle(control, 1.0)\nProcess.sleep(1_000)\nSpaceEx.SpaceCenter.Control.set_throttle(control, 0.0)\nIO.puts(\"Burn complete.\")\n\nSpaceEx.KRPC.set_paused(conn, true)\n```\n\nThis will connect to your kRPC game, unpause it if needed, burn the engines for one second, and then pause it again.\n\nMore examples can be found in the [examples directory](https://github.com/wisq/space_ex/tree/master/examples).\n\nAlthough this library is very new, the API has mostly stabilised at this point, and I expect to release v1.0.0 within the next few days.  For a list of what's planned, see the [to-do list](https://github.com/wisq/space_ex/blob/master/TODO.md).\n\n## Documentation\n\nFull documentation can be found at [https://hexdocs.pm/space_ex](https://hexdocs.pm/space_ex).\n\n## Legal stuff\n\nCopyright © 2018, Adrian Irving-Beer.\n\nSpaceEx is released under the [Apache 2 License](https://github.com/wisq/space_ex/blob/master/LICENSE) and is provided with **no warranty**.  But, let's face it — if anything goes wrong, the worst that can likely happen is that your rocket crashes and Jeb dies.\n\nSpaceEx is in no way associated with the launching of real rockets, and has no affiliations with any companies that do real rocketry.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisq%2Fspace_ex","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwisq%2Fspace_ex","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwisq%2Fspace_ex/lists"}