Monorepo / Package Layout
npm workspaces monorepo. Two published packages plus a live test app.
| Path | Package | Role |
|---|---|---|
packages/create-nextop-app | create-nextop-app | CLI that scaffolds a project via npx create-nextop-app |
packages/nextop-app | nextop-app | Runtime library (hooks + main-process IPC) and the nextop CLI |
test/ | — | Live example copy of the scaffolded template (uses a linked nextop-app) |
packages/create-nextop-app/templates/default/ is the template the CLI copies. The scaffolded app
contains an app/ (Next.js App Router), an electron/ entry layer (main.ts, preload.ts,
startNext.ts, types.d.ts), next.config.mjs at the project root, Tailwind v4, and TypeScript.
Stack of a freshly scaffolded app: Next.js 16, React 19, Tailwind CSS v4, Electron 39, TypeScript 5, electron-builder 25.