Skip to content
CAI
Software that uses CAICheck a score

react/create-react-app

42.4

Weak · 13 November 2026

10.1k

lines of production code

JavaScript

primary language

6

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is the Create React App monorepo, a deprecated toolset for scaffolding and building React applications. It provides a CLI for project initialization, a standardized build pipeline powered by Webpack and Babel, and a suite of shared development utilities including ESLint configurations and a source-map-aware error overlay. The repository also hosts the official documentation site and maintains templates for both JavaScript and TypeScript projects.

How it got here

2016–2017 — monorepo initialization and tooling foundation

20 changes.

This period established the Create React App monorepo structure using Lerna, defining the core configuration for linting, formatting, and dependency management. It introduced the foundational packages for the CLI, build scripts, and shared utilities, while simultaneously rewriting the error overlay in React to improve developer experience and debugging capabilities.

2018–2021 — React 18 migration and template modernization

30 changes.

This period focused on updating the default project templates to use React 18's createRoot API and StrictMode, while adding comprehensive test fixtures to validate modern JavaScript syntax, TypeScript features, and asset handling. The documentation site was migrated to Docusaurus 2 and updated to reflect the project's deprecation status, alongside the introduction of new packages for Flow types and browser globals.

Features

Add confusing-browser-globals package

A new package, confusing-browser-globals, has been added to provide a curated list of browser global variables that commonly cause confusion (such as \event\, \name\, and \status\). This list can be used with ESLint's \no-restricted-globals\ rule to prevent accidental usage of these globals without an explicit \window.\ qualifier, helping to avoid subtle bugs in JavaScript applications.

packages/confusing-browser-globals · high confidence

Add default template files for Create React App

The Create React App template now includes a README.md and a .gitignore file. The README provides standard documentation on available scripts (start, test, build, eject) and links to further resources, while the .gitignore ensures that common build artifacts, dependencies, and environment files are excluded from version control.

packages/cra-template/template · high confidence

Add error-capturing effects for console, stack traces, and unhandled errors

The react-error-overlay now includes a new set of 'effects' modules that actively capture runtime issues to improve error reporting. Specifically, it registers handlers for unhandled errors and unhandled promise rejections, increases the JavaScript stack trace limit to 50 frames to provide more context, and proxies console methods to capture React component stack frames via vendor-prefixed hooks (console.reactStack/reactStackEnd).

packages/react-error-overlay/src/effects · high confidence

Add public assets template for TypeScript CRA

The TypeScript template now includes standard public assets: an HTML entry point with correct %PUBLIC\_URL% handling for favicons and icons, a web app manifest for PWA support, and a robots.txt file. This ensures generated apps have proper metadata, icon links, and SEO basics out of the box.

packages/cra-template-typescript/template/public · high confidence

Add syntax feature demos to the kitchensink template

The kitchensink template now includes a new \features/syntax\ directory containing demonstration components for modern JavaScript syntax, including array and object destructuring, spread/rest operators, async/await, generators, optional chaining, nullish coalescing, class properties, and template literals. Each feature is accompanied by a corresponding test to verify it renders without crashing, ensuring the template correctly supports these language constructs.

packages/react-scripts/fixtures/kitchensink/template/src/features/syntax · high confidence

Add webpack asset fixture files for testing

The kitchensink template now includes a set of sample asset files in the \src/features/webpack/assets\ directory to support testing of webpack's asset handling capabilities. These additions include CSS, SCSS, and SASS stylesheets (both standard and module variants), an SVG image, a JSON file, and files with unusual extensions or no extensions, providing a comprehensive set of resources for verifying asset inclusion and processing.

packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/assets · high confidence

Added Flow type declarations for external dependencies

The react-error-overlay package now includes a Flow type declaration file (env.js) that defines module exports for several external dependencies, including anser, @babel/code-frame, html-entities, settle-promise, and source-map. This allows the project to use Flow type checking while importing these libraries, resolving potential type errors during static analysis.

packages/react-error-overlay/flow · high confidence

Initial release of Create React App scripts

