Create a Project
This page covers the default Frontron start path.
Most users should begin here, not with manual setup.
If you already have a compatible web app and want to retrofit desktop support into it, use Install into an Existing Project instead.
1. Requirements
- Node.js
22+ - npm, yarn, pnpm, or bun
2. The default create command
bash
npm create frontron@latest my-appYou can also run:
bash
npx create-frontron@latest my-appThis creates a new my-app folder and fills it with the official Frontron starter.
The generator takes care of:
- copying the React + Vite starter
- setting the
package.jsonname from your project name - creating the root
frontron.config.ts - preparing the
frontron/app-layer structure - wiring
app:devandapp:build
3. Interactive mode
If you have not picked a name yet, you can run:
bash
npm create frontron@latestThat mode asks for the project name interactively.
4. What gets created?
At first, it is enough to know this shape:
text
my-app/
public/
src/
frontron.config.ts
frontron/
config.ts
bridge/
windows/
package.json
vite.config.tspublic/: static files such as the app iconsrc/: the starter web frontend you will customizefrontron.config.ts: the official config entrypointfrontron/: the desktop-side app-layer areapackage.json: scripts such asapp:devandapp:build
5. The easiest first workflow
- Create the starter project
- Run
npm install - Run
npm run app:dev - Change something visible
- Run
npm run app:build
TIP
This path is the fastest way to see Frontron working end to end.