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

@ugurkocde/intuneget-packager

v1.1.0

Published

Local Windows packager service for IntuneGet - enables true self-hosting without GitHub Actions dependency

Readme

IntuneGet Packager

Local Windows packaging service for IntuneGet - enables true self-hosting without GitHub Actions dependency.

Overview

The IntuneGet Packager is a Node.js application that runs on Windows and handles:

  1. Polling for packaging jobs from the database
  2. Downloading application installers
  3. Creating PSADT (PowerShell App Deployment Toolkit) packages
  4. Converting packages to .intunewin format using IntuneWinAppUtil.exe
  5. Uploading packages to Microsoft Intune via Graph API

Requirements

  • Windows 10/11 or Windows Server 2019+
  • Node.js 18 or higher
  • Network access to:
    • Your Supabase database
    • Microsoft Graph API (graph.microsoft.com)
    • Application installer URLs

Installation

Option 1: Install globally via npm

npm install -g @ugurkocde/intuneget-packager

Option 2: Use npx without installing

npx @ugurkocde/intuneget-packager

Configuration

Create a .env file in your working directory or set environment variables:

Required Variables

# Supabase Connection
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key

# Azure AD / Microsoft Entra ID
AZURE_CLIENT_ID=your-app-registration-client-id
AZURE_CLIENT_SECRET=your-app-registration-client-secret

Optional Variables

# Packager Identity (auto-generated if not set)
PACKAGER_ID=my-packager-01

# Polling Configuration
POLL_INTERVAL=5000          # Milliseconds between polls (default: 5000)
STALE_JOB_TIMEOUT=300000    # Consider job stale after this many ms (default: 5 min)

# Directory Paths
WORK_DIR=./work             # Working directory for packages
TOOLS_DIR=./tools           # Tools directory (IntuneWinAppUtil, PSADT)

# Web App API (optional)
WEB_APP_URL=https://your-intuneget-instance.com

Usage

Start the packager

# Using globally installed package
intuneget-packager

# Using npx
npx @ugurkocde/intuneget-packager

# With verbose logging
intuneget-packager --verbose

# With debug logging
intuneget-packager --debug

# Dry run (validate config without processing)
intuneget-packager --dry-run

Check configuration

intuneget-packager check

Download tools

intuneget-packager setup

Architecture

                                    +-------------------+
                                    |   IntuneGet       |
                                    |   Web App         |
                                    +--------+----------+
                                             |
                                             | Creates jobs
                                             v
+---------------------------+       +--------+----------+
|   IntuneGet Packager      |       |    Supabase       |
|   (this service)          | <---> |    Database       |
|   - Polls for jobs        |       |                   |
|   - Processes packages    |       +-------------------+
|   - Uploads to Intune     |
+------------+--------------+
             |
             | Uploads via Graph API
             v
+---------------------------+
|   Microsoft Intune        |
|   (tenant)                |
+---------------------------+

How It Works

  1. Web App creates a packaging job in the database with status queued
  2. Packager polls the database every 5 seconds for queued jobs
  3. Packager atomically claims a job (updates status to packaging)
  4. Packager downloads the installer, creates PSADT package, and converts to .intunewin
  5. Packager uploads the package to Intune via Microsoft Graph API
  6. Packager updates job status to deployed with Intune app ID and URL

Scaling

You can run multiple packager instances for increased throughput:

  • Each packager has a unique ID (auto-generated or configured)
  • Jobs are claimed atomically (only one packager processes each job)
  • Stale jobs (claimed but no heartbeat) are automatically recovered

Running as a Windows Service

For production deployments, you may want to run the packager as a Windows service:

Using NSSM (Non-Sucking Service Manager)

  1. Download NSSM from https://nssm.cc/
  2. Install the service:
nssm install IntuneGetPackager "C:\Program Files\nodejs\node.exe" "C:\path\to\node_modules\@intuneget\packager\dist\index.js"
nssm set IntuneGetPackager AppDirectory "C:\IntuneGet"
nssm set IntuneGetPackager AppStdout "C:\IntuneGet\logs\packager.log"
nssm set IntuneGetPackager AppStderr "C:\IntuneGet\logs\packager-error.log"
nssm start IntuneGetPackager

Using PM2

  1. Install PM2: npm install -g pm2
  2. Start the packager:
pm2 start intuneget-packager --name "intuneget-packager"
pm2 save
pm2 startup

Troubleshooting

Common Issues

"Configuration issues found"

  • Run intuneget-packager check to see detailed configuration errors
  • Ensure all required environment variables are set

"Failed to acquire access token"

  • Verify AZURE_CLIENT_ID and AZURE_CLIENT_SECRET are correct
  • Ensure the app registration has DeviceManagementApps.ReadWrite.All permission
  • Check that admin consent has been granted for the target tenant

"IntuneWinAppUtil.exe not found"

  • Run intuneget-packager setup to download required tools
  • Or manually place IntuneWinAppUtil.exe in the tools directory

Jobs not being picked up

  • Ensure PACKAGER_MODE=local is set in your web app's configuration
  • Check that SUPABASE_URL and SUPABASE_SERVICE_ROLE_KEY match between web app and packager

Logs

The packager logs to stdout/stderr. Use --verbose or --debug for more detailed logging.

Security Considerations

  • The packager uses the Supabase service role key for database access
  • Keep the .env file secure and never commit it to version control
  • The AZURE_CLIENT_SECRET should be rotated regularly
  • Consider running the packager on a dedicated machine or container

License

MIT