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

@mimik/edge-ms-packager

v1.2.0

Published

Helps building a compatible docker image to be used by mim OE runtime.

Readme

edge-ms-packager License: MIT npm version

Overview

A tool for building Docker-compatible images to be used by mimik OE containers. This packager simplifies the process of converting your serverless functions and microservices into properly formatted Docker archives.

Learn how to use in your own project.

Configuration

YAML Configuration File

Create a configuration file (typically default.yml or config/default.yml) with the following structure:

package:
  imageName: your-service-name
  imageIndexFilePath: ./path/to/your/built/file.js
  outputFolder: ./output/directory

Configuration Options

| Option | Type | Required | Description | |--------|------|----------|-------------| | imageName | string | ✅ Yes | Base name for the Docker image (will be suffixed with -v{apiVersion}) | | imageIndexFilePath | string | ✅ Yes | Path to your built serverless function/microservice entry point | | outputFolder | string | ✅ Yes | Directory where the packaged Docker tar file will be created | | apiVersion | number | ❌ No | API version for the image (defaults to 1) |

Versioning

The packager automatically extracts the version from your project's package.json file. This version is used in the final Docker archive filename to ensure proper versioning and deployment tracking.

Version Resolution:

  • The tool reads the version field from your package.json
  • Final archive name format: {imageName}-v{apiVersion}-{packageVersion}.tar
  • Example: If your package.json has "version": "1.2.3", the output will be my-service-v1-1.2.3.tar

Usage

  1. Prepare your serverless function: Ensure your microservice is built and the entry point file exists at the specified path.

  2. Create configuration: Set up your YAML configuration file with the required parameters.

  3. Run the packager: Execute the packaging command to convert your serverless microservice into a Docker-compatible tar file.

The tool will:

  • Read the version from your package.json
  • Validate your configuration and files
  • Generate Docker image metadata
  • Create the necessary layer structure
  • Package everything into a versioned tar file
  • Clean up temporary files

Output Files

After successful execution, you'll find:

  • Main Archive: {outputFolder}/{imageName}-v{apiVersion}-{packageVersion}.tar
  • Console Output: Detailed logging of each step in the packaging process

Examples

Basic Configuration

package.json:

{
  "name": "my-api-service",
  "version": "1.0.0",
  "main": "dist/index.js"
}

default.yml:

package:
  imageName: my-api-service
  imageIndexFilePath: ./dist/index.js
  outputFolder: ./docker-output

Output: ./docker-output/my-api-service-v1-1.0.0.tar

Advanced Configuration

package.json:

{
  "name": "user-management-service",
  "version": "2.1.5",
  "main": "build/server.js"
}

default.yml:

package:
  imageName: user-management-service
  imageIndexFilePath: ./build/server.js
  outputFolder: ./deployment/images
  apiVersion: 2

Output: ./deployment/images/user-management-service-v2-2.1.5.tar

Version Examples

| package.json version | apiVersion | Final filename | |---------------------|------------|----------------| | "1.0.0" | 1 (default) | my-service-v1-1.0.0.tar | | "2.1.3" | 1 (default) | my-service-v1-2.1.3.tar | | "1.5.2" | 3 | my-service-v3-1.5.2.tar |

Support

License

MIT licensed.