{"id":21969565,"url":"https://github.com/cinderblock/rdt","last_synced_at":"2026-01-29T22:02:26.294Z","repository":{"id":151527959,"uuid":"608339284","full_name":"cinderblock/rdt","owner":"cinderblock","description":"A Node.js development environment for lightweight remote systems. Use your high performance development machine to build and serve your project to a low performance remote device.","archived":false,"fork":false,"pushed_at":"2024-11-30T09:52:40.000Z","size":326,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-08T14:41:43.796Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/cinderblock.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","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,"zenodo":null}},"created_at":"2023-03-01T20:16:03.000Z","updated_at":"2024-11-30T09:52:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"70f0d3d2-bd60-4557-9d51-ca619ff6f5af","html_url":"https://github.com/cinderblock/rdt","commit_stats":null,"previous_names":[],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/cinderblock/rdt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Frdt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Frdt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Frdt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Frdt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cinderblock","download_url":"https://codeload.github.com/cinderblock/rdt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cinderblock%2Frdt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28886881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: 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":[],"created_at":"2024-11-29T14:22:21.015Z","updated_at":"2026-01-29T22:02:26.280Z","avatar_url":"https://github.com/cinderblock.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `rdt` - Remote Development Tool\n\n[![npm version](https://badge.fury.io/js/@cinderblock%2Frdt.svg)](https://badge.fury.io/js/@cinderblock%2Frdt)\n[![Build](https://github.com/cinderblock/rdt/actions/workflows/build.yaml/badge.svg?branch=master)](https://github.com/cinderblock/rdt/actions/workflows/build.yaml)\n[![Publish](https://github.com/cinderblock/rdt/actions/workflows/publish.yaml/badge.svg?event=push)](https://github.com/cinderblock/rdt/actions/workflows/publish.yaml)\n\nA Node.js development tool for lightweight remote systems.\nUse your high performance development machine to build and serve your project to a low performance remote device.\n\n`rdt` is a daemon that runs on your development machine.\n`rdt` watches your project directory for changes and gives APIs to build and deploy your project to a remote device.\n`rdt` can run a local web server for a fast local UI experience with easy connection to the real backend through integrated port forwarding.\n\nRemote Development Tool is still in early development.\nThe API and configuration format might change.\n\n## Installation\n\n```bash\nnpm install -D @cinderblock/rdt  # Npm package\nnpm install -D cinderblock/rdt   # Github repository\n```\n\n## Usage\n\nCreate a file `rdt.ts` in the root of your project that exports a `targets` object and an optional default target name.\n\n### Example `rdt.ts`\n\n```ts\nimport { Targets, logger } from 'rdt';\n\n// export const defaultTarget = 'myPi'; // Defaults to the first target\n\nexport const targets: Targets = {\n  myPi: {\n    // remote: {\n    //   host: 'myPi', // Defaults to target name\n    //   username: 'pi', // Default\n    // },\n    handler: {\n      async onConnected({ connection, targetName, targetConfig }) {\n        logger.info(`connected: ${targetName}`);\n        logger.info(targetConfig);\n      },\n\n      async onDisconnected({ targetName, targetConfig }) {\n        logger.info(`disconnected: ${targetName}`);\n      },\n\n      async onFileChanged({ connection, targetName, targetConfig, localPath }) {\n        return true;\n      },\n\n      async onDeployed({ connection, targetName, targetConfig, changedFiles }) {\n        logger.info(`deployed: ${targetName}`);\n      },\n    },\n    // devServer: 'src/ui/index.ts', // File must exist\n  },\n};\n```\n\n### `rdt dev [target]` - Start the development server\n\n```\nnpx rdt dev         # Run default target\nnpx rdt dev myPi    # Run target: myPi\nnpx rdt dev otherPi # Run target: otherPi\n```\n\nUse `npx` or directly in `package.json` scripts without `npx`:\n\n```json\n{\n  \"name\": \"my-project\",\n  \"type\": \"module\",\n  \"scripts\": {\n    \"dev\": \"rdt dev\"\n  },\n  \"devDependencies\": {\n    \"rdt\": \"^0.1.1\"\n  }\n}\n```\n\n```\nnpm run dev\nnpm run dev -- myPi\nnpm run dev -- otherPi\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcinderblock%2Frdt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcinderblock%2Frdt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcinderblock%2Frdt/lists"}