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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@aippy/runtime

v0.2.3

Published

Aippy Runtime SDK - Runtime SDK for Aippy projects

Readme

@aippy/runtime

Runtime SDK for Aippy projects providing device functionality, platform detection, and utility functions.

Installation

npm install @aippy/runtime

Usage

Core

import { AippyConfig, mergeConfig } from '@aippy/runtime/core';

const config = mergeConfig({
  debug: true,
  apiBaseUrl: 'https://api.example.com'
});

Device APIs

import { camera, geolocation, sensors, fileSystem } from '@aippy/runtime/device';

// Camera
const stream = await camera.getStream();
const photo = await camera.capturePhoto({ quality: 'high' });

// Geolocation
const position = await geolocation.getCurrentPosition();
const watchId = geolocation.watchPosition((pos) => {
  console.log('Position:', pos);
});

// Sensors
const orientation = await sensors.getOrientation();
const cleanup = sensors.watchOrientation((data) => {
  console.log('Orientation:', data);
});

// File System
const files = await fileSystem.openFile({ multiple: true });
await fileSystem.saveFile(blob, 'filename.txt');

Utils

import { platform, performanceMonitor, pwa } from '@aippy/runtime/utils';

// Platform detection
const info = platform.getPlatformInfo();
const capabilities = platform.getCapabilities();

// Performance monitoring
const metrics = await performanceMonitor.getCoreWebVitals();
const timing = performanceMonitor.getNavigationTiming();

// PWA utilities
const pwaInfo = pwa.getPWAInfo();
await pwa.registerServiceWorker('/sw.js');
await pwa.sendNotification('Hello!');

Audio (iOS Silent Mode Compatible)

import { patchAudioContext } from '@aippy/runtime/audio';

// Create and patch AudioContext to bypass iOS silent mode
const ctx = new AudioContext();
const patchedCtx = patchAudioContext(ctx);

// Unlock audio on user interaction (required on iOS)
button.onclick = async () => {
  await patchedCtx.unlock();
  
  // Use native Web Audio API as normal
  const osc = patchedCtx.createOscillator();
  osc.connect(patchedCtx.destination);
  osc.start();
  osc.stop(patchedCtx.currentTime + 1);
};

Packages

  • @aippy/runtime/core - Core types and configuration
  • @aippy/runtime/device - Device APIs (camera, geolocation, sensors, file system)
  • @aippy/runtime/utils - Platform detection, performance monitoring, PWA utilities
  • @aippy/runtime/audio - iOS-compatible Web Audio API wrapper

Publishing

This package is published to the npm public registry. The build process ensures that only compiled JavaScript files and TypeScript declarations are included in the published package - no source code is exposed.

Build Process

  • Compiles TypeScript to JavaScript
  • Generates TypeScript declaration files
  • Removes source maps to protect source code
  • Only includes dist/ directory and README.md in the published package

Development

# Install dependencies
pnpm install

# Build
pnpm run build

# Type check
pnpm run type-check

# Lint
pnpm run lint

# Format
pnpm run format

# Publish (for maintainers)
pnpm run publish:patch  # 0.0.0 -> 0.0.1
pnpm run publish:minor  # 0.0.0 -> 0.1.0
pnpm run publish:major  # 0.0.0 -> 1.0.0

Support

License

UNLICENSED - This is a proprietary SDK. All rights reserved.