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

@appspacer/expo

v1.0.0

Published

AppSpacer OTA asset updates and crash reporting for Expo managed workflow

Readme

@appspacer/expo

Over-The-Air (OTA) asset updates and crash reporting for the Expo managed workflow.

The Expo SDK delivers assets (JSON, images, content files) — not JavaScript code. It downloads the bundle you publish from AppSpacer, verifies its checksum, caches it, and exposes the contents in-app via readAssetJson / readAssetString / readAssetBytes. It also includes a lightweight crash reporter with breadcrumbs.

Push releases with the AppSpacer CLI.

Full documentation: docs.appspacer.com


Installation

npx expo install @appspacer/expo

Install the required Expo peer modules if your project doesn't already have them:

npx expo install expo-application expo-crypto expo-device expo-file-system expo-network

Requirements: Expo SDK 50+, React Native 0.73+.


Quick Start

Initialize the SDK once at app startup:

import { AppSpacer } from '@appspacer/expo';

await AppSpacer.init({
  apiKey: 'your-deployment-key',
  // appVersion is auto-detected from the native build if omitted
});

// Read content delivered over the air (key matches the published asset).
const config = await AppSpacer.readAssetJson('bundle.zip');

By default (updateStrategy: 'onInit') the SDK checks for and downloads updates during init().


Publishing an update

Publish an asset file with the CLI:

# Android — publish a remote config file
appspacer release-expo -p android -a my-app -d Production -f ./remote-config.json

# iOS — mandatory content update with explicit version
appspacer release-expo -p ios -a my-app -d Production -f ./content.json -t 1.2.0 --mandatory

Configuration

interface AppSpacerConfig {
  apiKey: string;                                       // Deployment key from your dashboard
  appVersion?: string;                                  // Defaults to the native app version
  serverUrl?: string;                                   // Self-hosted API base URL. Default: https://api.appspacer.com/api
  debugLogging?: boolean;                               // Default: false
  updateStrategy?: 'onInit' | 'background' | 'manual';  // When to check for updates. Default: 'onInit'
  maxBreadcrumbs?: number;                              // Default: 50
  crashReportingEnabled?: boolean;                      // Default: true
}

updateStrategy:

  • onInit — check and await the update during init().
  • background — check during init() without blocking startup.
  • manual — never check automatically; call AppSpacer.checkForUpdates() yourself.

API

Updates

| Method | Description | |--------|-------------| | AppSpacer.init({ apiKey, config? }) | Initialize the SDK. Call once before anything else. | | AppSpacer.checkForUpdates() | Manually check for, download, and apply asset updates. Returns an OtaUpdateResult. | | AppSpacer.readAssetJson(key) | Read a downloaded asset as parsed JSON, or null. | | AppSpacer.readAssetString(key) | Read a downloaded asset as a string, or null. | | AppSpacer.readAssetBytes(key) | Read a downloaded asset as Uint8Array, or null. | | AppSpacer.activeBundleInfo() | Metadata about the currently active bundle. | | AppSpacer.cacheSize() | Total size of cached assets in bytes. | | AppSpacer.clearAssetCache() | Remove all cached assets. | | AppSpacer.reset() | Tear down the SDK instance. |

Crash reporting

| Method | Description | |--------|-------------| | AppSpacer.reportError(error, opts?) | Manually report an error with optional stackTrace, context, and extra. | | AppSpacer.addBreadcrumb(message, category?, data?, level?) | Record a breadcrumb leading up to a crash. | | AppSpacer.clearBreadcrumbs() | Clear recorded breadcrumbs. | | AppSpacer.sessionId | Current session id. | | AppSpacer.pendingCrashCount | Number of crashes queued for delivery. |


Links


License

MIT