CLI scaffolding for Spectre-ready applications. spectre-init creates a small vanilla TypeScript app with Spectre dependencies, local project guidance, and a predictable starter structure.
Issues | Pull requests | Security | Contributing
- Scaffolds a Spectre-ready vanilla TypeScript application.
- Copies the bundled
templates/vanillastarter into a new project directory. - Validates project names before writing files.
- Updates the generated package name to match the requested project.
- Runs
npm installafter scaffolding so the app is ready to start.
Run once with npx:
npx @phcdevworks/spectre-init my-appOr install globally:
npm install -g @phcdevworks/spectre-init
spectre-init my-appnpx @phcdevworks/spectre-init my-app
cd my-app
npm run devThis package exposes the spectre-init binary.
spectre-init <project-name>
spectre-init --help
spectre-init --versionThis package owns project scaffolding and starter templates. It does not own runtime routing, reactive state, design tokens, UI components, or framework adapters.
npm install
npm run checkUseful scripts:
npm run typecheckvalidates TypeScript without emitting files.npm run lintruns ESLint.npm run buildemits the CLI todist.npm run checkruns the standard package verification flow.
AI-agent coordination starts in AGENTS.md, with companion guidance in CLAUDE.md, CODEX.md, and .github/copilot-instructions.md.
See CHANGELOG.md.
MIT. See LICENSE.