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

generator-jhipster-grpc

v0.22.0

Published

Adds support for gRPC and generates gRPC CRUD services

Downloads

110

Readme

generator-jhipster-grpc

NPM version Build Status Dependency Status

JHipster module, Adds support for gRPC and generates gRPC CRUD services

Introduction

This is a JHipster module, that is meant to be used in a JHipster application.

WARN : Under developpement. See list of limitations and TODOs

Prerequisites

As this is a JHipster module, we expect you have JHipster and its related tools already installed:

Installation

To install this module:

npm install -g generator-jhipster-grpc

Compatibility :

  • JHipster 4.1 and inferior (Note : never tested with <4.1.0) : module version 0.7.0
  • JHipster 4.2 and 4.3 : module version 0.8.0, 0.9.0
  • JHipster 4.4 : module version 0.10.0
  • JHipster 4.5 to 4.8 : module version 0.11.0
  • JHipster 4.9 : module version 0.12.0, 0.13.0
  • JHipster 4.10 : module version 0.14.1
  • JHipster 4.11 to 4.14 : module version 0.15.2
  • JHipster 5.0 to 5.7 : module version 0.16.0
  • JHipster 5.8: module version 0.17.0
  • JHipster 6.0: module version 0.18.0
  • JHipster 6.1 and 6.2: module version 0.19.1
  • JHipster 6.3: module version 0.20.0
  • JHipster 6.4 and 6.5: module version 0.21.2
  • JHipster master : module branch next-jhipster (nightly build status : Build Status)

Usage

At the root of your project directory:

yo jhipster-grpc

This will configure reactive-grpc and grpc-spring-boot-starter so that the proto files present in src/main/proto are compiled. If you want to add CRUD gRPC services for an entity, just (re)generate it and confirm when the question is asked. The endpoints use Reactor implementation of reactive-streams (Flux) with back-pressure.

Notes :

  • for the moment entities must have a service layer (serviceClass or serviceImpl)
  • just like with DTOs, entities that are referenced by another entity in a relationship (many-to-many owned side, many-to-one or one-to-ine owned side) currently must be grpc activated and thus have a service layer. The service layer constraint should be relaxed in a future release since it's only the gRPC mapper which is required.

TODOs:

  • [x] ~~Generate existing entities~~
  • [x] ~~Support Gradle~~
  • [x] ~~Entities without DTOs~~
  • [ ] Entities without service
  • [x] ~~Entities with pagination~~
  • [x] ~~Support Cassandra~~
  • [x] ~~Support Mongo~~
  • [x] ~~Support relationships~~
  • [x] ~~JWT security~~
  • [x] ~~OAuth2 security~~
  • [x] ~~Basic auth security~~ (used for session auth option)
  • [x] ~~Entity javadoc~~
  • [x] ~~Field javadoc~~
  • [x] ~~Add ElasticSearch endpoints~~
  • [x] ~~Management endpoints~~
    • [x] ~~Account~~
    • [x] ~~Loggers~~
    • [x] ~~Audits~~
    • [x] ~~Users~~
    • [x] ~~Profile info~~
    • [x] ~~Spring Boot Actuators~~
  • [ ] Support streaming from the DB (Stream<> in repository)
  • [x] ~~Support streaming back-pressure (reactive streams with rxJava2 or Reactor)~~
  • [ ] Client-side configuration (micro-services)
  • [ ] Client-side load-balancing with service discovery (micro-services)
  • [ ] Generator tests
  • [ ] Sample/demo project
  • [x] ~~Generated code tests~~
  • [x] ~~Travis CI~~

Mappings:

| JHipster | Protobuf | |:--------:|:-------------:| | Integer | int32 | | Long | int64 | | String | string | | Float | float | | Double | double | | Boolean | bool | | Blob (byte[]) | bytes | | ByteBuffer | bytes | | Instant | google.protobuf.Timestamp | | ZonedDateTime | google.protobuf.Timestamp | | LocalDate | util.Date | | BigDecimal | util.Decimal | | enum | enum |

util.Date and util.Decimal are custom definitions. Non-required protobuf scalar types and enums are wrapped in OneOf types to provide nullability.

License

Apache-2.0 © [Christophe Bornet]