Try with Explorer
Use Lynx Explorer, 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 or build a new app on an app framework.
System Requirements
- Node.js 20.19 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,
which sets up everything automatically for you. To create a project, run:
It asks which build tool to use: Rsbuild with pluginReactLynx (recommended), Rspeedy, or Rslib 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.
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 guide.
A version of Lynx Explorer is also available on the App Store, 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.
- Install Xcode
Open up the Mac App Store, search for Xcode, and click Install (or Update if you have it already).
- Download LynxExplorer
Download LynxExplorer-arm64.app.tar.gz.
Then extract the downloaded archive:
- 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.
Start developing
- Navigate to the created project:
- Install the NPM dependencies with package manager:
- To start the development server, run:
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".
- 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.
Debugging
Visit Lynx DevTool to download and open the Lynx DevTool desktop application. Use a USB cable to connect the debugging device, and start debugging.
Visit Debugging, 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.
Describing UI
Lynx makes it easy to create rich UI using familiar Web technology. Learn how to describe UI in the Lynx engine.
