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

tw-hipster

v1.2.2

Published

A JDL-to-Angular code generator. based on tailwind + angular material

Readme

TW-Hipster

NPM Version NPM License

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

tw-hipster


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.

tw-hipster 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, tw-hipster creates a complete set of files following modern Angular best practices:

  • Standalone Components: A list component with a data table, sorting, pagination, relationship-aware dialogs for children, and a side-drawer powered by a reusable form. No ngModule required.
  • Reusable Form Components: Each entity gets an entity-form.component that encapsulates the reactive form, handles create/update flows, and can be launched standalone or inside dialogs (perfect for nested relations).
  • Typed Reactive Forms: A dedicated form service (entity-form.service.ts) that creates a strongly-typed FormGroup for your entity, including relationship controls derived from your JDL.
  • Advanced Filtering: Every list view ships with a JPA meta-model aware filter drawer (equals, contains, ranges, specified, etc.) so your end users can slice data without touching the backend.
  • 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 tw-hipster

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

tw-hipster <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

tw-hipster ./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 tw-hipster or run it locally:

  1. Clone & Install:

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

    npm link

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


License

This project is licensed under the MIT License.