This change introduces the core \react-scripts\ CLI commands (\start\, \build\, \test\, \eject\, \init\) for the Create React App project. It establishes the default development workflow, including a production build process with bundle size warnings, a development server with proxy support and Fast Refresh, and a test runner that defaults to watch mode. The eject command is implemented to allow users to extract configuration files, and the init script sets up new projects with Git integration and template support.

packages/react-scripts/scripts · high confidence

Initial release of babel-preset-react-app

The \babel-preset-react-app\ package is introduced, providing the Babel configuration used by Create React App. It includes entry points for development, production, and test environments, along with support for Flow, TypeScript, and the new JSX runtime. The preset configures \@babel/preset-env\ with \core-js@3\, enables loose mode for class properties, and handles Babel macros with specific cache invalidation for Webpack.

packages/babel-preset-react-app · high confidence

Initial release of eslint-config-react-app package

The \eslint-config-react-app\ package is introduced as a shareable ESLint configuration for Create React App projects. It provides a base configuration (\base.js\) and a main configuration (\index.js\) that enforces React best practices, including accessibility checks via \jsx-a11y\, React hooks rules, and TypeScript-specific linting overrides. The package also includes a separate Jest configuration (\jest.js\) with rules for \eslint-plugin-jest\ and \eslint-plugin-testing-library\, allowing users to extend their ESLint setup with \react-app/jest\. The package is licensed under MIT and includes documentation for usage both within and outside of Create React App.

packages/eslint-config-react-app, packages/react-app-polyfill, packages/react-error-overlay · high confidence

Initial repository structure and configuration files

The repository is initialized with a standard set of configuration files for a monorepo managed by Lerna, including \.gitignore\, \.gitattributes\, \.prettierrc\, \.prettierignore\, \.eslintignore\, \.eslintrc.json\, \.alexignore\, and \.alexrc\. These files establish the baseline development environment, defining code formatting rules (Prettier), linting configurations (ESLint with React and Jest environments), and accessibility checks (Alex), alongside ignoring build artifacts, node modules, and specific test fixtures.

(repo-wide) · high confidence

Introduce named asset import plugin for SVGs

Adds a new Babel plugin that enables named imports for assets like SVGs, allowing developers to import React components from SVG files (e.g., \import { ReactComponent as Logo } from './logo.svg'\) which are transformed to use @svgr/webpack. The plugin also supports named exports from asset files and includes a comprehensive test suite to verify correct transformation of various import and export scenarios.

packages/babel-plugin-named-asset-import · high confidence

Introduce react-scripts CLI entry point with unhandled rejection handling

The react-scripts command-line interface now includes a dedicated entry point script that enforces strict error handling by throwing on unhandled promise rejections, ensuring the process exits with a non-zero code rather than failing silently. The CLI parses arguments to dispatch to core commands (build, eject, start, test) via a spawned Node process, and provides clear feedback when an unknown script is invoked, including a link to documentation for updating to new releases.

packages/react-scripts/bin · high confidence

Introduce source-map-aware error overlay with dark mode and ANSI support

