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-ju

v1.3.0

Published

Ju framework generator for web apps

Readme

generator-ju

Easily generate Ju webapps and components using Yo

Getting started

From zero to nihao world in a few steps.

Creating a new project

npm install -g generator-ju
  • Run CLI util and answer all the questions
yo ju

Running your project using docker

We provide a docker container with nginx webserver, as it is required to load resources (like HTML files) from the browser. To use it:

  1. Install docker
  2. Install docker-compose
  3. In the generated project root, run:
docker-compose up -d

Testing the generated app

If the installation was fine, you can go to http://localhost:8080 and you should see a message saying "nihao Ju!".

Please note that you can also test your app by opening the index.html file located at your_project_root/public, but you won't be able to dynamically load resources.

Next steps

Refer to the Github repositories of Ju framework for details about app development:

Generating Ju components

Run yo ju:components and answers all the questions.

You will obtain a basic component that can handle resources and remote data.

Generating Ju Object-Oriented Javascript modules

Run yo ju:module and answers all the questions.

You will obtain a class like structure, either using plain prototypes (module), a class with inheritance, singleton and static members or everything plus observer pattern.

Generating Ju Models

Run yo ju:model and specify the Model Definition name, the file name and path, and the middleware you wish to add (AJAX and WebStorage providers are avilable now, there are more in the way).

You will obtain a Model definition, that you can modify to inject middleware to every API method, to instatiate it later and perform data operations.

Generating README files

Run yo ju:readme and follow the steps to generate a README markdown file for your library (:

It will include common sections, like getting started, references and all the stuff you may want to make a good documentation