AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
翻译准备中
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证An SDK for building Expo and React Native apps on Google Pixel devices: typed hooks for the CPU, GPU and TPU, sensors, radios, secure hardware, camera and audio, telemetry, haptics, and on-device and cloud AI.
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
PixelKit is the Expo & React Native SDK for Google Pixel hardware and on-device AI.
Build apps that leverage Tensor silicon telemetry, ADPF thermal headroom, Gemini Nano edge AI,
real-time Gemini Live bidirectional voice streaming, battery share, Wi-Fi 7 MLO, and camera/acoustic hardware.查看完整 README ↗useGeminiLive), query autonomous hardware diagnostic agents, and deploy ADK multi-agent triage teams.# Core SDK: silicon telemetry, sensors, radios, security, actuators, cloud AI
npx expo install @pixelkit-labs/sdk @pixelkit-labs/native
# On-device Edge AI: Gemini Nano, ML Kit vision & translation, local embeddings (opt-in)
npx expo install @pixelkit-labs/mlkit
import React from 'react';
import { View, Text, Button } from 'react-native';
import { useCPU, useADPF } from '@pixelkit-labs/sdk';
import { useGeminiNano } from '@pixelkit-labs/sdk/mlkit';
export function HardwareTelemetryScreen() {
const cpu = useCPU();
const { thermalHeadroom, thermalStatus } = useADPF();
const { isAvailable, generateText } = useGeminiNano();
const runOnDeviceAnalysis = async () => {
const prompt = `CPU Frequency: ${cpu.cores[0]?.curMHz} MHz. Thermal Status: ${thermalStatus}. Provide hardware advice.`;
const response = await generateText(prompt);
console.log('Gemini Nano analysis:', response);
};
return (
<View style={{ padding: 16 }}>
<Text>CPU Core 0: {cpu.cores[0]?.curMHz ?? '—'} MHz</Text>
<Text>Thermal Headroom: {thermalHeadroom?.toFixed(2) ?? '—'}</Text>
<Button
title="Analyze with Gemini Nano"
disabled={!isAvailable}
onPress={runOnDeviceAnalysis}
/>
</View>
);
}
Every hook is typed, observed, and tested across real hardware:
useCPU · useGPU · useSystemLoad · useTPU · useMemory · useADPF · useADPFHintSession · useBatteryShare · useChargingIntelligence · usePerfetto · useDevice · useDisplay · useNetwork · useCellular · useCapabilities
useSensors · useAltimeter · useThermometer · useLocation · useCamera · useCameraExtensions · useVideo · useMediaLibrary · useAudio · useMicrophoneArray · useSpatialAudio · useHealthConnect
useHaptics · useTorch · useHiLight
useBLE · useChannelSounding · useNFC · useUWB · useRadios · useWifi7MLO · useWifiRTT · useSatelliteNTN
useBiometrics · useSecurity · useKeyAgreement · usePrivateSpace · usePlayIntegrity
useGemini · useCloudHardwareAgent · useGeminiLive · useSpeechAI · useSpeech · useAppFunctions
useSpeech keeps platform TTS, explicit Android TTS and Gemini Live audio as distinct output identities. For an explicit enginePackage, PixelKit inventories and rechecks the installed package/version, resolves the exact active package and selected voice/locale, and rejects missing, changed, mismatched or unobservable engines before synthesis. resolveSpeechEngineIdentity() performs preflight and verifySpeechEngine() records a caller-supplied verification phrase with correlated start/terminal callbacks. External apps still own their model downloads, their internal execution provider remains unknown, and callbacks do not prove audible voice identity.
Cloud, Live, ADK, Nano, speech-recognition and TTS runs use explicit application-owned trace context. Build an immutable capability adapter with createCapabilityAdapter() (or createUnavailableCapabilityAdapter()), create the root with createTraceContext(), and pass both into the run API. Effect capabilities cannot execute without the adapter's authorizeEffect policy callback; empty or unavailable adapters fail before model contact.
Gemini credentials persist through native SecureStore only. getStoredApiKey(), saveApiKey() and removeApiKey() verify canonical storage state and migrate the legacy slot transactionally. Persistent browser credential storage is intentionally unavailable; browser callers must provide credentials ephemerally to APIs that accept them.
@pixelkit-labs/sdk/mlkit)useGeminiNano · useGenAITasks · useVisionAI · useNaturalLanguageAI · useEmbeddings
Every telemetry hook exposes source: 'hardware' | 'derived' | 'unavailable'. When a specific sensor or hardware feature is absent or unreadable on a device, the hook returns clean null values and reports unavailable. This gives applications deterministic typing and avoids fabricated dummy values.
Calls touching hardware, native modules, or filesystem are instrumented with traced(). Use useObservability() or the <PixelKitDevTools /> in-app HUD to inspect live trace latencies, error distributions, and module health.
| Specification | Requirement |
|---|---|
| Platform | Android 14+ (API 34+), optimized for Tensor G5/G6 & Android 17 (API 37) |
| Framework | React Native 0.86+, Expo SDK ~57.0+ |
| Build | Expo Development Build (npx expo run:android) or EAS Build |
| Hardware | Google Pixel 11 Pro, Pro XL, Pro Fold, and Pixel 8/9/10/11 series |
PixelKit requires an Expo development build because it compiles Kotlin modules directly into your app. 15 hooks are pure JavaScript/Expo APIs and function on any Android device; native silicon and hardware hooks gracefully degrade with source: 'unavailable' on non-supported devices.
Use the CLI doctor to verify your environment:
npx @pixelkit-labs/cli doctor
pixelkit doctor) and autonomous hardware triage agent (pixelkit agent).MIT © PixelKit Labs