{"id":15520674,"url":"https://github.com/turbolent/newtonkit","last_synced_at":"2025-10-24T23:09:39.097Z","repository":{"id":31897936,"uuid":"130605356","full_name":"turbolent/NewtonKit","owner":"turbolent","description":"An implementation of the Apple Newton Dock protocol in Swift","archived":false,"fork":false,"pushed_at":"2023-12-27T21:43:27.000Z","size":290,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-17T19:18:21.786Z","etag":null,"topics":["apple","messagepad","newton","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/turbolent.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-04-22T20:34:41.000Z","updated_at":"2024-12-27T04:08:02.000Z","dependencies_parsed_at":"2023-12-27T22:48:49.900Z","dependency_job_id":null,"html_url":"https://github.com/turbolent/NewtonKit","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/turbolent%2FNewtonKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbolent%2FNewtonKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbolent%2FNewtonKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/turbolent%2FNewtonKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/turbolent","download_url":"https://codeload.github.com/turbolent/NewtonKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250370271,"owners_count":21419368,"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":["apple","messagepad","newton","swift"],"created_at":"2024-10-02T10:28:38.957Z","updated_at":"2025-10-24T23:09:39.014Z","avatar_url":"https://github.com/turbolent.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cimg src=\"https://github.com/turbolent/NewtonKit/raw/master/logo.png\" width=\"156\" height=\"156\" alt=\"NewtonKit Logo\"/\u003e\n\n---\n\nAn implementation of the Apple Newton Dock protocol in Swift.\n\n## Usage\n\n### Connection type\n\n#### TCP\n\nOn your computer, run:\n\n```sh\nswift run tcp\n```\n\nThis will start a TCP server on the Newton Dock port 3679.\n\nOnce you see `Waiting for connection ...`, start the Dock application on your Newton and initiate a TCP/IP connection.\nThe connection is succesfully established once `Connected` appears, at which point you may enter a command (see below).\n\n#### Serial\n\nOn your computer, run:\n\n```sh\nswift run serial \u003cpath-to-serial-device\u003e\n```\n\nWhere `\u003cpath-to-serial-device\u003e` is the path to the serial device the Newton is connected to. On macOS, you should use the `/dev/cu.usbserial-*` device which appears when a USB-to-serial adapter is used. On Linux, the device name is likely `/dev/ttyUSB*` or `/dev/ttyS*`.\n\nOnce you see `Waiting for connection ...` start the Dock application on your Newton and initiate a serial connection.\nThe connection is succesfully established once `Connected` appears, at which point you may enter a command.\n\n\n### Commands\n\n- `keyboard`: Start keyboard passthrough. Enter `.stop` to stop and return to the command prompt.\n- `info`: Get Newton system information\n- `backup`: Start backup (work in progress)\n    - Notes are exported as HTML files to `~/Library/Application Support/Newton/Backups/Notes/`\n- `load \u003cpath\u003e`: Install the package at the given path\n\nCurrently only Newton OS 2.x devices (MessagePad 130/2000/2100 and eMate) are supported.\n\n\n## Development\n\n### Einstein\n\nNewtonKit works with the [Einstein](https://github.com/pguyot/Einstein) Newton OS emulator.\nMake sure to use at least the [pre-release version with serial port emulation](https://github.com/pguyot/Einstein/releases/tag/2017.2.extr).\n\nOnce you have Einstein running, use [socat](http://www.dest-unreach.org/socat/) to create a PTY device for the named pipes created by Einstein:\n\n```sh\nsocat -d -d PTY,raw,mode=666,echo=0,link=$HOME/einstein \\\n    PIPE:$HOME/Library/Application\\ Support/Einstein\\ Emulator/ExtrSerPortSend\\!\\!PIPE:$HOME/Library/Application\\ Support/Einstein\\ Emulator/ExtrSerPortRecv\n```\n\nThen start the NewtonKit command line tool:\n\n```\nswift run serial $HOME/einstein\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbolent%2Fnewtonkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fturbolent%2Fnewtonkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fturbolent%2Fnewtonkit/lists"}