πŸš€ DAY 2 OF LAUNCH WEEK: Announcing Socket Certified Patches: One-Click Fixes for Vulnerable Dependencies.Learn more β†’
Socket
Book a DemoInstallSign in
Socket

@danyalwe/capacitor-systeminfo

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@danyalwe/capacitor-systeminfo

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

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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

NameAndroidiOSWeb
getInfosβœ…βŒβœ…
startβœ…βŒβŒ
stopβœ…βŒβŒ
addListenerβœ…βŒβŒ
removeAllListenersβœ…βŒβŒ

Supported properties

SoftwareInfosAndroidiOSWeb
osNameβœ…βŒβœ…
osVersionβœ…βŒβœ…
brandNameβœ…βŒβœ…
sdkVersionβœ…βŒβŒ
sdkNameβœ…βŒβŒ
securityPatchβœ…βŒβŒ
uiVersionβœ…βŒβŒ
deviceIDβœ…βŒβŒ
boardNameβœ…βŒβŒ
bootloaderVersionβœ…βŒβŒ
supportedABIsβœ…βŒβŒ
HardwareInfosAndroidiOSWeb
manufacturerβœ…βŒβœ…
featuresβœ…βŒβœ…
totalCoresβœ…βŒβœ…
totalRAMβœ…βŒβœ…
totalHDDβœ…βŒβš οΈ
totalSDβœ…βŒβŒ
modelIDβœ…βŒβŒ
modelCodeNameβœ…βŒβŒ
cpuModelβœ…βŒβŒ
cpuCoresβœ…βŒβŒ

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

RuntimeInfosAndroidiOSWeb
usedRAMβœ…βŒβŒ
usedHDDβœ…βŒβŒ
usedSDβœ…βŒβŒ

API

  • Interfaces
  • Type Aliases

Interface for the System Info plugin

Interfaces

SoftwareInfo

Represents software information about a device.

PropTypeDescription
osNamestringThe name of the operating system.
osVersionstringThe version of the operating system.
brandNamestringThe name of the device brand.
sdkVersionnumberThe version of the SDK.
sdkNamestringThe name of the SDK.
securityPatchstringThe security patch level.
uiVersionstringThe version of the UI.
deviceIDstringThe unique identifier of the device.
boardNamestringThe name of the device board.
bootloaderVersionstringThe version of the bootloader.
supportedABIs{}The list of supported ABIs.
locales{}The list of locales used by the device
timezonestringThe timezone of the device

HardwareInfo

Represents hardware information of a device.

PropTypeDescription
modelIDstringThe model ID of the device.
modelCodeNamestringThe code name of the device model.
cpuModelstringThe model of the CPU.
cpuCores{ maxFreq: {}; minFreq: {}; }The number of cores and threads of the CPU.
totalSDnumberThe total size of the SD card in bytes.
totalHDDnumberThe total size of the HDD in bytes.
totalRAMnumberThe total size of the RAM in bytes.
totalCoresnumberThe total number of cores in the CPU.
manufacturerstringThe manufacturer of the device.
features{}The features supported by the device.

RuntimeInfo

Interface for runtime information.

PropTypeDescription
usedRAMnumberThe amount of used RAM in bytes.
usedHDDnumberThe amount of used HDD in bytes.
usedSDnumberThe amount of used SD card storage in bytes.

PluginListenerHandle

PropType
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'

Keywords

capacitor

FAQs

Package last updated on 15 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts