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

react-native-image-sequence-encoder

v1.0.7

Published

On-device PNG-sequence → MP4 encoder for React-Native / Expo (no FFmpeg).

Readme

React Native Image Sequence Encoder

npm version License: MIT

On‑device PNG → MP4 encoder for React‑Native & Expo

No FFmpeg • No GPL • Just the platform video encoders — AVAssetWriter (iOS) & MediaCodec (Android)

Table of Contents

Features

  • Offline – runs entirely on the device, no upload required
  • Tiny footprint – adds ≈150 kB native code, zero third-party binaries
  • Expo-friendly – ships with a config-plugin; just add it to app.json
  • Classic & New Architecture – works if the host app opts into TurboModule/Fabric later

Installation

Supported React‑Native versions: 0.65 → 0.73 (Expo SDK 49/50). Older versions may compile but are not tested.

Expo‑managed / Expo dev‑client

npx expo install react-native-image-sequence-encoder

Add the plugin entry to app.json / app.config.js so EAS can autolink:

{
  "expo": {
    "plugins": ["react-native-image-sequence-encoder"]
  }
}

That’s it — run a development build or EAS production build and the native module is ready.

Local testing: run npx expo run:ios or npx expo run:android after installing the library; Expo Go will not include the native code.

Bare React‑Native ≥ 0.60

npm install react-native-image-sequence-encoder

iOS

cd ios && pod install && cd ..

Android

Android registration (one‑time): open MainApplication.java or MainApplication.kt and add the package:

import com.reactnativeimagesequenceencoder.ImageSequenceEncoderPackage;

@Override
protected List<ReactPackage> getPackages() {
  List<ReactPackage> packages = new PackageList(this).getPackages();
  packages.add(new ImageSequenceEncoderPackage());
  return packages;
}

Storage permission (optional): only needed if you save the MP4 outside the app sandbox.

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<!-- Android 13+ -->
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>

React‑Native < 0.60 (manual linking)

For legacy projects still on RN 0.59 or below:

react-native link react-native-image-sequence-encoder

Then follow the iOS pod install and Android package registration steps above.

Usage

import { encode } from 'react-native-image-sequence-encoder';
import * as FileSystem from 'expo-file-system';

// after you have /cache/frames/frame-00000.png …
const uri = await encode({
  folder:  FileSystem.cacheDirectory + 'frames/',
  fps:     30,
  width:   1280,
  height:  720,
  output:  FileSystem.documentDirectory + 'chat.mp4',
});

console.log('MP4 saved at', uri);

API

| Option | Type | Description | | -------- | ------ | --------------------------------------------------------------- | | folder | string | Directory ending with /, containing sequential PNG frames | | fps | number | Frames per second in the output file | | width | number | Output width in pixels | | height | number | Output height in pixels | | output | string | Absolute path for the MP4 (overwritten if already exists) |

Returns Promise<string> – absolute file URI of the saved video.

⚠️ The module does no down‑scaling; make sure width & height match the PNG resolution or resize the frames before calling encode().

Troubleshooting

| Problem | Fix | | ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------- | | Native module not linked | Rebuild the dev client (eas build --profile development) or run npx react-native run-android / run-ios. | | INFO_OUTPUT_FORMAT_CHANGED twice (Android) | Stick to even dimensions (e.g. 1280×720); some encoders reject odd sizes. | | iOS < 12 crash | The podspec targets iOS 12+. Older OS versions are not supported. |

Contributing

PRs are welcome! See CONTRIBUTING.md for details.

License

MIT © 2025 Elliot Fleming