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

appmanifest

v0.0.6

Published

Validate web app manifest (http://w3c.github.io/manifest)

Downloads

11

Readme

appmanifest

Validate web app manifest (http://w3c.github.io/manifest)

* Tries to follow the Spec as it is (as much as possible)

Try it online -

https://boopathi.in/appmanifest/

This project is still under active development. Ideas and contributions welcome :)

Install

npm install appmanifest

Usage

API

// result is the processed manifest object
var result = manifestParser({
  manifest: "<manifest json string>",
  manifestUrl: "https://example.com/manifest.json", // this is required to validate some urls
  documentUrl: "https://example.com/" // this is also required to validate some urls
  logger: function() { return { warn() {}, error(){}, log(){} } } // optional
});

If you don't want to pass manifestUrl and documentUrl, just use example.com urls as mentioned above.

Capture errors and warnings

You can pass your custom logger and capture all errors and warnings to compile and display later. The signature of the logger function is this.

function Logger (name /* name of the param currently validated */) {
  return {
    warn(message) {
      // do your stuff
    },
    error (message) {
      // do your stuff
    },
    log (message) {
      // do your stuff
    }
  }
}

Node

const parse = require('appmanifest').manifestParser;

Browser

  1. You can bundle this with webpack / browserify
  2. Generate your dist - npm run dist
  3. Get it from CDN - https://npmcdn.com/appmanifest@latest/dist/manifest-parser.min.js

The library when obtained as a built bundle, exports UMD with ManifestParser as the name.

Note:

If you're using the cdn URL, you need to use ManifestParser.default({});

Features

Processing

Spec: http://w3c.github.io/manifest/#processing

This helps in identifying possible mistakes in your manifest.json file in the following fields.

  • [x] start_url
  • [x] display
  • [x] orientation
  • [x] name
  • [ ] lang
  • [x] short_name
  • [x] icons
  • [x] splash_screens
  • [x] scope
  • [ ] related_applications
  • [ ] prefer_related_applications
  • [x] theme_color
  • [x] background_color

* The unchecked ones are not yet implemented

Installability Signals

Spec: http://w3c.github.io/manifest/#installability-signals

This tool is to identify from a URL, warnings about some of your app installability signals - to make it more installable - Does it even mean anything? Yes. It's a thing now. Live with it.

  • [ ] link associativity with manifest & contains at least name and a suitable icon
  • [ ] Served over HTTPS
  • [ ] CSP

* The unchecked ones are not yet implemented

Note: There are a few others that cannot be checked with this tool. Feel free to visit the link mentioned above to help making your manifests better and give the browser possible installability signals.

CONTRIBUTING

Contributions and ideas are always welcome. Create an issue to discuss.

Build

License

MIT License - http://boopathi.mit-license.org/