Getting Started with Lynxtron
Welcome to the Lynxtron documentation! We will create a Lynxtron project and start developing.
System Requirements
Before you begin, ensure your development environment meets the following requirements:
- Node.js 22: or later. You can check your version by running
node -v. - TypeScript: The project might be written in TypeScript.
- Chrome Browser: Used for debugging the Lynxtron main process.
- LynxDevTool: used for debugging Lynx. You can download it from here.
Create a Project
It is recommended to quickly create a Lynxtron project by executing the following command:
Follow the prompts to create a Lynxtron project.
Start Development
- Navigate into your Lynxtron project:
-
Install dependencies:
-
Start the application:
After running, you will see the Hello Lynxtron application launch successfully, as shown below:

Debugging Your Application
1. Debugging the Main Process
The main process runs in Node.js. You can debug it using Google Chrome's Developer Tools.
- Run
npm run dev. - Open Google Chrome and navigate to
chrome://inspect. - Click the Configure... button and make sure
localhost:9222is in the target discovery list. - You should see your application's
main.jsunder Remote Target. Click inspect to open the DevTools.
Now you can set breakpoints, inspect variables, and see console.log output from main.js.
2. Debugging Lynx
Lynx is debugged using LynxDevTool.
- Make sure
npm run devis running. - Visit Lynx DevTool to download and open the Lynx DevTool desktop application.
- It should automatically connect to the development server. You can now inspect the UI element tree, view console output, and debug your React components.
Package Your Application
You can use the following command to package your application:
If you need to configure some custom parameters, you can modify the electron-builder.yml configuration file.
For detailed configuration parameters of electron-builder.yml, please refer to electron-builder Configuration.