simcast-host 0.0.0-stage → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Aditya Raja and simcast contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,73 @@
1
- # Temporary Holding Version
1
+ # simcast
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Use a Mac's iOS Simulator from Windows, Linux or another Mac. Any Mac on your network hosts the simulator and does the occasional native build; your editor, dev server, Android emulator and backend stay on your own computer. The simulator opens in a native window on your desktop, and your app loads its JavaScript from your computer through a tunnel. Expo is the first framework it supports.
4
+
5
+ ```
6
+ Your computer (Windows, macOS, Linux) Mac
7
+ ───────────────────────────────────── ───
8
+ editor, dev server (Metro :8081), simcast-host :7878
9
+ Android emulator, backend ├─ synced copy of your project
10
+ ├─ installs dependencies (when the lockfile changes)
11
+ simcast ───────── sync changed files ────▶ ├─ native build, only when native code changes
12
+ ◀──────── live build output ────── ├─ install + launch in the simulator
13
+ └─ app opens http://localhost:8081
14
+ app loads JS from your dev server ◀─────────
15
+ (through the tunnel)
16
+ ```
17
+
18
+ ## Quick start
19
+
20
+ 1. **On the Mac**, install the host (Xcode must already be installed):
21
+
22
+ ```bash
23
+ curl -fsSL https://github.com/adityaraja338/simcast/releases/latest/download/install-host.sh | bash
24
+ ```
25
+
26
+ It sets up the Mac and ends by showing a pairing code.
27
+
28
+ 2. **On your computer**, install the client. Windows, in PowerShell:
29
+
30
+ ```powershell
31
+ irm https://github.com/adityaraja338/simcast/releases/latest/download/install.ps1 | iex
32
+ ```
33
+
34
+ macOS or Linux:
35
+
36
+ ```bash
37
+ curl -fsSL https://github.com/adityaraja338/simcast/releases/latest/download/install-client.sh | sh
38
+ ```
39
+
40
+ 3. **Pair**, and type the code the Mac shows:
41
+
42
+ ```bash
43
+ simcast pair
44
+ ```
45
+
46
+ 4. **Run.** Start your dev server (`npx expo start --dev-client`), then in a second terminal, inside your project:
47
+
48
+ ```bash
49
+ simcast
50
+ ```
51
+
52
+ Press `i` to run on iOS, `v` to open the simulator window, `?` for the other keys.
53
+
54
+ ## Guide
55
+
56
+ - [Set up the Mac](docs/guide/install-host.md): requirements, what setup does, updating, Mac commands
57
+ - [Install the client](docs/guide/install-client.md): Windows, macOS and Linux
58
+ - [Pairing](docs/guide/pairing.md): codes, several computers, lost connections, checks
59
+ - [Daily use](docs/guide/daily-use.md): the interactive session, its keys, and every command
60
+ - [The simulator window](docs/guide/simulator-window.md): mouse and keyboard, recording, quality, fallback mode
61
+ - [Your backend and other ports](docs/guide/backend-ports.md): the tunnel, `simcast reverse`, direct mode, one Mac as both sides
62
+ - [Sync and builds](docs/guide/sync.md): what's synced, when it builds
63
+ - [Troubleshooting](docs/guide/troubleshooting.md)
64
+ - [Security](docs/guide/security.md)
65
+ - [Architecture](docs/guide/architecture.md): the pieces, the tunnel, the live view, adding frameworks
66
+
67
+ ## Credits
68
+
69
+ The live view is built on Meta's [idb](https://github.com/facebook/idb) (MIT License). `proto/idb.proto` is copied from it unchanged apart from a header comment.
70
+
71
+ ## License
72
+
73
+ [MIT](LICENSE). Contributions are welcome; see [CONTRIBUTING.md](CONTRIBUTING.md).
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ import { main } from '../src/agent/cli.js';
3
+
4
+ main(process.argv.slice(2)).then((code) => {
5
+ process.exitCode = code ?? 0;
6
+ }).catch((err) => {
7
+ console.error(`\x1b[31m✗ ${err.message}\x1b[0m`);
8
+ if (err.tail?.length) console.error(err.tail.join('\n'));
9
+ if (process.env.SIMCAST_DEBUG) console.error(err.stack);
10
+ process.exit(1);
11
+ });
package/package.json CHANGED
@@ -1,6 +1,30 @@
1
1
  {
2
2
  "name": "simcast-host",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.9.1",
4
+ "description": "The Mac side of simcast: host this Mac's iOS Simulator for Windows, Linux and Mac clients.",
5
+ "type": "module",
6
+ "bin": {
7
+ "simcast-host": "bin/simcast-host.js"
8
+ },
9
+ "files": [
10
+ "bin/simcast-host.js",
11
+ "src/agent/",
12
+ "src/common.js",
13
+ "proto/",
14
+ "LICENSE",
15
+ "README.md"
16
+ ],
17
+ "scripts": {
18
+ "test": "node scripts/test.mjs"
19
+ },
20
+ "engines": {
21
+ "node": ">=20"
22
+ },
23
+ "dependencies": {
24
+ "@grpc/grpc-js": "^1.14.6",
25
+ "@grpc/proto-loader": "^0.7.15",
26
+ "tar": "^7.4.3",
27
+ "ws": "^8.22.0"
28
+ },
29
+ "license": "MIT"
30
+ }