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

phoenix-unav

v1.0.0

Published

Phoenix UNav

Downloads

6

Readme

Frontend Build

Features

  • Typescript support with Webpack and ESLint
  • SCSS support with Webpack

Installation

  1. Install the latest LTS version of NodeJS, globally. This will also install npm.
  2. Navigate to ui.frontend in your project and run npm install.

Usage

The following npm scripts drive the frontend workflow:

  • npm run build - Full build of client libraries with optimizations disabled (tree shaking, etc) and source maps enabled.
  • npm run build:prod - Full build of client libraries with optimizations enabled (tree shaking, etc) and source maps disabled.
  • npm run start - Starts the development build npm run build in watch mode and syncs changes to your local AEM instance.

General

The ui.frontend module compiles the code under the ui.frontend/src folder and outputs the compiled CSS and JS, and any resources beneath a folder named ui.frontend/dist. Each folder under the src directory should constitute a complete and indipendent clientlib. For example, src/sales and src/care would contain the code (TS and SCSS) required to build each of those areas of the site and may shared code through a third src/shared but always build complete packages with no dependency on one another.

Typescript

JavaScript support has been removed. Only Typescript code should be created under the src directory. This does not mean you cannot use JavaScript libraries and third-party dependencies. You simply must write all of your own scripts in Typescript. This was done to enforce compile-time checks that help eliminate hard to catch bugs in large enterprise applications, such as the T-Mobile site.

  • Optimization - for production builds, all scripts and dependencies are tree-shaken meaning unused code is removed.
    • globbing - Globbing, a feature that is normally included with the AEM Maven Archetype has been purposfuly removed because it negatively impacts tree-shaking of code. This means you must import all scripts and styles into a root or main TS file for them to be included in their respective clientlib bundle.

SCSS

  • Autoprefixing - all SCSS is run through a prefixer and any properties that require prefixing will automatically have those added in the CSS.
  • Optimization - for production builds, all CSS is run through an optimizer.

Client Library Generation

The second part of the ui.frontend module build process leverages the aem-clientlib-generator plugin to move the compiled CSS, JS and any resources into the ui.apps module. The aem-clientlib-generator configuration is defined in clientlib.config.js. When running npm run build, npm run build:prod, or npm run start, the compiles JS, CSS, and any resources will automatically be synced to the ui.apps directory and, if it is running, the local AEM instance.