peer-term 1.1.1 → 1.1.2

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.
Files changed (2) hide show
  1. package/README.md +15 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -36,17 +36,24 @@ peer-term --path ~/projects # starts at ~/projects
36
36
  peer-term --path . # starts in current directory
37
37
  peer-term --readonly # view-only session
38
38
  peer-term --expiry 10m # custom expiry time
39
+ peer-term --relay wss://custom # use a custom relay server
39
40
  peer-term --verbose # enable debug logging
40
41
  ```
41
42
 
42
43
  ## Features
43
44
 
44
45
  - **No Config**: Works instantly. No port forwarding or firewall configuration needed.
45
- - **End-to-End Encrypted**: Terminal data is encrypted locally using AES-GCM before being sent.
46
- - **WebRTC P2P**: Creates a direct Peer-to-Peer connection when possible for minimal latency.
47
- - **Read-Only Mode**: Guests can view your terminal but cannot type commands, ensuring your system remains secure.
48
- - **Custom Start Path**: Set the starting directory with `--path` so guests land right where you want them.
49
-
50
- ## License
51
-
52
- MIT
46
+ - **End-to-End Encrypted**: Terminal data is encrypted locally using AES-256-GCM with ECDH P-256 key exchange. The relay never sees plaintext.
47
+ - **WebRTC P2P**: Creates a direct Peer-to-Peer connection on the same LAN for zero-latency, relay-free sessions.
48
+ - **Read-Only Mode**: Guests can view your terminal but cannot type commands.
49
+ - **Custom Start Path**: Set the starting directory with `--path`.
50
+ - **Resilient Connections**: Both host and client get a 2-minute rejoin window if their IP changes or connection drops. PTY state is fully preserved — no session restart needed.
51
+ - **Multi-Session**: Manage multiple simultaneous sessions with the interactive CLI menu.
52
+
53
+ ## How It Works
54
+
55
+ 1. **Host** registers a session on the relay and gets a 6-digit code
56
+ 2. **Client** opens the web UI and enters the code
57
+ 3. Both sides perform an **ECDH key exchange** to derive a shared AES-256-GCM secret
58
+ 4. All terminal I/O is encrypted end-to-end — the relay only forwards opaque blobs
59
+ 5. If both peers are on the same LAN, a **WebRTC DataChannel** is established to bypass the relay entirely
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "peer-term",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Share your terminal instantly using a 6-digit code. Encrypted. No config.",
5
5
  "main": "src/index.js",
6
6
  "bin": {