@fast-compose/compose-script 0.1.0 → 0.1.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/README.md CHANGED
@@ -1,10 +1,24 @@
1
+ <div align="center">
2
+
3
+ <img src="docs/images/logo.png" width="160" alt="Compose Script logo">
4
+
1
5
  # Compose Script
2
6
 
7
+ **Live Jetpack Compose inside any web page. No build, no server.**
8
+
9
+ Add one script, write Compose in your HTML, and it renders in the page, powered by
10
+ [Fast Compose](https://github.com/fast-compose/fast-compose).
11
+
3
12
  [![npm](https://img.shields.io/npm/v/@fast-compose/compose-script)](https://www.npmjs.com/package/@fast-compose/compose-script)
4
13
  [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@fast-compose/compose-script/badge)](https://www.jsdelivr.com/package/npm/@fast-compose/compose-script)
5
- [![License](https://img.shields.io/badge/license-Apache%202.0-blue)](LICENSE)
14
+ [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](LICENSE)
15
+ ![Kotlin/Wasm](https://img.shields.io/badge/Kotlin-Wasm-7F52FF?logo=kotlin&logoColor=white)
16
+
17
+ </div>
18
+
19
+ ---
6
20
 
7
- Live Compose inside static HTML pages, powered by [Fast Compose](https://github.com/fast-compose/fast-compose).
21
+ ## Quick start
8
22
 
9
23
  ```html
10
24
  <script src="https://cdn.jsdelivr.net/npm/@fast-compose/compose-script/compose-script.js"></script>
@@ -16,8 +30,8 @@ Live Compose inside static HTML pages, powered by [Fast Compose](https://github.
16
30
  ```
17
31
 
18
32
  - Load `compose-script.js` with a plain `<script src>`, not `type="module"`: it loads its `.wasm` files from its own URL.
19
- - The URL serves the latest version. To pin one, add it after the package name, e.g. `compose-script@X.Y.Z`; each
20
- version runs the Fast Compose engine of the same version.
33
+ - The URL serves the latest version. To pin one, add it after the package name, e.g. `compose-script@X.Y.Z`. Each
34
+ version is built with the newest Fast Compose release of its time, named in its npm description.
21
35
 
22
36
  ## Script types
23
37