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

@atlet99/webos-packager-plugin

v2.1.2

Published

Pack applications for webOS on the fly.

Readme

NPM Version GitHub Release GitHub License GitHub Issues or Pull Requests GitHub Actions Workflow Status GitHub commit activity (branch)

@atlet99/webos-packager-plugin

Pack webOS IPK files directly from webpack builds.

Fork notice: this package is forked from the original @webosbrew/webos-packager-plugin. Original author and credit: kitsuned (Andrey Smirnov).

Installation

npm i @atlet99/webos-packager-plugin

What This Library Does

This package integrates webOS packaging directly into webpack output and emits .ipk as build artifacts.

webos-cli and this library complement each other:

| Topic | webos-cli (ares-*) | @atlet99/webos-packager-plugin | | ----------------- | --------------------------------------------- | ---------------------------------------- | | Main usage | End-to-end app workflow | Packaging inside webpack pipeline | | Packaging command | ares-package ./app ./service | webpack plugin/HOC emits .ipk asset | | Deploy to device | ares-install, ares-launch, ares-inspect | Not included | | Service naming | Service id should start with app id | Same rule validated during package build | | Build integration | Separate build + package steps | Single webpack flow |

[!IMPORTANT]

This library does not deploy to device/emulator. Use webos-cli for install, launch, inspect, and debugging.

Quick Decision Guide

  • Use WebOSPackagerPlugin if you have a single webpack config.
  • Use hoc(...) if you bundle app + one or more services together.
  • Use output.template/output.variables when CI controls artifact naming.
  • Use versionFile for app/IPK versioning in monorepos.

[!TIP]

Keep IPK versioning (version, versionFile, env) separate from the library's own package.json version.

Quick Start (HOC)

import { join } from 'path';
import { hoc } from '@atlet99/webos-packager-plugin';

export default hoc({
  id: 'com.example.app',
  version: '1.0.0',
  options: {
    emitManifest: true,
    manifest: {
      title: 'Example App',
      description: 'Example description',
      iconUrl: 'https://example.com/icon.png',
      sourceUrl: 'https://github.com/atlet99/webos-packager-plugin',
    },
  },
  app: {
    id: 'com.example.app',
    mode: 'development',
    entry: './src/app.js',
    output: {
      filename: 'main.js',
      path: join(__dirname, 'dist/app'),
    },
  },
  services: [
    {
      id: 'com.example.app.service',
      mode: 'development',
      entry: './src/service.js',
      output: {
        filename: 'service.js',
        path: join(__dirname, 'dist/service'),
      },
    },
  ],
});

Quick Start (Plugin)

import { join } from 'path';
import { WebOSPackagerPlugin } from '@atlet99/webos-packager-plugin';

export default {
  mode: 'development',
  entry: './src/app.js',
  output: {
    filename: 'main.js',
    path: join(__dirname, 'dist/app'),
  },
  plugins: [
    new WebOSPackagerPlugin({
      id: 'com.example.app',
      version: '1.0.0',
      type: 'app',
    }),
  ],
};

Output Naming and Path Rules

You can keep legacy filename, or use output for richer control.

new WebOSPackagerPlugin({
  id: 'com.example.app',
  version: '1.0.0',
  type: 'app',
  output: {
    dir: 'artifacts/webos',
    template: '[id]-[version]-[channel].[ext]',
    variables: {
      channel: process.env.CHANNEL ?? 'local',
    },
  },
});

Dynamic filename function is also supported:

new WebOSPackagerPlugin({
  id: 'com.example.app',
  version: process.env.RELEASE_VERSION ?? '1.0.0',
  type: 'app',
  filename: ({ id, version, ext }) => `releases/${id}_${version}_ci.${ext}`,
});

Available output tokens:

  • [id]
  • [version]
  • [ext]
  • [baseName]
  • custom keys from output.variables

[!WARNING]

Unknown template tokens fail the build intentionally. This prevents publishing artifacts with accidental names.

[!WARNING]

Output path must stay inside webpack output assets. Unsafe values like ../ are rejected.

Version Source (.release-version)

You can decouple app/IPK versioning from library package.json.

Version priority:

  1. version option
  2. env var (RELEASE_VERSION by default, or custom versionEnv)
  3. versionFile (for example .release-version)
new WebOSPackagerPlugin({
  id: 'com.example.app',
  type: 'app',
  versionFile: '.release-version',
});

Custom env key:

new WebOSPackagerPlugin({
  id: 'com.example.app',
  type: 'app',
  versionEnv: 'APP_RELEASE_VERSION',
});

[!IMPORTANT]

If you provide version, it overrides env and versionFile.

[!WARNING]

Version must match x.y.z, x.y.z-suffix, or x.y.z-suffix+build. Invalid values fail fast.

Scenario: CI Build With Dynamic Artifact Name

new WebOSPackagerPlugin({
  id: 'com.example.app',
  type: 'app',
  versionFile: '.release-version',
  output: {
    dir: 'artifacts/webos',
    template: '[id]-[version]-[channel].[ext]',
    variables: {
      channel: process.env.CHANNEL ?? 'local',
    },
  },
});

Scenario: Monorepo (3 IPK Builds)

import { join } from 'path';
import { WebOSPackagerPlugin } from '@atlet99/webos-packager-plugin';

const createConfig = (id: string, entry: string, channel: string) => ({
  mode: 'production',
  entry,
  output: {
    filename: 'main.js',
    path: join(__dirname, `dist/${id}`),
  },
  plugins: [
    new WebOSPackagerPlugin({
      id,
      version: process.env.RELEASE_VERSION ?? '1.0.0',
      type: 'app',
      output: {
        dir: 'artifacts/ipk',
        template: '[id]-[version]-[channel].[ext]',
        variables: { channel },
      },
    }),
  ],
});

export default [
  createConfig('com.example.app.alpha', './packages/alpha/src/app.js', 'alpha'),
  createConfig('com.example.app.beta', './packages/beta/src/app.js', 'beta'),
  createConfig('com.example.app.gamma', './packages/gamma/src/app.js', 'gamma'),
];

[!TIP]

In monorepos, keep one .release-version per app package if apps have independent release cycles.

Common Mistakes

  • Service id does not start with app id.
  • Missing app namespace (service-only build).
  • Empty manifest fields while emitManifest: true.
  • Using unresolved tokens in output.template.
  • Trying to write output with ../.

[!WARNING]

Service ids must start with app id. For app com.example.app, valid service ids look like com.example.app.svc.

Release Flow

Publishing is done by GitHub Actions on tag push.

make tag-release

If you need to bump version first and open a PR to master:

make tag-release VERSION=2.1.1

[!IMPORTANT]

VERSION=... flow uses GitHub CLI. If GH_TOKEN or GITHUB_TOKEN is set in your environment, interactive login is not required. Otherwise run gh auth login.

By default, AUTO_MERGE=1: the PR is set to auto-squash after checks pass, then master is updated and tag creation runs automatically.

To keep merge manual:

make tag-release VERSION=2.1.1 AUTO_MERGE=0

Development

make install
make verify

Useful commands:

make help
make format
make format-check
make lint-make
make test
make test-e2e
make test-plugin
make test-hoc
make pack

Makefile linting uses checkmake with project config from checkmake.ini. If local checkmake is unavailable, the lint-make target downloads checkmake for your current OS/arch (linux|darwin, amd64|arm64) using CHECKMAKE_VERSION.