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

@danyalwe/capacitor-systeminfo

v1.0.0

Published

Get access to every info about the device software and hardware!

Readme

Capacitor Plugin - SystemInfo

Get access to every info about the device software and hardware!

Supported Android version: 23+
Supported iOS version: Not supported
Supported Browsers: Chromium-based

Install

npm install @danyalwe/capacitor-systeminfo
npx cap sync

Todos

  • [ ] Add support for iOS
  • [ ] Add CPU usage

Example

The following example demonstrates how to use the SystemInfo plugin to access the device's info:

import { SystemInfo } from '@danyalwe/capacitor-systeminfo'

// Get all system informations
const info = await SystemInfo.getInfos()

// Add a listener to receive used ram, hdd and sd every second
SystemInfo.addListener('runtimeChange', (data) => {
  console.log('Runtime data:', data)
})

// Be sure to start ALWAYS AFTER adding the listener
await SystemInfo.start()

// Stop the listener
await SystemInfo.stop()

Supported methods

| Name | Android | iOS | Web | | :----------------- | :------ | :-- | :-- | | getInfos | ✅ | ❌ | ✅ | | start | ✅ | ❌ | ❌ | | stop | ✅ | ❌ | ❌ | | addListener | ✅ | ❌ | ❌ | | removeAllListeners | ✅ | ❌ | ❌ |

Supported properties

| SoftwareInfos | Android | iOS | Web | | :---------------------- | :------ | :-- | :-- | | osName | ✅ | ❌ | ✅ | | osVersion | ✅ | ❌ | ✅ | | brandName | ✅ | ❌ | ✅ | | sdkVersion | ✅ | ❌ | ❌ | | sdkName | ✅ | ❌ | ❌ | | securityPatch | ✅ | ❌ | ❌ | | uiVersion | ✅ | ❌ | ❌ | | deviceID | ✅ | ❌ | ❌ | | boardName | ✅ | ❌ | ❌ | | bootloaderVersion | ✅ | ❌ | ❌ | | supportedABIs | ✅ | ❌ | ❌ |

| HardwareInfos | Android | iOS | Web | | :------------------ | :------ | :-- | :-- | | manufacturer | ✅ | ❌ | ✅ | | features | ✅ | ❌ | ✅ | | totalCores | ✅ | ❌ | ✅ | | totalRAM | ✅ | ❌ | ✅ | | totalHDD | ✅ | ❌ | ⚠️ | | totalSD | ✅ | ❌ | ❌ | | modelID | ✅ | ❌ | ❌ | | modelCodeName | ✅ | ❌ | ❌ | | cpuModel | ✅ | ❌ | ❌ | | cpuCores | ✅ | ❌ | ❌ |

⚠️: Not real total, it's the available

| RuntimeInfos | Android | iOS | Web | | :------------ | :------ | :-- | :-- | | usedRAM | ✅ | ❌ | ❌ | | usedHDD | ✅ | ❌ | ❌ | | usedSD | ✅ | ❌ | ❌ |

API

Interface for the System Info plugin

Interfaces

SoftwareInfo

Represents software information about a device.

| Prop | Type | Description | | ----------------------- | ------------------- | -------------------------------------- | | osName | string | The name of the operating system. | | osVersion | string | The version of the operating system. | | brandName | string | The name of the device brand. | | sdkVersion | number | The version of the SDK. | | sdkName | string | The name of the SDK. | | securityPatch | string | The security patch level. | | uiVersion | string | The version of the UI. | | deviceID | string | The unique identifier of the device. | | boardName | string | The name of the device board. | | bootloaderVersion | string | The version of the bootloader. | | supportedABIs | {} | The list of supported ABIs. | | locales | {} | The list of locales used by the device | | timezone | string | The timezone of the device |

HardwareInfo

Represents hardware information of a device.

| Prop | Type | Description | | ------------------- | ------------------------------------------ | ------------------------------------------- | | modelID | string | The model ID of the device. | | modelCodeName | string | The code name of the device model. | | cpuModel | string | The model of the CPU. | | cpuCores | { maxFreq: {}; minFreq: {}; } | The number of cores and threads of the CPU. | | totalSD | number | The total size of the SD card in bytes. | | totalHDD | number | The total size of the HDD in bytes. | | totalRAM | number | The total size of the RAM in bytes. | | totalCores | number | The total number of cores in the CPU. | | manufacturer | string | The manufacturer of the device. | | features | {} | The features supported by the device. |

RuntimeInfo

Interface for runtime information.

| Prop | Type | Description | | ------------- | ------------------- | -------------------------------------------- | | usedRAM | number | The amount of used RAM in bytes. | | usedHDD | number | The amount of used HDD in bytes. | | usedSD | number | The amount of used SD card storage in bytes. |

PluginListenerHandle

| Prop | Type | | ------------ | ------------------------- | | remove | () => any |

Type Aliases

SystemInformation

Represents a collection of system information, including both software and hardware information.

SoftwareInfo & HardwareInfo

Features

Represents the available features that can be queried using the Capacitor System Info plugin.

'bluetooth' | 'bluetoothLowEnergy' | 'microphone' | 'speaker' | 'nfc' | 'camera' | 'gamepad' | 'gps' | 'touchscreen' | 'wifi' | 'fingerprint' | 'face' | 'ethernet'