@arenahito/droid-webscr 0.0.0

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 arenahito
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 ADDED
@@ -0,0 +1,83 @@
1
+ # droid-webscr
2
+
3
+ droid-webscr is a local Android screen streaming and control tool. It runs a small
4
+ Node.js agent on your machine, pushes a temporary Android-side server through ADB,
5
+ and opens a browser UI for viewing and controlling an authorized Android device.
6
+
7
+ The project is under active development. Expect CLI and protocol details to keep
8
+ moving until the first stable release.
9
+
10
+ ## Features
11
+
12
+ - Browser-based Android screen viewing with WebCodecs.
13
+ - Pointer, keyboard, text, and Android hardware-button control.
14
+ - USB, emulator, and network ADB device discovery.
15
+ - Device log viewing and live log tailing.
16
+ - Runtime bind controls for local or authenticated shared access.
17
+ - Android server verification backed by emulator acceptance checks.
18
+
19
+ ## Installation
20
+
21
+ ```sh
22
+ npm install -g @arenahito/droid-webscr
23
+ ```
24
+
25
+ You can also run it without installing it globally:
26
+
27
+ ```sh
28
+ npx @arenahito/droid-webscr
29
+ ```
30
+
31
+ The installed command is:
32
+
33
+ ```sh
34
+ droid-webscr
35
+ ```
36
+
37
+ ## Prerequisites
38
+
39
+ - Node.js 24 or newer.
40
+ - Android SDK platform-tools with `adb` available on `PATH`.
41
+ - An Android emulator or device visible in `adb devices -l`.
42
+ - Device authorization completed when using a physical Android device.
43
+ - Chrome or Edge for the browser UI.
44
+
45
+ ## Usage
46
+
47
+ Start the local agent:
48
+
49
+ ```sh
50
+ droid-webscr
51
+ ```
52
+
53
+ By default the agent listens on:
54
+
55
+ ```text
56
+ http://127.0.0.1:7391
57
+ ```
58
+
59
+ Open the web UI, select an authorized device, and start a session. The session
60
+ streams the Android display into the browser and sends control frames back to the
61
+ device through the local agent.
62
+
63
+ The UI supports:
64
+
65
+ - starting and stopping a device session;
66
+ - selecting video bitrate and frame rate;
67
+ - pointer, keyboard, and text input;
68
+ - back, home, overview, power, and volume actions;
69
+ - rotation controls;
70
+ - device log history and live log tailing;
71
+ - connecting a network ADB endpoint such as `192.168.1.40:5555`.
72
+
73
+ ## Configuration
74
+
75
+ droid-webscr currently starts with local-only defaults. The agent listens on
76
+ `127.0.0.1:7391`, and clipboard sync is disabled.
77
+
78
+ Runtime access settings can be changed from the web UI. Non-local bind addresses
79
+ require an auth token, and clipboard sync must be enabled explicitly.
80
+
81
+ ## License
82
+
83
+ MIT
package/dist/bin.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env node
2
+ import { AgentRuntime } from './main.js';
3
+ import '@droid-webscr/adb';
4
+ import '@droid-webscr/config';
5
+
6
+ interface CliIo {
7
+ stderr(value: string): void;
8
+ stdout(value: string): void;
9
+ }
10
+ interface CliRuntime {
11
+ readonly packageVersion?: string | undefined;
12
+ readonly startAgent?: (() => Promise<AgentRuntime>) | undefined;
13
+ readonly stderr?: ((value: string) => void) | undefined;
14
+ readonly stdout?: ((value: string) => void) | undefined;
15
+ }
16
+ declare function runCli(argv: readonly string[], runtime?: CliRuntime): Promise<number>;
17
+ declare function createCliHelp(): string;
18
+
19
+ export { type CliIo, type CliRuntime, createCliHelp, runCli };