Registry / web-framework / generator-jhipster

generator-jhipster

JSON →
library9.0.0jsnpmunverified

JHipster is an open-source development platform used to quickly generate, develop, and deploy modern web applications and microservices. It combines popular frontend frameworks like Angular, React, and Vue with a robust Spring Boot backend, supporting various database options and authentication mechanisms. The current stable version is 9.0.0, released in late 2024. JHipster follows a rapid release cadence, with several minor and patch releases within major versions, and new major versions introducing significant technology stack upgrades (e.g., Spring Boot 4, Angular 21, React 19 in v9). Its key differentiators include comprehensive full-stack generation with production-ready defaults, extensive customization options via a powerful CLI, and strong support for microservices architectures, making it suitable for enterprise-grade applications. The project recently underwent a complete TypeScript rewrite for its generator core, enhancing maintainability and developer experience.

npm install generator-jhipster
INSTALL
IMPORT
SIG · GENERATOR-JHIPSTER
G
generator-jhipster
web-frameworkjavascriptv9.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JHipsterGenerator
import { JHipsterGenerator } from 'generator-jhipster';
const JHipsterGenerator = require('generator-jhipster');
This represents the main generator class, primarily for programmatic testing or extending JHipster. Version 9 is ESM-first, so CommonJS `require` is incorrect for direct imports.
type JHipsterApplicationConfiguration
import type { JHipsterApplicationConfiguration } from 'generator-jhipster';
import { JHipsterApplicationConfiguration } from 'generator-jhipster';
Use `import type` for type-only imports to prevent bundling issues and ensure correct type inference for configuration objects. This type defines the structure of the application's `.yo-rc.json`.
JDLParser
import { JDLParser } from 'generator-jhipster';
import JDLParser from 'generator-jhipster/lib/jdl-parser';
For parsing JHipster Domain Language (JDL) files programmatically. Older CommonJS versions might have used direct submodule paths or default exports; V9 uses a flattened ESM structure with named exports.

This quickstart outlines the essential steps to install the JHipster generator and scaffold a new full-stack application using the `yo jhipster` command-line interface.

// Quickstart for JHipster v9.0.0 // This demonstrates the typical setup and generation of a JHipster application. // 1. Install Yeoman globally if you haven't already. // Yeoman is the scaffolding tool that runs JHipster generators. console.log('Installing Yeoman globally...'); // npm install -g yo // 2. Install the JHipster generator globally. console.log('Installing JHipster generator globally...'); // npm install -g generator-jhipster // 3. Create a new directory for your application and navigate into it. // mkdir myapp // cd myapp // 4. Run the JHipster generator. This will start an interactive prompt // where you can configure your application's type, technologies, and features. console.log('Running JHipster generator...'); // yo jhipster // During the interactive process, you'll be asked questions such as: // - Which type of application would you like to create? (Monolithic, Microservice, Gateway) // - Which front-end framework would you like to use? (Angular, React, Vue) // - Which type of authentication would you like to use? (JWT, OAuth 2.0, Session) // - Which database would you like to use? (SQL, MongoDB, Cassandra, etc.) // - Which build tool would you like to use? (Maven, Gradle) // After generation, you can run your application. console.log('JHipster application generated. To run:'); console.log(' cd myapp'); console.log(' ./mvnw (for Maven) or ./gradlew (for Gradle) to build and run the backend.'); console.log(' npm start or yarn start (in the frontend folder) to run the frontend.'); // This provides a full-stack application ready for development.
jhipster --version
Debug
Known issues
breakingJHipster v9 introduces significant technology stack upgrades, including Spring Boot 4, Angular 21 (with zoneless by default), React 19 (replacing reactstrap with react-bootstrap), minimum Java 21, and minimum Node.js 22. Existing projects must update their environment and potentially migrate codebases.
fix
Review the official JHipster v9 release notes and migration guide. Ensure your development environment meets the new Java and Node.js requirements. For frontends, be aware of zoneless Angular changes and the React-bootstrap transition.
affects: >=9.0.0
breakingReact applications generated with JHipster v9 now use `react-bootstrap` instead of `reactstrap`. This change requires refactoring any custom React components that previously relied on `reactstrap`'s API or components.
fix
Migrate your React component code to use `react-bootstrap` components and utilities. Consult `react-bootstrap` documentation for equivalent components and API changes.
affects: >=9.0.0
breakingAngular applications generated with JHipster v9 are now zoneless by default. This significantly changes change detection mechanisms and might require adjustments to code that explicitly relied on Zone.js, particularly for third-party libraries or manual change detection triggers.
fix
Familiarize yourself with Angular's zoneless change detection. Update components to use signals or other Angular reactive primitives. Debugging tools might need to be adjusted for zoneless applications.
affects: >=9.0.0
gotchaVersion 9.0.0-beta.1 was broken, causing the CLI to fail with 'Cannot find package 'yeoman-test'' errors when installed globally.
fix
Avoid installing or using `v9.0.0-beta.1`. Upgrade to `v9.0.0-beta.3` or later stable versions.
affects: 9.0.0-beta.1
gotchaVersion 9.0.0-beta.2 was broken, leading to 'Maximum call stack size exceeded' errors when parsing JDL (JHipster Domain Language) files.
fix
Avoid installing or using `v9.0.0-beta.2`. Upgrade to `v9.0.0-beta.3` or later stable versions.
affects: 9.0.0-beta.2
Errors
Common errors & fixes
Cannot find package 'yeoman-test'
An issue in `generator-jhipster@9.0.0-beta.1` caused `yeoman-test` to be incorrectly resolved when the generator was installed globally.
fix
Upgrade `generator-jhipster` to version `9.0.0-beta.3` or any subsequent stable release (e.g., `npm install -g generator-jhipster@latest`).
Maximum call stack size exceeded
A bug in the `chevrotain` dependency used by `generator-jhipster@9.0.0-beta.2` led to stack overflow errors during JDL file parsing.
fix
Upgrade `generator-jhipster` to version `9.0.0-beta.3` or any subsequent stable release (e.g., `npm install -g generator-jhipster@latest`).
Upgrade
Version history
9.0.0latest on npm
Audit
Dependencies
yeoman-testrequiredPeer dependency required for testing JHipster generators programmatically.
Agent activity
26 hits · last 30 days
node
20
Amazon
1
OpenAI (training)
1
Resources