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 🙏

© 2024 – Pkg Stats / Ryan Hefner

launchui

v0.1.4

Published

Launcher for GUI Node.js applications using libui-node

Downloads

31

Readme

LaunchUI

Launcher for GUI Node.js applications using libui-node.

NPM module MIT License

Introduction

Although native desktop applications can run in the standard Node.js environment, it is recommended to use LaunchUI to package and distribute them to end users.

Thanks to LaunchUI, users don't need to install any packages using npm or to use the command line. They don't even need to have Node.js installed. They can simply download the package, unzip it and run the application by double-clicking its icon.

LaunchUI wraps Node.js with a small executable which automatically runs the application. No console window is opened and in case of a fatal error, it is reported using a message box.

LaunchUI was created for Vuido, but it should also work with Proton Native and applications using vanilla libui-node.

Usage

The easiest way to create a package for your application is to use the LaunchUI Packager. It provides an API for creating packages for Windows, Linux and OS X.

You can also manually download the binary package for the target platform from LaunchUI releases, unpack it and replace the example app/main.js script with your application script.

Installation

Usually there is no need to install LaunchUI, because during development you can use standard Node.js to run your application, and for creating packages it's recommended to use LaunchUI Packager which provides a more robust API.

You can install LaunchUI locally if you want to download the binary packages in your custom build scripts:

npm install --save-dev launchui

API

LaunchUI provides an API for downloading the binary packages for the given platform and architecture.

const launchui = require( 'launchui' );

launchui.download( {
  version: '0.1.0',
  platform: 'win32',
  arch: 'ia32',
  cache: './.cache'
}, function ( err, zipPath ) {
  // zipPath will be the path of the downloaded or existing package
} );

The download() function supports the following options:

  • version: Version of the binary package to download. The default value is the current version of the launchui module.
  • platform: The platform of the package. The default value is process.platform. The supported values are win32, darwin (OS X) and linux.
  • arch: The architecture of the package. The default value is process.arch. The supported values are x64 (on all platforms) and ia32 (on win32/linux only).
  • cache: Path of the directory where the downloaded package is stored. The default cache location is ~/.launchui.

The current version of the launchui module is available as launchui.version.

Supported platforms

  • Windows 7 or newer (32-bit and 64-bit)
  • OS X 10.8 or newer (64-bit)
  • Linux (32-bit and 64-bit)

Building

Building LaunchUI is only necessary if you need to make some customizations. In most cases it's enough to use the binary packages provided in the LaunchUI releases.

Use the following command to download and extract the source codes of Node.js, libui and libui-node to the deps/ subdirectory:

npm run download

You can edit tools/download-deps.json to change the versions of downloaded packages.

Use the following command to build all dependencies and the LaunchUI executable in 32-bit or 64-bit mode:

npm run build --arch=[ia32|x64]

The --arch option is only supported on Windows. It makes it possible to select 32-bit or 64-bit target architecture. On Linux and OS X the target architecture is the same as the host architecture.

To build LaunchUI on Windows, you will need the following prerequisites:

To build LaunchUI on Linux, you will need:

To build LaunchUI on OS X, you will need:

Use the following command to create a binary package in the packages/ subdirectory:

npm run package --arch=[ia32|x64]

The --arch option is only supported on Windows.

License

LaunchUI is licensed under the MIT license

Copyright (C) 2018 Michał Męciński