npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

hipster-wind

v1.0.1

Published

A JDL-to-Angular code generator

Readme

Hipster Wind

NPM Version NPM License

A powerful command-line tool to generate modern, standalone Angular components from a JHipster JDL file.

hipster-wind


What is this?

JHipster is an incredible platform for generating full-stack applications. However, the generated Angular frontends can sometimes be complex, tied to an older module-based architecture, and may require significant effort to customize.

hipster-wind is the solution.

It takes the best part of JHipster—the powerful JDL for defining your data model—and generates a clean, modern, and highly maintainable Angular frontend structure. It's designed to be lightweight, standalone, and easy to integrate into any Angular project that uses Material Design.

What does it generate?

For each entity defined in your JDL, hipster-wind creates a complete set of files following modern Angular best practices:

  • Standalone Components: A list component with a data table, sorting, pagination, and a side-drawer for creating and editing records. No ngModule required.
  • Typed Reactive Forms: A dedicated form service (entity-form.service.ts) that creates a strongly-typed FormGroup for your entity.
  • Data Services: A clean service (entity.service.ts) for handling all HTTP operations (CRUD), with date handling and request options built-in.
  • TypeScript Models: Interfaces for your entities (entity.model.ts) and TypeScript enums (enum.model.ts).
  • Routing: A pre-configured routes file (entity.routes.ts) for easy integration into your application's router.

Installation

Install the tool globally using npm.

npm install -g hipster-wind

Usage

Run the tool from your terminal, providing the path to your JDL file, the desired output folder, and the name of the backend microservice.

Syntax

hipster-wind <jdlFile> <outputFolder> --microservice <microserviceName> [--apiHost <host>]

Arguments

  • <jdlFile>: (Required) The path to your JHipster JDL file (e.g., ./my-app.jh).
  • <outputFolder>: (Required) The directory where the generated files will be placed (e.g., ./generated-app).
  • --microservice: (Required) The name of the microservice the API belongs to (e.g., analytics-module).
  • --apiHost: (Optional) The full base URL of your API (e.g., https://api.yourdomain.com). If not provided, you will be prompted to enter it.

Example

hipster-wind ./naqda.jh ./generated-app --microservice analytics-and-iot-module

Integrating the Generated Code

After running the tool, you will have a new folder (e.g., generated-app) containing entities and enums directories.

  1. Copy Folders: Copy the generated entities and enums folders into your Angular project's src/app/ directory.
  2. Configure Routes: Open your main app.routes.ts and import the generated routes for each entity.
    // src/app/app.routes.ts
    import { Routes } from '@angular/router';
        
    export const routes: Routes = [
      {
        path: 'officers',
        loadChildren: () => import('./entities/officer/officer.routes').then(m => m.officerRoutes)
      },
      // ... other routes
    ];
  3. Install Dependencies: Ensure your project has the required dependencies, such as Angular Material and Day.js.

Development

To contribute to hipster-wind or run it locally:

  1. Clone & Install:

    git clone <your-repository-url>
    cd hipster-wind-cli
    npm install
  2. Link for Local Use:

    npm link

    This will allow you to run the hipster-wind command globally on your machine, pointing to your local source code.


License

This project is licensed under the MIT License.