The \react-error-overlay\ package now provides a React-based error overlay that maps generated code positions back to original source files using source maps, displaying the relevant source code context alongside the generated code. This change adds support for dark mode (respecting the system's \prefers-color-scheme\), renders ANSI-colored build errors (e.g., from Babel or ESLint) with proper syntax highlighting, and improves stack trace parsing to filter out internal React frames and provide cleaner, more readable error messages for developers.

packages/react-error-overlay/src/utils · high confidence

New local development and CI task scripts for end-to-end testing

The \tasks/\ directory now includes a suite of shell and Node.js scripts to support local development and continuous integration. This includes \cra.js\ for testing the Create React App CLI against local monorepo packages, \local-test.sh\ for running e2e suites in Docker containers, and \publish.sh\ for managing releases via Lerna. Additionally, several e2e test scripts (\e2e-simple.sh\, \e2e-kitchensink.sh\, \e2e-installs.sh\, \e2e-behavior.sh\, etc.) have been added to verify app creation, builds, and behavior using a local Verdaccio registry, alongside utilities for generating screencasts.

tasks · high confidence

Architecture

Extracted shared utilities into react-dev-utils package

The \react-dev-utils\ package has been introduced to centralize shared development tooling previously embedded in \react-scripts\. This extraction includes new modules for managing file size reporting (\FileSizeReporter\), handling module resolution errors (\ModuleNotFoundPlugin\), enforcing source-directory scoping (\ModuleScopePlugin\), and integrating TypeScript type checking (\ForkTsCheckerWebpackPlugin\). It also provides utilities for HTML interpolation (\InterpolateHtmlPlugin\), inlining chunks (\InlineChunkHtmlPlugin\), and custom ESLint formatting, along with helper functions for browser detection and console management.

packages/react-dev-utils · high confidence

Behavioural changes

Add template support for public assets

The CRA template now includes standard public assets: an index.html template that uses %PUBLIC\_URL% for favicon, apple-touch-icon, and manifest links to support non-root URLs and client-side routing; a manifest.json defining the app's metadata, icons, and PWA settings; and a robots.txt file with a default Disallow rule.

packages/cra-template/template/public · high confidence

Create React App CLI displays deprecation warning and enforces Node 14+ requirement

The global \create-react-app\ command now explicitly warns users that the tool is deprecated and directs them to react.dev for modern alternatives, showing this notice only once per installation. Additionally, the CLI enforces a minimum Node.js version of 14, exiting with an error if an older version is detected.

packages/create-react-app · high confidence

Custom site styling and responsive adjustments

The site's visual presentation is updated with a new primary color palette (teal) and responsive typography that adjusts base font sizes for mobile versus desktop views. The navbar brand logo is constrained to prevent shrinking, and the announcement bar styling is customized with specific padding, font weights, and link colors, including responsive adjustments for smaller screens.

docusaurus/website/src/css · high confidence

Homepage displays deprecation notice and updated styling

The website's homepage now explicitly informs users that Create React App is deprecated and directs them to react.dev for modern alternatives. This change includes a new landing page layout with updated CSS styles, specifically adjusting the background color for the 'Getting Started' section to ensure proper visibility in dark mode.

docusaurus/website/src/pages · high confidence

Introduce new configuration modules for environment, paths, and HTTPS handling

The \packages/react-scripts/config\ directory now includes dedicated modules for managing application configuration: \env.js\ loads \.env\ files and exposes environment variables (including \FAST\_REFRESH\ and \PUBLIC\_URL\) to the app; \paths.js\ resolves standard project paths like \src\, \public\, and build output; \modules.js\ configures module resolution and aliases based on \tsconfig.json\ or \jsconfig.json\ \baseUrl\; \getHttpsConfig.js\ validates and loads custom SSL certificates for the development server; and \webpackDevServer.config.js\ configures the dev server with options for custom WebSocket connections, CORS headers, and host checking. These files provide the foundational configuration logic used by the main \webpack.config.js\.

packages/react-scripts/config · high confidence

Jest configuration modularized with automatic JSX runtime support

The Jest configuration in react-scripts has been refactored into separate transformer modules (babelTransform, cssTransform, fileTransform) to improve maintainability. A key behavioral change is that the Babel transformer now automatically detects the presence of the React 17+ JSX runtime and configures babel-preset-react-app to use the 'automatic' runtime when available, falling back to 'classic' for older versions. Additionally, SVG imports are now transformed into React components using React.forwardRef, allowing them to be used directly in tests with props and refs, while other static assets continue to resolve to their filenames.

packages/react-scripts/config/jest · high confidence

Migrate documentation site to Docusaurus 2

The documentation website has been rebuilt using Docusaurus 2, replacing the previous static site structure. This change introduces a new configuration file (docusaurus.config.js) and a reorganized sidebar (sidebars.json) that groups content into categories such as Getting Started, Development, Styles and Assets, and Testing. The site now includes a deprecation announcement banner directing users to react.dev, updates community support links to use GitHub Discussions, and configures Algolia search. Users will see a refreshed navigation structure and modernized site infrastructure while accessing the same documentation content.

docusaurus/website · high confidence

New Jest configuration utility and TypeScript setup verification

The build tooling now includes a dedicated \createJestConfig.js\ utility that generates a standardized Jest configuration, enforcing \jsdom\ as the test environment, configuring transforms for JavaScript, TypeScript, CSS, and other assets, and allowing specific Jest options (such as \resetMocks\, \coveragePathIgnorePatterns\, and \testMatch\) to be overridden via \package.json\. Additionally, a new \verifyTypeScriptSetup.js\ script automatically detects TypeScript files, generates a \tsconfig.json\ with sensible defaults (including the new JSX transform for React 17+), validates the TypeScript installation, and ensures compiler options align with the webpack configuration.

packages/react-scripts/scripts/utils · high confidence

React Error Overlay UI components converted to React

The user interface components of the React Error Overlay (CloseButton, CodeBlock, Collapsible, ErrorOverlay, Footer, Header, and NavigationBar) have been rewritten as React functional components. This change introduces theme-aware styling via a ThemeContext, enabling features like dark mode support, and replaces previous implementation details with a modern React-based structure for better maintainability and consistency.

packages/react-error-overlay/src/components · high confidence

React error overlay is rewritten in React and runs inside an iframe

The error overlay in \packages/react-error-overlay/src\ has been converted from a legacy implementation to a React-based component that renders inside an iframe. This change introduces a dark theme alongside the existing light theme, exposes \reportRuntimeError\ and \dismissRuntimeErrors\ for programmatic control, and adds a warning when the overlay is included in production builds. The overlay now handles both compile and runtime errors, deduplicates identical runtime errors, and supports editor integration via a configurable handler.

packages/react-error-overlay/src · high confidence

Redesigned error overlay with click-to-open editor support

The development error overlay has been rewritten in React to provide a more structured and interactive experience. It now distinguishes between compile-time and runtime errors, offering a dedicated view for each. A key behavioral change is the addition of click-to-open support: clicking on file paths in stack traces or compile errors will now open the corresponding location in your editor (if an editor handler is configured). The runtime error view also includes navigation between multiple errors, keyboard shortcuts (Escape to close, arrows to navigate), and a toggle to view source or compiled code in stack frames.

packages/react-error-overlay/src/containers · high confidence

Update site domain to create-react-app.dev

The static CNAME file has been updated to point the site to create-react-app.dev, replacing the previous domain configuration. This change ensures that custom domain requests are correctly routed to the new hosting endpoint.

docusaurus/website/static · high confidence

Updated TypeScript template to use React 18 and React StrictMode

The TypeScript template now initializes the React application using the React 18 \createRoot\ API instead of the legacy \ReactDOM.render\, and wraps the root component in \React.StrictMode\ to enable additional development checks. The template also includes a default test file (\App.test.tsx\) that utilizes \@testing-library/react\ and imports \@testing-library/jest-dom\ in \setupTests.ts\ for enhanced DOM assertions.

packages/cra-template-typescript/template/src · high confidence

Updated TypeScript type definitions for environment variables and asset imports

The \react-app.d.ts\ type declaration file has been updated to improve type safety and support new asset formats. Environment variables \NODE\_ENV\ and \PUBLIC\_URL\ are now marked as \readonly\. Support for AVIF and WebP image imports has been added alongside existing formats. CSS module classes are now typed as \readonly\ objects. Additionally, the SVG component type has been updated to use \FunctionComponent\ instead of the deprecated \SFC\, and the \title\ prop is now included in the SVG component's type definition.

packages/react-scripts/lib · high confidence

Updated default template to use React 18 and add testing utilities

The default project template now initializes with React 18 using the new \createRoot\ API instead of the legacy \ReactDOM.render\, and wraps the application in \React.StrictMode\ by default. Additionally, the template now includes \@testing-library/react\ and \@testing-library/jest-dom\ for testing, along with a \reportWebVitals\ utility for performance monitoring, providing a more modern and testable starting point for new applications.

packages/cra-template/template/src · high confidence

Updated kitchensink template to use React 18 and modern syntax

The kitchensink fixture template has been updated to use React 18's \createRoot\ API for rendering and includes new feature examples for optional chaining, nullish coalescing, and base URL configuration. The entry point now initializes the root using \ReactDOMClient.createRoot\, and the App component dynamically loads various syntax and webpack feature demos based on the URL hash.

packages/react-scripts/fixtures/kitchensink/template/src · high confidence

Updated react-error-overlay fixtures for modern bundling and testing

The \packages/react-error-overlay/fixtures\ directory now includes new fixture files (\bundle-default.json\, \bundle.json\, \bundle.mjs\, and \bundle.mjs.map\) to support the overlay's testing and error reporting capabilities. These files provide structured error data and a modern ES module (\.mjs\) bundle with source maps, enabling the overlay to correctly parse and display stack traces and source code context for errors occurring in modern bundled applications.

packages/react-error-overlay/fixtures · high confidence

Test coverage

Add kitchensink template fixture for end-to-end testing; Added TypeScript fixture tests for decorators and module resolution; Added advanced TypeScript test fixture; Added integration tests for create-react-app; Added integration tests for template features; Added test coverage for TypeScript detection logic; Added test fixture for jsconfig baseUrl support; Added test fixtures for Bootstrap Sass, multiple runtimes, and Flow class properties; Added test for relative path resolution in production builds; Added tests for .mjs library support; Added tests for TypeScript type-checking error reporting; Added tests for react-dev-utils modules; Added tests for react-error-overlay parsing and mapping utilities; Added tests for template package resolution logic; Added tests for webpack build error message formatting; Expanded kitchen-sink template with webpack feature tests.

Dependencies

Initial monorepo structure and dependency setup for Create React App

This change establishes the Create React App monorepo using Lerna workspaces, introducing the root \package.json\ and \package-lock.json\ that manage the \packages/\*\ and \docusaurus/website\ directories. It defines the core internal packages (\react-scripts\, \react-dev-utils\, \babel-preset-react-app\, etc.) with their specific dependencies (e.g., Webpack 5, Babel 7, ESLint 8, Jest 27) and sets up the Docusaurus-based documentation site (\cra-docs\) with React 16 and Docusaurus 2.0.0-alpha.64. Additionally, it includes various template packages (\cra-template\, \cra-template-typescript\) and test fixtures required for the build and test infrastructure.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 41 → 42 (+1.2)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.3) — scores are not directly comparable.

