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

@scolastico-dev/walu

v0.4.0

Published

[![npm version](https://badge.fury.io/js/%40scolastico-dev%2Fwalu.svg)](https://badge.fury.io/js/%40scolastico-dev%2Fwalu) [![npm downloads](https://img.shields.io/npm/dm/@scolastico-dev/walu.svg)](https://www.npmjs.com/package/@scolastico-dev/walu) [![Li

Downloads

120

Readme

Web App Live Updater

npm version npm downloads License: MIT

WALU is a library to add live update capabilities to your web application. It works by checking for update binaries and a version file on your server, downloading the update to a storage of your choice, validating it using RSA signatures, and applying the update by starting a service worker that replaces the current page with the updated version.

Note that this library does work in normal web browsers, but it is primarily designed for use in WebView-based applications, such as those built with Electron, Tauri, or Capacitor.

Features

  • Check for updates from a specified server
  • Ask for a single <update>.bundle file for manual updating, development or downgrading.
  • Checks SHA-256 hash of the downloaded file against the version file.
  • Checks RSA signature of the version file against a provided public key.
  • Provides status callbacks for implementing a progress bar or similar.
  • Uses a service worker to apply the update by reloading the page with the new content.
  • Supports custom storage mechanisms for the downloaded update (e.g., IndexedDB, localStorage, capacitor Filesystem, etc.)
  • Easy to integrate into existing web applications.

Installation

npm install @scolastico-dev/walu
# or unstable
npm install @scolastico-dev/walu@git+ssh://github.com/scolastico-dev/walu.git

Usage

Add the following code to your application startup code:

import { WaluConfig, installWalu } from '@scolastico-dev/walu';

installWalu(new WaluConfig(
  workerPath: '/walu-worker.js',
  publicKey: [
    '-----BEGIN PUBLIC KEY-----',
    'MIIBIjANBgkqhkiG9w0BAQEFAAOCA',
    '[...your rsa public key...]',
    '-----END PUBLIC KEY-----',
  ].join('\n'),
  apiUrls: {
    versionJson: 'https://example.com/path/to/version.json',
    updateBin: 'https://example.com/path/to/update.bin',
  },
)).then(() => {});

Make sure to host the walu-worker.js so it is accessible at the path you specify in workerPath.

npx @scolastico-dev/walu worker ./public/walu-worker.js

To achieve this, we recommend adding the command to your package.json scripts:

{
  "scripts": {
    "postinstall": "walu worker ./public/walu-worker.js"
  }
}

See the documentation for a full list of available options and functions: https://scolastico-dev.github.io/walu/

Publish a version

npx @scolastico-dev/walu key --help
# npx @scolastico-dev/walu key <privateKeyFile> <publicKeyFile>

npx @scolastico-dev/walu publish --help
# npx @scolastico-dev/walu publish <version> <privateKeyFile> <sourceDir> <outputDir>

### e.g.
npx @scolastico-dev/walu key key.pem key.pub
npx @scolastico-dev/walu publish 1.0.0 ./key.pem ./dist ./update