@swifttui/web 0.8.4 → 0.8.6
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/README.md +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# `@swifttui/web`
|
|
2
2
|
|
|
3
|
-
**Browser runtime for [SwiftTUI](https://swifttui.sh) apps
|
|
4
|
-
Swift-authored UI into a `<canvas
|
|
3
|
+
**Browser runtime for [SwiftTUI](https://swifttui.sh) apps: draw a
|
|
4
|
+
Swift-authored UI into a `<canvas>` without a terminal emulator.**
|
|
5
5
|
|
|
6
6
|
[](https://www.npmjs.com/package/@swifttui/web)
|
|
7
7
|

|
|
@@ -13,7 +13,7 @@ ARIA tree for accessibility and sends input to the running app. Thus, the same
|
|
|
13
13
|
view code runs in a terminal and on a web page. The package does not load a
|
|
14
14
|
terminal emulator.
|
|
15
15
|
|
|
16
|
-
The build side
|
|
16
|
+
The build side (compiling your Swift app to wasm and capturing its manifest)
|
|
17
17
|
lives in the sibling
|
|
18
18
|
[`@swifttui/build`](https://www.npmjs.com/package/@swifttui/build) package.
|
|
19
19
|
|
|
@@ -24,8 +24,8 @@ lives in the sibling
|
|
|
24
24
|
|
|
25
25
|
## Installation
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
TypeScript toolchain is necessary to use it:
|
|
27
|
+
The package publishes to npm as ESM with bundled TypeScript declarations, so
|
|
28
|
+
no TypeScript toolchain is necessary to use it:
|
|
29
29
|
|
|
30
30
|
```bash
|
|
31
31
|
npm install @swifttui/web
|
|
@@ -117,7 +117,7 @@ custom runtimes.
|
|
|
117
117
|
|
|
118
118
|
This package uses SwiftTUI's `web-surface` WASI transport. The Swift runner
|
|
119
119
|
emits structured raster-surface records on stdout, and the browser host draws
|
|
120
|
-
them with the configured renderer
|
|
120
|
+
them with the configured renderer (canvas rects/text or DOM elements). It does
|
|
121
121
|
not load a terminal emulator and does not depend on `ghostty-web` or
|
|
122
122
|
`ghostty-vt.wasm`.
|
|
123
123
|
|
|
@@ -148,10 +148,10 @@ Development happens in the
|
|
|
148
148
|
against the published tarball. The workspace commands and build pipeline are
|
|
149
149
|
documented in the repository's `docs/DEVELOPMENT.md` and
|
|
150
150
|
`packages/web/AGENTS.md`. An app that uses this package needs only
|
|
151
|
-
`npm install
|
|
151
|
+
`npm install`; it does not need Bun or the Swift toolchain.
|
|
152
152
|
|
|
153
153
|
Full SwiftTUI API reference: <https://swifttui.sh/docs/documentation/>.
|
|
154
154
|
|
|
155
155
|
## License
|
|
156
156
|
|
|
157
|
-
MIT
|
|
157
|
+
MIT; see [LICENSE](LICENSE).
|