@rockpack/starter

May 21, 2026 ยท View on GitHub

Rockpack

@rockpack/starter

@rockpack/starter is a CLI scaffolding tool for React applications. It generates a fully configured project - Webpack, TypeScript, ESLint, and Jest - in a single command.

This module is part of the Rockpack project. See more details on the official site.

Application types

  • React SPA - Client-side React app with Webpack, TypeScript, ESLint, and Jest preconfigured.
  • React SPA + SSR - Universal React app with SSR, hydration, and a Node.js server. No setup needed.
  • React Component - NPM-ready React component with TypeScript declarations and an optimized bundle.
  • UMD Library - Framework-agnostic UMD library for NPM, zero configuration required.

All project types include:

  • Import support for many file formats. Full list
  • Image and SVG optimization; SVG files importable as React components
  • CSS/SCSS/Less modules with TypeScript support
  • PostCSS: Tailwind, autoprefixer, postcss-custom-media, postcss-media-minmax
  • SEO and React optimizations
  • Dotenv and Dotenv safe support
  • Bundle Analyzer, Statoscope
  • GraphQL support

Optional add-ons for each project type:

AI-Assisted Development

Every project scaffolded by @rockpack/starter is ready for AI-assisted development from the first commit.

  • Test coverage from day one - Jest is pre-configured, so AI-generated code is validated immediately.
  • Quality gates - ESLint with strict rules prevents low-quality or inconsistent code from entering the repository.
  • Preconfigured CLAUDE.md - optimized for minimal context usage, cost-efficient test runs, and architecture-consistent changes.

This makes Rockpack projects a reliable foundation for teams working with Claude Code or similar AI tools.

Requirements

  • Node.js 23 or higher

Using

  1. Installation:
npm i @rockpack/starter -g
  1. Creating an app:
rockpack <project-name>
  1. Select the type of application.

Rockpack Starter


Arguments

--yarn - use Yarn as the default package manager:

rockpack <project-name> --yarn

If you cannot use @rockpack/starter or want to migrate an existing application, refer to the manual for each module:

The MIT License

MIT