@@ -6,8 +6,8 @@ description: Modern Knockout — reactive data binding and UI templating with ze
66import { Tabs , TabItem } from ' @astrojs/starlight/components' ;
77
88<div class = " landing-hero" >
9- <p class = " landing-kicker " >TKO v4.0.1</p >
10- <h2 >Modern Knockout, clarified</h2 >
9+ <h2 class = " landing-version " >TKO v4.0.1</h2 >
10+ <p class = " landing-kicker " >Modern Knockout, clarified</p >
1111 <p class = " landing-lede" >Reactive data binding and UI templating with zero runtime dependencies. Start with the package you need and move from overview to working bindings.</p >
1212 <div class = " landing-actions" >
1313 <a class = " landing-button landing-button--primary" href = " /bindings/" >Start with bindings</a >
@@ -17,50 +17,53 @@ import { Tabs, TabItem } from '@astrojs/starlight/components';
1717
1818## Quick start
1919
20- ### Script tag (global)
20+ ### Browser
2121
22- ``` html
23- <script src =" https://cdn.jsdelivr.net/npm/@tko/build.knockout/dist/browser.min.js" ></script >
24- <script >
25- const ko = globalThis .ko
26- </script >
27- ```
28-
29- ### ES module (browser)
30-
31- ``` html
32- <script type =" module" >
33- import ko from ' https://esm.run/@tko/build.knockout'
34- const name = ko .observable (' TKO' )
35- </script >
36- ```
22+ <Tabs syncKey = " script" >
23+ <TabItem label = " ES module" >
24+ ``` html
25+ <script type =" module" >
26+ import ko from ' https://esm.run/@tko/build.reference'
27+ const name = ko .observable (' TKO' )
28+ </script >
29+ ```
30+ </TabItem >
31+ <TabItem label = " Classic script" >
32+ ``` html
33+ <script src =" https://cdn.jsdelivr.net/npm/@tko/build.reference/dist/browser.min.js" ></script >
34+ <script >
35+ const ko = globalThis .tko
36+ </script >
37+ ```
38+ </TabItem >
39+ </Tabs >
3740
3841### Package manager
3942
4043<Tabs syncKey = " pkg" >
4144 <TabItem label = " npm" >
4245 ``` sh
43- npm install @tko/build.knockout
46+ npm install @tko/build.reference
4447 ```
4548 </TabItem >
4649 <TabItem label = " bun" >
4750 ``` sh
48- bun add @tko/build.knockout
51+ bun add @tko/build.reference
4952 ```
5053 </TabItem >
5154 <TabItem label = " pnpm" >
5255 ``` sh
53- pnpm add @tko/build.knockout
56+ pnpm add @tko/build.reference
5457 ```
5558 </TabItem >
5659 <TabItem label = " yarn" >
5760 ``` sh
58- yarn add @tko/build.knockout
61+ yarn add @tko/build.reference
5962 ```
6063 </TabItem >
6164</Tabs >
6265
63- For the modern TSX / ` ko-* ` path , use ` @tko/build.reference ` instead.
66+ For Knockout 3.x compatibility , use ` @tko/build.knockout ` instead.
6467
6568## First binding example
6669
@@ -73,25 +76,26 @@ For the modern TSX / `ko-*` path, use `@tko/build.reference` instead.
7376 <p >Hello, <strong data-bind =" text: name" ></strong >.</p >
7477</div >
7578
76- <script src =" https://cdn.jsdelivr.net/npm/@tko/build.knockout /dist/browser.min.js" ></script >
79+ <script src =" https://cdn.jsdelivr.net/npm/@tko/build.reference /dist/browser.min.js" ></script >
7780<script >
81+ const ko = globalThis .tko
7882 ko .applyBindings ({ name: ko .observable (' TKO' ) }, document .getElementById (' app' ))
7983 </script >
8084```
8185
8286## Choose a build
8387
8488<div class = " landing-grid" >
85- <a class = " landing-card" href = " /bindings/" >
86- <span class = " landing-card__eyebrow" >Recommended for migrations</span >
87- <h3 ><code >@tko/build .knockout</code ></h3 >
88- <p >Compatibility-focused. Closest match to a traditional Knockout application. Includes ` data-bind ` and ` foreach ` .</p >
89- </a >
9089 <a class = " landing-card" href = " /advanced/provider/" >
91- <span class = " landing-card__eyebrow" >Recommended for new projects </span >
90+ <span class = " landing-card__eyebrow" >Recommended</span >
9291 <h3 ><code >@tko/build .reference</code ></h3 >
9392 <p >Modern path with TSX, ` ko-* ` attributes, native provider, and strict equality in expressions.</p >
9493 </a >
94+ <a class = " landing-card" href = " /3to4/" >
95+ <span class = " landing-card__eyebrow" >Knockout 3.x migrations</span >
96+ <h3 ><code >@tko/build .knockout</code ></h3 >
97+ <p >Compatibility-focused. Drop-in replacement for existing Knockout applications.</p >
98+ </a >
9599</div >
96100
97101## What stays familiar
@@ -118,6 +122,11 @@ For the modern TSX / `ko-*` path, use `@tko/build.reference` instead.
118122 <h3 >Components</h3 >
119123 <p >Reusable UI, loading strategies, and component architecture.</p >
120124 </a >
125+ <a class = " landing-card" href = " /examples/" >
126+ <span class = " landing-card__eyebrow" >See it in action</span >
127+ <h3 >Examples</h3 >
128+ <p >Interactive demos showing observable updates, dependency graphs, and reactive state.</p >
129+ </a >
121130</div >
122131
123132## Community
0 commit comments