{"id":28824147,"url":"https://github.com/ftzi/grey-hack","last_synced_at":"2026-04-30T07:38:44.952Z","repository":{"id":278565338,"uuid":"932971131","full_name":"ftzi/grey-hack","owner":"ftzi","description":"Scripts for the Grey Hack game. Also watch mode for Greybel.","archived":false,"fork":false,"pushed_at":"2025-12-28T03:13:51.000Z","size":362,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-04-30T07:38:34.914Z","etag":null,"topics":["grey-hack","greybel","greyhack","greyscript","hack","miniscript","typescript"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ftzi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-02-14T21:34:58.000Z","updated_at":"2025-12-28T03:13:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"0b585b0c-29f2-43ca-87f4-c1ae8e33c475","html_url":"https://github.com/ftzi/grey-hack","commit_stats":null,"previous_names":["ftzi/grey-hack"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ftzi/grey-hack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftzi%2Fgrey-hack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftzi%2Fgrey-hack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftzi%2Fgrey-hack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftzi%2Fgrey-hack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ftzi","download_url":"https://codeload.github.com/ftzi/grey-hack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ftzi%2Fgrey-hack/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32458237,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["grey-hack","greybel","greyhack","greyscript","hack","miniscript","typescript"],"created_at":"2025-06-19T01:05:33.461Z","updated_at":"2026-04-30T07:38:44.947Z","avatar_url":"https://github.com/ftzi.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Grey Hack scripts - WIP\n\nPersonal scripts for the **[Grey Hack](https://store.steampowered.com/app/605230/Grey_Hack/)** game. Still on early stage.\n\n## **You might be particularly interested in:**\n- **The `try` function**: https://github.com/ftzi/grey-hack/blob/main/root/try.src\n- **The [compiler](https://github.com/ftzi/grey-hack/blob/main/root/c.src)**. It compiles your entry file and its imported files automatically. Supports watch mode, execute after build, [automated tests](https://github.com/ftzi/grey-hack/blob/main/root/lib/test.src), and an importable function to make your programs self-compile with the latest source when executed.\n- **Automatic upload of the changed source files to the game while you use your favorite IDE. See [`package.json`](https://github.com/ftzi/grey-hack/blob/main/package.json) and [`watch.ts`](https://github.com/ftzi/grey-hack/blob/main/watch.ts)**. Note that by choice, I don't use Greybel's build system, only its raw upload.\n\n# Setup\n1) Install BepInEx 5.x.x: https://github.com/ayecue/greybel-vs#message-hook\n1) Clone this repo.\n1) Have [node](https://nodejs.org/en) installed. [Bun](https://bun.sh/), as an alternative, didn't work here with Greybel.\n1) Run `npm i`\n\n## Development / Play\n1) Run the game.\n1) Run `npm start`. All the files will be uploaded to the game and also any changes done to them.\n\n# Game\n1) Run `sudo -s` and enter your password.\n1) Run `build c.src /root` to build the compilation tool.\n1) Run `c` to build all the source files in the current directory (`/root`) and their required libraries.\n1) Run `setup home` to secure your home computer and setup the auto-root Terminal on startup.\n\n## Info\n- You can run the program `clean` to remove all the source files and executables in `/root` and related subdirectories. Then you can run `npm start` in your real terminal to upload them again.\n\n# Tips\n- The VS Code extension https://github.com/ayecue/greybel-vs is recommended for syntax highlight.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fftzi%2Fgrey-hack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fftzi%2Fgrey-hack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fftzi%2Fgrey-hack/lists"}