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
npx expo install @pixelkit-labs/sdk @pixelkit-labs/native
# on-device ML, opt-in: adds 19 ML Kit artifacts to your APKnpx expo install @pixelkit-labs/mlkitUse 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
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
QuickstartInstall, build onto a device, and read your first value.
API referenceEvery hook: inputs, outputs, and what failure looks like.
GuidesOn-device Gemini Nano, function calling, and voice.
ArchitectureHow the hooks reach the hardware, layer by layer.
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.