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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@manicjs/pwa

v1.0.0

Published

PWA plugin for Manic framework

Readme

npm version Bun License: GPL-3.0

Official Manic plugin for Progressive Web App manifests, install metadata, and service worker caching.


Manic is a high-performance React framework built exclusively for Bun.

It ships with a custom build pipeline, first-class plugin architecture, and production-ready DX for local development, deployment, and AI-native workflows.

Why Manic

  • Bun-first runtime and tooling
  • Fast transforms and minification powered by OXC
  • File-based routing with production-ready deployment adapters
  • Plugin system built for framework and AI-native workflows

Documentation

Install

bun add @manicjs/pwa

Usage

import { defineConfig } from "manicjs/config";
import { pwa } from "@manicjs/pwa";

export default defineConfig({
  plugins: [
    pwa({
      name: "My Manic App",
      shortName: "Manic App",
      description: "An installable Manic application.",
      themeColor: "#0a0a0a",
      backgroundColor: "#0a0a0a",
      icons: [
        {
          src: "/assets/pwa/icon-192.png",
          sizes: "192x192",
          type: "image/png",
          purpose: "any",
        },
        {
          src: "/assets/pwa/icon-512.png",
          sizes: "512x512",
          type: "image/png",
          purpose: "maskable",
        },
      ],
    }),
  ],
});

Options

The plugin generates /manifest.json, /sw.js, PWA meta tags, and a browser-side service worker registration script.

Common options:

  • name: full install name for the app.
  • shortName: compact install name.
  • description: manifest description.
  • themeColor and backgroundColor: install UI and splash colors.
  • icons: manifest icons. Include 192x192 and 512x512 PNGs for broad install support.
  • screenshots: optional install screenshots for richer app store surfaces.
  • shortcuts: launcher shortcuts.
  • precache: additional same-origin app shell URLs to cache on install.
  • offline: enable navigation fallback support. Defaults to true.
  • navigationFallback: HTML fallback for offline navigation. Defaults to /index.html.
  • offlineFallback: optional custom offline page.
  • cacheMaxAgeSeconds: default runtime cache age.
  • cacheablePathPrefixes: static asset prefixes cached after first request.
  • runtimeCaches: per-prefix strategies with cache-first, network-first, or stale-while-revalidate.
  • manifestPath: custom manifest URL. Defaults to /manifest.json.
  • serviceWorkerPath: custom service worker URL. Defaults to /sw.js.
  • serviceWorker: custom service worker source for advanced PWA features such as push, background sync, app-specific offline logic, or custom cache routing.
  • serviceWorkerScope: custom registration scope. Defaults to /.
  • update: controls skipWaiting, clientsClaim, refresh-on-update, and update checks on load.
  • registerOnLocalhost: opt in to service worker registration on localhost. Defaults to false to avoid stale development caches.

License

GPL-3.0