{"id":23127683,"url":"https://github.com/hlfshell/mirrored","last_synced_at":"2025-04-04T05:42:21.675Z","repository":{"id":146170483,"uuid":"131905468","full_name":"hlfshell/mirrored","owner":"hlfshell","description":"Just an idea - automagic web socket exposure for easy remote code execution","archived":false,"fork":false,"pushed_at":"2018-05-03T21:22:09.000Z","size":11,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T17:14:51.830Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/hlfshell.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":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-02T21:00:48.000Z","updated_at":"2025-01-01T20:31:13.000Z","dependencies_parsed_at":"2024-07-17T05:45:12.164Z","dependency_job_id":null,"html_url":"https://github.com/hlfshell/mirrored","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlfshell%2Fmirrored","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlfshell%2Fmirrored/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlfshell%2Fmirrored/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlfshell%2Fmirrored/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hlfshell","download_url":"https://codeload.github.com/hlfshell/mirrored/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247128739,"owners_count":20888234,"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":[],"created_at":"2024-12-17T09:14:27.943Z","updated_at":"2025-04-04T05:42:21.644Z","avatar_url":"https://github.com/hlfshell.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mirrored\nThe idea: automagic web socket exposure for easy remote code execution\n\nTLDR; I had a project where I created an onboard API interface for a custom piece of hardware in node.js - the problem was that I knew I would have to generate a websockets API for it in order to bridge multiple units across a network connection. It occured to me that in [serial-synpase-socket](https://github.com/hlfshell/serial-synapse-socket) I had a module that would automatically expose a [serial-synapse](https://github.com/hlfshell/serial-synapse) object. This wouldn't work here, since this was a fresh new API and no serial control was present.\n\nSo I started experimenting around with it. If you're reading this README, that means I didn't advance it past the idea stage - just like a bajillion other ideas.\n\nThe goal is to have a `MirrorHost` object- you then feed it objects which it dynamically creates an API for. You then create a `MirrorClient` object on the client computer, connecting it to the host. The `MirrorHost` will then keep the `MirrorClient` synced, expose in JS object functions, and handle passing the execution of the host's actual object to the cloned object on the client.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlfshell%2Fmirrored","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhlfshell%2Fmirrored","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlfshell%2Fmirrored/lists"}