> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# Examples

Small, complete AngularLynx apps, each focused on one feature or screen. Every example page runs the app live next to its source code.

## Using the previews

Each page embeds a live preview, which shows the code and the running app side by side:

- **Code** — the example's source, opened at its main file. Open **Files** to browse every file in the project.
- **Web** — runs the example in your browser through the web renderer of [Lynx](/guide/glossary.md#lynx). It's close to a phone, but not identical.
- **QR Code** — scan it with **Lynx Explorer** (Lynx's dev app for phones, see [Glossary](/guide/glossary.md#lynx-explorer)) to run the example on a real device.

The preview's footer names the example's folder, and its GitHub button opens that folder in the repository.

## Run an example locally

Every example is an Angular project in the repository's [`examples/`](https://github.com/Blotch-Smart-Frames/AngularLynx/tree/master/examples) folder. You need Node.js 22.12 or newer. Clone the repository, then start an example by its folder name:

```bash
git clone https://github.com/Blotch-Smart-Frames/AngularLynx.git
cd AngularLynx
npm install
npx turbo run start --filter=@angular-lynx-example/hello-world
```

- **Pick an example** — replace `hello-world` with the folder name from the preview's footer.
- **What the command does** — it builds the AngularLynx packages the example needs, then runs `ng serve`.
- **Open it** — `ng serve` prints a QR code for Lynx Explorer and a link to the **web preview** ([Glossary](/guide/glossary.md#web-preview)). See [Quick Start](/guide/quick-start.md).

## Showcase

| Example                                       | What it shows                                                                                                          |
| --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| [Facet: a gem atlas](/examples/showcase.md)   | One real app with most of AngularLynx in it: GPU 3D, Liquid Glass, charts, gestures, a list, routes, storage           |
| [Orrery](/examples/solar-system.md)           | The solar system at today's positions in three.js with hand-written GLSL: fly to a planet, spin it, turn time          |
| [Darkroom](/examples/darkroom.md)             | A film photo editor: a photo developed live by WebGL2 shaders, a test strip of every stock, export to the share sheet  |
| [Par Avion](/examples/chat.md)                | A chat app: older letters loading as you scroll up, swipe to reply, reactions, photos, the keyboard, native navigation |
| [Vitrine](/examples/museum.md)                | A real museum's collection over its live API: tabs that each keep a stack, paging, two-finger zoom, splash, shortcuts  |
| [Furniture shop](/examples/furniture-shop.md) | The Lynx tutorials' gallery and product page as one app: a waterfall list, a main-thread swiper, two routes            |

## Getting Started

| Example                                 | What it shows                                         |
| --------------------------------------- | ----------------------------------------------------- |
| [Hello World](/examples/hello-world.md) | Lynx elements, a signal and a tap handler             |
| [Counter](/examples/counter.md)         | `computed()` state and the Button and Card components |
| [Todo List](/examples/todo-list.md)     | `@for`, text input and `(catchtap)`                   |
| [Form Input](/examples/form-input.md)   | `<input>` and `<textarea>` events                     |
| [Signal Forms](/examples/forms.md)      | Angular signal forms with validation                  |
| [Web Tags](/examples/web-tags.md)       | A card written with HTML tags and DOM events          |

## App Patterns

Full screens built from the [UI components](/dolan/index.md).

| Example                                                 | What it shows                                          |
| ------------------------------------------------------- | ------------------------------------------------------ |
| [Settings Page](/examples/settings-page.md)             | Switches, a select, a radio group and a confirm dialog |
| [User Profile](/examples/user-profile.md)               | Avatar, badge, card and an edit sheet                  |
| [Notification Center](/examples/notification-center.md) | Long-press actions, toasts and an empty state          |
| [Checkout Form](/examples/checkout-form.md)             | A multi-step form with a progress bar                  |
| [FAQ / Help Center](/examples/faq-help-center.md)       | Search, collapsible groups, an accordion and a dialog  |
| [Loading States](/examples/loading-states.md)           | Progress bars, skeletons, spinners and toasts          |
| [Task Manager](/examples/task-manager.md)               | Filtered tabs, checkboxes, a sheet and an action sheet |
| [Media Player](/examples/media-player.md)               | Toggles, a progress bar and a collapsible queue        |
| [Onboarding Wizard](/examples/onboarding-wizard.md)     | Steps, a radio group and selectable cards              |
| [Contact List](/examples/contact-list.md)               | Search, sticky headers, dialogs and an alert dialog    |

## Layout & Scrolling

| Example                                         | What it shows                           |
| ----------------------------------------------- | --------------------------------------- |
| [Infinite Scroll](/examples/infinite-scroll.md) | `<list>` loading more rows near the end |
| [Pull to Refresh](/examples/pull-to-refresh.md) | `<refresh>` and `<refresh-header>`      |

## Interaction

| Example                                         | What it shows                                         |
| ----------------------------------------------- | ----------------------------------------------------- |
| [Gestures](/examples/gestures.md)               | Pan, tap and exclusive gestures with `[lynxGesture]`  |
| [Modal Dialog](/examples/modal-dialog.md)       | `<overlay>` with a tap-to-close backdrop              |
| [Main-Thread Scripts](/examples/main-thread.md) | `mainThreadFn()` handlers that restyle on every touch |

## Animation

| Example                                                 | What it shows                                    |
| ------------------------------------------------------- | ------------------------------------------------ |
| [Animations](/examples/animations.md)                   | CSS transitions, `@keyframes` and `animate()`    |
| [Enter and Leave Transitions](/examples/transitions.md) | `LynxTransition` and `LynxTransitionGroup`       |
| [Stack Navigation](/examples/stack-navigation.md)       | Screens that slide in and out, with a swipe back |

## Styling

| Example                                   | What it shows                                 |
| ----------------------------------------- | --------------------------------------------- |
| [CSS Modules](/examples/css-modules.md)   | Hashed, scoped class names                    |
| [Custom Fonts](/examples/custom-fonts.md) | Font files loaded with `@font-face`           |
| [Tailwind CSS 4](/examples/tailwind-4.md) | Tailwind 4 utilities and the UI theme on Lynx |

## Data & State

| Example                                               | What it shows                                                             |
| ----------------------------------------------------- | ------------------------------------------------------------------------- |
| [Host Data](/examples/data-flow.md)                   | `LynxInitData` and `LynxGlobalData` as signals                            |
| [Session Storage](/examples/session-storage.md)       | `LynxSessionStorage` with a reactive `watch()`                            |
| [Persistent Storage](/examples/persistent-storage.md) | `LynxLocalStorage` and `LynxSecureStorage` keeping values after a restart |

## Platform

| Example                                       | What it shows                                            |
| --------------------------------------------- | -------------------------------------------------------- |
| [Defer Blocks](/examples/defer.md)            | `@defer` with signal and timer triggers                  |
| [Error Boundary](/examples/error-boundary.md) | `@boundary`, `$reset` and per-error fallbacks            |
| [Error Handling](/examples/error-handling.md) | Catching an error and showing it on screen               |
| [Internationalization](/examples/i18n.md)     | `i18n`, `$localize` and `LynxLocale`                     |
| [SSR](/examples/ssr.md)                       | Snapshot encoding with `ssrEncode()`                     |
| [Multi-Page](/examples/multi-page.md)         | Separate bundles from `lynx.config.ts` or `angular.json` |
