Start
Create an app.
The recommended starting point is the npm create command. It creates a Cloudflare Worker app with routes, a shell, browser helpers, and one Shadow DOM component.
Create
npm create @nativefragments/app@latest my-app
cd my-app
npm install
npm run dev
Deploy
npm run deploy
Generated structure
worker.js
site/routes.js
site/shell.js
site/pages/home.js
public/app/client.js
public/app/components/app-counter.js
public/nativefragments/router.js
public/nativefragments/component.js