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

hnc-rn-image-overlay

v1.0.13

Published

Native module to add overlay and text watermark to images for React Native

Readme

hnc-rn-image-overlay

Native module to add white overlay with text watermark to images on iOS and Android.

Features

  • Native performance - No JavaScript bridge for image processing
  • Multiple text lines - Support for any number of text lines
  • Auto-scaling - Font size automatically scales based on image dimensions
  • EXIF orientation handling - Correctly handles rotated images (Android)
  • Modern native code - Written in Swift (iOS) and Kotlin (Android)
  • TypeScript support - Fully typed API

Installation

npm install hnc-rn-image-overlay
# or
yarn add hnc-rn-image-overlay

iOS

cd ios && pod install

Android

No additional steps required. Auto-linking will handle the setup.

Usage

import ImageOverlayModule from 'hnc-rn-image-overlay';

const processImage = async () => {
  try {
    const imagePath = '/path/to/image.jpg';
    const textLines = [
      '🕕 John Doe - 14:30    14/01/2026',
      '📍 123 Main Street, Hanoi, Vietnam'
    ];

    const resultPath = await ImageOverlayModule.addOverlayAndText(
      imagePath,
      textLines
    );

    console.log('Processed image:', resultPath);
  } catch (error) {
    console.error('Failed to process image:', error);
  }
};

API

addOverlayAndText(imagePath: string, textLines: string[]): Promise<string>

Adds a white semi-transparent overlay with text to an image.

Parameters:

  • imagePath (string) - Absolute path to the input image
  • textLines (string[]) - Array of text strings to render on the overlay

Returns:

  • Promise<string> - Resolves to the output image path (in cache directory)

Technical Details

Overlay Specifications

  • Position: Bottom of the image
  • Color: White with 75% opacity
  • Text color: Black
  • Font: System default
  • Font size: Automatically calculated based on image size
  • Output format: JPEG with 100% quality

Image Processing

Android:

  • Reads EXIF orientation data and applies rotation before processing
  • Handles all EXIF orientation values (1-8)

iOS:

  • Uses Core Graphics (UIKit) for drawing

License

MIT

Credits

Developed by HopNhat Team.