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

# Try with Explorer

- Try with Explorer: Run Lynx pages in the pre-built sandbox app (iOS, Android, HarmonyOS, Web, macOS, Windows)
- [Integrate with Existing Apps](/next/guide/start/integrate-with-existing-apps): Use Lynx as a UI building block in your native or web app (iOS, Android, HarmonyOS, Web, macOS, Windows)
- [Build with an App Framework](/next/guide/start/build-with-app-framework): Build a new mobile or desktop app on a Lynx-based framework (iOS, Android, macOS, Windows)


Use [Lynx Explorer](https://github.com/lynx-family/lynx), a pre-built sandbox app, to start developing and previewing Lynx pages instantly, no native toolchain required. Great for learning, prototyping, and development. For production deployment, [integrate with your existing app](/next/guide/start/integrate-with-existing-apps.md) or [build a new app on an app framework](/next/guide/start/build-with-app-framework.md).

### System Requirements

- [Node.js 20.19](https://nodejs.org/en) or later. Node.js 22.12 or later is also supported.

### Create a new Lynx project

It is recommended to start a new project using [`@lynx-js/create-lynx`](https://www.npmjs.com/package/@lynx-js/create-lynx),
which sets up everything automatically for you. To create a project, run:


```sh [npm]
npm create @lynx-js/lynx@latest
```

```sh [yarn]
yarn create @lynx-js/lynx
```

```sh [pnpm]
pnpm create @lynx-js/lynx@latest
```

```sh [bun]
bun create @lynx-js/lynx@latest
```

```sh [deno]
deno init --npm @lynx-js/lynx@latest
```

It asks which build tool to use: [Rsbuild](https://rsbuild.rs/) with [`pluginReactLynx`](/next/api/packages/react-rsbuild-plugin/functions/pluginReactLynx.md) (recommended), [Rspeedy](/next/guide/build/rspeedy.md), or [Rslib](https://rslib.rs/) for a component library. After completing the prompts, `@lynx-js/create-lynx` will create a folder with your project name.

### Prepare Lynx Explorer

Lynx Explorer is a sandbox for trying out Lynx quickly.

iOS SimulatorAndroidHarmonyOS

We currently only provide pre-built binaries for the iOS simulator. If you need to run Lynx Explorer on a real iOS device, you'll need to build it from source. Please refer to the [Build Lynx Explorer for iOS](https://github.com/lynx-family/lynx/tree/develop/explorer/darwin/ios) guide.

:::info
A version of Lynx Explorer is also available on the [App Store](https://apps.apple.com/us/app/lynx-go-dev-explorer/id6743227790), published by community contributors.
While this version is not reviewed and maintained by the Lynx team, we're thankful to the community for making it more convenient for developers to try out Lynx on iOS.
:::

1. **Install Xcode**

Open up the Mac App Store, search for [Xcode](https://apps.apple.com/us/app/xcode/id497799835), and click Install (or Update if you have it already).

2. **Download LynxExplorer**

macOS (arm64)macOS (x86_64)

Download [`LynxExplorer-arm64.app.tar.gz`](https://github.com/lynx-family/lynx/releases/download/4.2.0/LynxExplorer-arm64.app.tar.gz).

Then extract the downloaded archive:

```bash
mkdir -p LynxExplorer-arm64.app/
tar -zxf LynxExplorer-arm64.app.tar.gz -C LynxExplorer-arm64.app/
```

3. **Install LynxExplorer on Simulator**

Open Xcode, choose **Open Developer Tool** from the Xcode menu. Click the **Simulator** to launch a simulator. Drag "LynxExplorer-arm64.app" into it.

Download [`LynxExplorer-x86_64.app.tar.gz`](https://github.com/lynx-family/lynx/releases/download/4.2.0/LynxExplorer-x86_64.app.tar.gz).

Then, extract the downloaded archive:

```bash
mkdir -p LynxExplorer-x86_64.app/
tar -zxf LynxExplorer-x86_64.app.tar.gz -C LynxExplorer-x86_64.app/
```

3. **Install LynxExplorer on Simulator**

Open Xcode, choose **Open Developer Tool** from the Xcode menu. Click the **Simulator** to launch a simulator. Drag "LynxExplorer-x86_64.app" into it.

Scan the QR code to download the pre-built app from [GitHub Release 4.2.0](https://github.com/lynx-family/lynx/releases/tag/4.2.0).

[LynxExplorer-noasan-release.apk](https://github.com/lynx-family/lynx/releases/download/4.2.0/LynxExplorer-noasan-release.apk)
Or, you may build from source by following the [Build Lynx Explorer for Android](https://github.com/lynx-family/lynx/tree/develop/explorer/android) guide.

:::info
A version of Lynx Explorer is also available on the [Play Store](https://play.google.com/store/apps/details?id=com.funcs.io.lynx.go), published by community contributors.
While this version is not reviewed and maintained by the Lynx team, we're thankful to the community for making it more convenient for developers to try out Lynx on Android.
:::

We currently only provide pre-built binaries for the harmony simulator. If you need to run Lynx Explorer on a real harmony device, you'll need to build it from source. Please refer to the [Build Lynx Explorer for Harmony](https://github.com/lynx-family/lynx/tree/develop/explorer/harmony) guide.

1. **Install DevEco Studio**

Download the latest DevEco Studio from the [official website](https://developer.huawei.com/consumer/en/deveco-studio/).

2. **Download Lynx Explorer**

Download the pre-built app [`lynx_explorer-default-unsigned.hap`](https://github.com/lynx-family/lynx/releases/download/4.2.0/lynx_explorer-default-unsigned.hap).

Or, you may build from source by following the [Build Lynx Explorer for Harmony](https://github.com/lynx-family/lynx/tree/develop/explorer/harmony) guide.

3. **Install Lynx Explorer on Simulator**

```bash
hdc install lynx_explorer-default-unsigned.hap
```

### Start developing

1. Navigate to the created project:

```bash
cd <project-name>
```

2. Install the NPM dependencies with package manager:


```sh [npm]
npm install
```

```sh [yarn]
yarn install
```

```sh [pnpm]
pnpm install
```

```sh [bun]
bun install
```

```sh [deno]
deno install
```

3. To start the development server, run:


```sh [npm]
npm run dev
```

```sh [yarn]
yarn run dev
```

```sh [pnpm]
pnpm run dev
```

```sh [bun]
bun run dev
```

```sh [deno]
deno run npm:dev
```

You will see a QR code showing up in the terminal, scan with your Lynx Explorer App or if you are using the simulator, just copy the bundle URL and paste it on the "Enter Card URL" input in the Lynx Explorer App and hit "Go".

4. Make your first change

Open the `src/App.tsx` file in your code editor and make a change.

You should see the UI on your Lynx Explorer being updated automatically.

**This is an example below: hello-world**

**Bundle:** `dist/main.lynx.bundle` | Web: `dist/main.web.bundle`

```tsx
import { useCallback, useEffect, useState } from "@lynx-js/react";

import "./App.css";
import arrow from "./assets/arrow.png";
import lynxLogo from "./assets/lynx-logo.png";
import reactLynxLogo from "./assets/react-logo.png";

export function App() {
  const [alterLogo, setAlterLogo] = useState(false);

  useEffect(() => {
    console.info("Hello, ReactLynx");
  }, []);

  const onTap = useCallback(() => {
    "background-only";
    setAlterLogo(!alterLogo);
  }, [alterLogo]);

  return (
    <page>
      <view className="Background" />
      <view className="App">
        <view className="Banner">
          <view className="Logo" bindtap={onTap}>
            {alterLogo
              ? <image src={reactLynxLogo} className="Logo--react" />
              : <image src={lynxLogo} className="Logo--lynx" />}
          </view>
          <text className="Title">React</text>
          <text className="Subtitle">on Lynx</text>
        </view>
        <view className="Content">
          <image src={arrow} className="Arrow" />
          <text className="Description">Tap the logo and have fun!</text>
          <text className="Hint">
            Edit<text style={{ fontStyle: "italic", color: "rgba(255, 255, 255, 0.85)" }}>{" src/App.tsx "}</text>
            to see updates!
          </text>
        </view>
        <view style={{ flex: 1 }}></view>
      </view>
    </page>
  );
}

```

v0.7.0





### Debugging

Visit [Lynx DevTool](https://github.com/lynx-family/lynx-devtool/releases) to download and open the Lynx DevTool desktop application. Use a USB cable to connect the debugging device, and start debugging.

Visit [Debugging](/next/guide/devtool/panels.md), learn how to debug your Lynx app.

## Next Steps

Here are a few things that we recommend exploring next. You can read them in any order.

### ReactLynx

ReactLynx is the official React framework designed specifically for Lynx, offering a familiar and idiomatic React development experience.

- [Tutorial](/next/learn/gallery): Step-by-step walkthrough of building a Gallery page with Lynx

- [Thinking in ReactLynx](/next/react/thinking-in-reactlynx): Learn how to think in the ReactLynx framework


### Describing UI

Lynx makes it easy to create rich UI using familiar Web technology.
Learn how to describe UI in the Lynx engine.

- [Elements](/next/guide/ui/elements-components): Check out the built-in elements that Lynx provides

- [Styling](/next/guide/ui/styling): Learn how to apply different styles in Lynx





- [Layout](/next/guide/ui/layout): Layout your elements and Components

- [Scrolling](/next/guide/ui/scrolling): Learn how to use scrollable elements in Lynx