Lenses

  • Code Health 39 → 39 (+0.1)
  • Architecture 89 → 77 (-11.6)
  • Maturity 52 → 51 (-1.2)
  • Readiness 31 → 30 (-0.4)
  • Security 64 → 70 (+5.7)
  • Accessibility 54 → 81 (+27.0)
  • Performance 100 → 100 (+0.0)

Resolved (14)

  • Documentation: written for insiders (docusaurus/docs/adding-a-css-modules-stylesheet.md)
  • Documentation: written for insiders (docusaurus/docs/adding-a-sass-stylesheet.md)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High vulnerability: [GHSA redacted] (package-lock.json)
  • No ADRs found

New (19)

  • Banned license: ua-parser-js (package-lock.json)
  • Documentation: no build, run or usage example (packages/cra-template/README.md)
  • Documentation: no build, run or usage example (packages/create-react-app/README.md)
  • Documentation: no build, run or usage example (packages/react-scripts/README.md)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High CVE: [GHSA redacted] (package-lock.json)
  • High vulnerability: [GHSA redacted] (package-lock.json)
  • Low CVE: [GHSA redacted] (package-lock.json)
  • No ADRs found (package.json)
  • doc comments repeat the names (packages/react-error-overlay/src/utils/stack-frame.js)
  • redundant comment (packages/react-scripts/scripts/eject.js)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

react/create-react-app was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 13 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 6254386531d263688ccfa542d0e628fbc0de0b28 — the exact code this score is about.
  • Scored under rubric-2026.11.3 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.61+preprod-f3449e6eb431.