nhyris

nhyris is a minimal framework to transform an R Shiny application into a standalone desktop app.

Prerequisites

  • Node.js >= 22.13.1 (LTS: 22.15)
  • npm >= 11.4.1

Check your versions:

node -v
npm -v

Installation

Install nhyris globally via npm:

npm install -g nhyris
Note

Please use zsh or git-bash, not PowerShell.

Usage

  1. Initialize a new project (replace myapp with your project name):
nhyris init myapp
  1. Modify your Shiny application
  • Edit your app code in myapp/shiny/app.R
  1. Run your application in development mode:
nhyris run myapp
  1. Update dependencies or project files (optional):
nhyris update myapp
  1. Build the application into an Electron app:
nhyris build myapp
  1. Find your packaged app in the out directory.

Cross-platform

nhyris supports building desktop applications for multiple operating systems, including Windows, macOS, and Linux.
It leverages Electron’s cross-platform capabilities and supports various makers such as:

  • ZIP (universal)
  • Squirrel.Windows (Windows installer)
  • DMG (macOS)
  • deb (ubuntu linux)

You can configure the target platforms and makers in your project settings to generate installers or packages suitable for your users’ environments.

Made by jahnen