webtty 1.3.0 → 1.4.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 +21 -0
- package/README.md +21 -7
- package/dist/cli/index.js +198 -2330
- package/dist/cli/index.js.map +6 -14
- package/dist/client-browser.js +3 -3
- package/dist/ghostty-vt.wasm +0 -0
- package/dist/ghostty-web.js +3425 -0
- package/dist/server/index.js +14 -34
- package/dist/server/index.js.map +5 -5
- package/package.json +2 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 webtty 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,20 +1,34 @@
|
|
|
1
|
-
<
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="docs/assets/social-preview.png" width="600">
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
5
|
# webtty
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
[](https://www.npmjs.com/package/webtty)
|
|
8
|
+
[](https://github.com/jesse23/webtty/actions/workflows/ci.yml)
|
|
9
|
+
|
|
10
|
+
Terminal UI in the browser. Run CLI/TUI applications in a browser tab, across platforms. Powered by [ghostty-web](https://github.com/coder/ghostty-web).
|
|
11
|
+
|
|
12
|
+
- [Why webtty?](docs/awesome-web.md#terminal)
|
|
6
13
|
|
|
7
14
|
```sh
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
15
|
+
bunx webtty # open main session in the browser
|
|
16
|
+
bunx webtty go [id] # open a specific session by id
|
|
17
|
+
bunx webtty help # show all commands
|
|
18
|
+
|
|
19
|
+
# or with npx
|
|
20
|
+
npx webtty
|
|
21
|
+
npx webtty go [id]
|
|
22
|
+
npx webtty help
|
|
11
23
|
```
|
|
12
24
|
|
|
13
|
-
|
|
25
|
+
> **Windows**: use `npx` — `bunx` is not supported on Windows because `Bun.spawn({ terminal })` does not implement PTY on Windows yet.
|
|
26
|
+
|
|
27
|
+
## Development
|
|
14
28
|
|
|
15
29
|
Build emits source maps (`dist/**/*.js.map`), so you can debug against the built output directly — no minification, original TypeScript line numbers preserved.
|
|
16
30
|
|
|
17
|
-
```
|
|
31
|
+
```sh
|
|
18
32
|
bun run build
|
|
19
33
|
bun --inspect run dist/server/index.js
|
|
20
34
|
# or
|