@ghostty-web/demo 0.2.1-next.14.g853bc65 → 0.2.1-next.16.gdc59c79

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 (3) hide show
  1. package/README.md +5 -18
  2. package/bin/demo.js +4 -0
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -5,46 +5,33 @@ Cross-platform demo server for [ghostty-web](https://github.com/coder/ghostty-we
5
5
  ## Quick Start
6
6
 
7
7
  ```bash
8
- npx @ghostty-web/demo
8
+ npx @ghostty-web/demo@next
9
9
  ```
10
10
 
11
11
  This starts a local web server with a fully functional terminal connected to your shell.
12
- Works on **Linux**, **macOS**, and **Windows**.
12
+ Works on **Linux** and **macOS** (no Windows support yet).
13
13
 
14
14
  ## What it does
15
15
 
16
16
  - Starts an HTTP server on port 8080 (configurable via `PORT` env var)
17
17
  - Starts a WebSocket server on port 3001 for PTY communication
18
- - Opens a real shell session (bash, zsh, cmd.exe, or PowerShell)
18
+ - Opens a real shell session (bash, zsh, etc.)
19
19
  - Provides full PTY support (colors, cursor positioning, resize, etc.)
20
20
 
21
21
  ## Usage
22
22
 
23
23
  ```bash
24
24
  # Default (port 8080)
25
- npx @ghostty-web/demo
25
+ npx @ghostty-web/demo@next
26
26
 
27
27
  # Custom port
28
- PORT=3000 npx @ghostty-web/demo
28
+ PORT=3000 npx @ghostty-web/demo@next
29
29
  ```
30
30
 
31
31
  Then open http://localhost:8080 in your browser.
32
32
 
33
- ## Features
34
-
35
- - 🖥️ Real shell sessions with full PTY support
36
- - 🎨 True color (24-bit) and 256 color support
37
- - ⌨️ Full keyboard support including special keys
38
- - 📐 Dynamic terminal resizing
39
- - 🔄 Auto-reconnection on disconnect
40
- - 🌐 Cross-platform (Linux, macOS, Windows)
41
-
42
33
  ## Security Warning
43
34
 
44
35
  ⚠️ **This server provides full shell access.**
45
36
 
46
37
  Only use for local development and demos. Do not expose to untrusted networks.
47
-
48
- ## License
49
-
50
- MIT
package/bin/demo.js CHANGED
@@ -215,6 +215,10 @@ const HTML_TEMPLATE = `<!doctype html>
215
215
  rows: 24,
216
216
  fontFamily: 'JetBrains Mono, Menlo, Monaco, monospace',
217
217
  fontSize: 14,
218
+ theme: {
219
+ background: '#1e1e1e',
220
+ foreground: '#d4d4d4',
221
+ },
218
222
  });
219
223
 
220
224
  const fitAddon = new FitAddon();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghostty-web/demo",
3
- "version": "0.2.1-next.14.g853bc65",
3
+ "version": "0.2.1-next.16.gdc59c79",
4
4
  "description": "Cross-platform demo server for ghostty-web terminal emulator",
5
5
  "type": "module",
6
6
  "bin": {
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@lydell/node-pty": "^1.0.1",
15
- "ghostty-web": "0.2.1-next.14.g853bc65",
15
+ "ghostty-web": "0.2.1-next.16.gdc59c79",
16
16
  "ws": "^8.18.0"
17
17
  },
18
18
  "files": [