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-s3-bg-uploader

v1.1.3

Published

Seamless file uploads that continue even when your app goes to background. Pausable, resumable, and built for the S3 API. This is a react native package built with Nitro and Rust. It is compiled to native modules on iOS and Android, and to WebAssembly for

Readme

react-native-s3-bg-uploader

Version Downloads License

📖 Read the Documentation

Seamless file uploads that continue even when your app goes to background. Pausable, resumable, and built for the S3 API. react-native-s3-bg-uploader is a react native package built with Nitro and Rust. It is compiled to native modules on iOS and Android, and to WebAssembly for the web. On iOS it uses a BGContinuedProcessingTask and on Android a foreground service.

Requirements

  • React Native v0.76.0 or higher
  • Node 18.0.0 or higher

iOS

  • background uploading is only supported for iOS 26 or later
  • enabled "background fetch" & "background processing" capabilities
  • registered BGTaskSchedulerPermittedIdentifiers of value $(PRODUCT_BUNDLE_IDENTIFIER).background inside info.plist

Installation

npm install react-native-s3-bg-uploader react-native-nitro-modules

Usage

import { S3BgUploader } from 'react-native-s3-bg-uploader'

// Configure backend endpoints once (e.g. in app startup)
S3BgUploader.setConfig(
  'https://api.example.com/upload/startUpload',
  'https://api.example.com/upload/getUploadUrls',
  'https://api.example.com/upload/completeUpload',
)

// Track progress
S3BgUploader.setProgressCallback((file, session, transfer) => {
  console.log(`${transfer.percentage}% — ${file.fileName}`)
})

// Enqueue files and start
const transferId = 'my-transfer'
await S3BgUploader.uploadFile('/path/to/file.mp4', transferId, { userId: '42' })
await S3BgUploader.resume()

// Pause / resume / cancel
S3BgUploader.pause()
await S3BgUploader.resume()
S3BgUploader.cancel()

For the full API reference see the documentation.

Building

For native platforms:

npm run build:ios
npm run build:android

For web:

npm run build:wasm

Additional requirements

  • rustup
  • iOS: Xcode with Command Line Tools (xcode-select --install)
  • Android: Android SDK with NDK — set ANDROID_NDK_HOME or ANDROID_NDK_ROOT, install cargo-ndk (cargo install cargo-ndk)

Running the Example App

npm install
npm run example:ios
npm run example:android
npm run example:web

[!IMPORTANT]
Background uploads on iOS only work on a physical device as the simulator does not support the BGContinuedProcessingTask API.

[!IMPORTANT]
Please do not upload confidential files. The example app is connected to a demo s3 bucket. Files are only deleted irregularly from this bucket.

Production Builds

Android

Follow the instructions here to generate an upload key and to set required gradle variables.

After that:

cd example
npx react-native build-android --mode=release
npm run android -- --mode="release"

iOS

Change build configuration to production inside XCode: Open S3BackgroundUploaderExample.xcworkspace and edit the scheme.

Troubleshooting

ReferenceError: Can't find variable: wasm_bindgen

Run in the root of the repo

npm run build:rust:wasm

Credits

Bootstrapped with create-nitro-module.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.