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

@syncthetic/electron-auto-updater

v1.0.4

Published

Easily manage electron updates using ElectronAutoUpdateAPI and ElectronAutoUpdateClient

Readme

ElectronAutoUpdate

Use this NPM module inside your Electron application, requesting information from an ElectronAutoUpdateAPI to fetch application version information, download links, or more.

This repository was created along side the following repositories to streamline Electron application updates.

ElectronAutoUpdateAPI

Quick start a MongoDB REST API for your applications. This API can be used to trigger automatic updates and more

ElectronAutoUpdateClient

If you use MongoDB Stitch for your application, you can simply login with this application to manage all of your applications. i.e, change version information which causes applications using ElectronAutoUpdate to fire events if it's outdated.

Getting Started

npm i --save @syncthetic/electron-auto-updater

In your your main file, when the application starts, import the service const UpdateService = require('@syncthetic/electron-auto-updater')

The UpdateService contains a check_app_version(api, version, callback) method, which should be supplied an API link, the current version, and the callback method for when the action completes. The full response from the API is passed to the callback function.

If you are using your own API, just make sure the application it returns holds a property of version, which is the latest application version. callback will only fire if the app is outdated.

service.check_app_version("http://my-little-website/api/application/my-app-name", '0.0.1',
  (res) => {
      // something to do with the result here, like open a download toast
  }
)

Getting Started with Angular-Electron

If you use are using angular-electron for your application the following steps will get you squared away

install the packagenpm i --save @syncthetic/electron-auto-updater

edit /src/app/providers/electron.service.ts

import * as UpdateService from '@syncthetic/electron-auto-updater'

@Injectable()
export class ElectronService {
  ...
  UpdateService
  
  constructor() {
    // Conditional imports
    ...
    this.UpdateService = window.require('@syncthetic/electron-auto-updater')
  }
}

An example of our own service to handle updates

import { Injectable } from '@angular/core';
import { ElectronService } from '../../providers/electron.service';

@Injectable({
  providedIn: 'root'
})
export class UpdateService {
  constructor(
    public electronService: ElectronService,
  ) { }

  private currentVersion: string
  private currentName: string
  private api: string

  public isAppVersionOld: boolean
  public latestAppVersion: string
  public newDownloadLink: string
  public latestApp: any

  check () {
    this.currentVersion = this.electronService.remote.app.getVersion()
    this.currentName = this.electronService.remote.app.getName()
    this.api = `http://my-little-api.com/api/application/${this.currentName}`

    this.electronService.UpdateService.check_app_version(this.api, this.currentVersion, (app) => {
      this.isAppVersionOld = app.version !== this.currentVersion
      this.latestAppVersion = app.version
      this.newDownloadLink = app.download
      this.latestApp = app
    })
  }

  requestDownload () {
    window.open(this.newDownloadLink)
  }
}

In a main process, during load you can run UpdateService.check() in your component view, you can utilize UpdateService.requestDownload() to start a download if desired.