Skip to content
A Google Pixel showing the PixelKit shield on screen

PixelKit

An SDK for building Expo and React Native applications on Google Pixel devices. Typed React hooks for the CPU, GPU and TPU, device sensors, radios, secure hardware, camera and audio, display and power telemetry, haptics, on-device AI, and Cloud AI.

Install

Terminal window
npx expo install @pixelkit-labs/sdk @pixelkit-labs/native
# on-device ML, opt-in: adds 19 ML Kit artifacts to your APK
npx expo install @pixelkit-labs/mlkit

Use it

import { useCPU, useSensors, useBiometrics } from '@pixelkit-labs/sdk';
import { useGeminiNano } from '@pixelkit-labs/sdk/mlkit';
function Readout() {
const cpu = useCPU();
const { pressure } = useSensors();
return (
<>
<Text>{cpu.cores[0]?.curMHz ?? ''} MHz</Text>
<Text>{pressure ?? ''} hPa</Text>
</>
);
}

What you can read

AreaHooks
Silicon & computeuseADPFuseADPFHintSessionuseBatteryShareuseChargingIntelligenceuseCPUuseGPUuseMemoryusePerfettouseTPU
System & mediauseAudiouseCapabilitiesuseCellularuseDeviceuseDisplayuseMediaLibraryuseNetworkuseSpatialAudiouseVideo
Sensors & actuatorsuseAltimeteruseCamerauseCameraExtensionsuseHapticsuseHealthConnectuseMicrophoneArrayuseSensorsuseThermometeruseTorch
Radios & securityuseBiometricsuseBLEuseChannelSoundinguseKeyAgreementuseLocationuseNFCusePlayIntegrityusePrivateSpaceuseRadiosuseSatelliteNTNuseSecurityuseWifi7MLOuseWifiRTT
AIuseAppFunctionsuseEmbeddingsuseGeminiuseGeminiNanouseGenAITasksuseNaturalLanguageAIuseSpeechuseSpeechAIuseVisionAI
Pixel ProuseHiLightuseUWB

All 51 hooks are documented with their arguments, every field they return with the type it really has, and a contract for each function they expose.

Where to go

Built from the template? It is a working four-tab app that exercises the hooks on a real device. Something reading and you are not sure why? npx @pixelkit-labs/cli doctor says which of adb, the device, the development build or AICore is missing.