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

update-electron-s3

v1.0.0

Published

A drop-in module that adds autoUpdating capabilities to Electron apps

Readme

update-electron-s3

Package to apply auto-update for an electron application using s3 amazon service

Powered by the free and open-source update.electronjs.org service.

Bifurcated from the project update-electron-app.

screenshot

Requirements

Before using this module, make sure your Electron app meets these criteria:

  • Your app runs on macOS or Windows
  • Your app has a bucket for Amazon S3

Installation

npm i update-electron-s3

then you will create the 'electron-builder.yml' on your main project this file will contain this content

appId: your.App.Id
publish:
   provider: s3
   bucket: "your-bucket"

Usage

Drop this anywhere in your main process:


import { autoUpdater } from 'electron-updater'

require('update-electron-s3')({autoUpdater})

That's it! Here's what happens by default:

  • Your app will check for updates at startup, then every ten minutes. This interval is configurable.
  • No need to wait for your app's ready event; the module figures that out.
  • If an update is found, it will automatically be downloaded in the background.
  • When an update is finished downloading, a dialog is displayed allowing the user to restart the app now or later.

You can also specify custom options:

require('update-electron-s3')({
  electron,
  autoUpdater,
  updateInterval: '1 hour',
  logger: require('electron-log')
})

API

update(options)

Options:

  • s3 String (optional) - S3 bucket bucket. Defaults to your package.json's "bucket_s3" field
  • updateInterval String (optional) - How frequently to check for updates. Defaults to 10 minutes. Minimum allowed interval is 5 minutes.
  • logger Object (optional) - A custom logger object that defines a log function. Defaults to console. See electron-log, a module that aggregates logs from main and renderer processes into a single file.

FAQ

What kinds of assets do I need to build?

For macOS, you'll need to build a .zip file and include it in your GitHub Release. Use electron-forge or electron-installer-zip to package your app as a zip.

For Windows, you'll need to build a .exe file and include it in your GitHub Release.

Why is my app launching multiple times?

Windows apps have an update process that requires multiple application restarts. You can use the electron-squirrel-startup module to improve this behavior.

License

MIT

See Also

If your app is packaged with electron-builder, you may not need this module. Builder has its own built-in mechanism for updating apps. Find out more at electron.build/auto-update.