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 🙏

© 2024 – Pkg Stats / Ryan Hefner

pwact

v1.1.2

Published

Build PWAs faster and get more productivity

Downloads

15

Readme

PWAct

Build PWA faster and get more productivity!

Why?

PWAct provide useful CLI commands that increase time-gain and productivity!

Ex:

pwact cache foo.html

This command will add foo.html to Local Cache Storage

Install

PWAct is available at NPM. In your (fresh) project, run

npm install pwact

That's it. You'll be able to use :D

Docs

pwact init

Create a pwact.json file, which contains all settings for PWAct. After this, you must run the next command: pwact start

Before you run next command, you can change PWAct.json options, like the path of icons, version, etc.

pwact start

Create a service-worker file, a simple JS file (which will register the worker), a Manifest.json and a pretty simple index.html (optional) containing all meta tags required for a basic PWA functionality.

pwact cache foo.ext or --reset

Adds the file in Local Cache Storage and register it in the service-worker.js. Plus, will update the cache version of the application.

If you choose pass --reset option instead a file, PWAct will update the worker with the files set in pwact.json file.

pwact icon image.ext

Given a PNG file (recommended 512x512px), this will replicate and resize the image for appropriate icon files (based in Manifest.json specs)

NOTE: The icon must be under the project. Ex: pwact icon logo.png

pwact manifest set:foo *bar

Set Manifest.json properties, like scope, name, display, author, etc.

Ex: pwact manifest set:display fullscreen

pwact related_apps

Often, PWAs have other "official" applications. You can list them in Manifest.json. You can set if you want to prorize them (or not) and set some info, like platform and URL.

Ex: pwact related_apps

Prefer related apps? (yes/no): yes

Platform (e.g.: play): play

URL (e.g.: https://play.google.com/store/apps/details?id=com.example.app1): ...

ID of the app (e.g.: com.example.app1): com.example.pwa1

pwact help [command]

List all available commands, parameters, example and usage.

Ex: pwact help icon

Milestone

We're planning a lot of features to develop:

  • Template support for React, Vue, Ember, Angular or PWAct
  • Push notifications support
  • Better icon options
  • Electron interface