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