Track your ESP32 / nRF52840 devices on a private, self-hosted dashboard powered by Apple's 2-billion-device Find My network. No Apple account. No Apple hardware. Full end-to-end encryption.
[ESP32 / nRF52840] → BLE (secp224r1 pubkey) → [Nearby iPhone]
↓
ECDH + AES-128-GCM encrypt → upload to Apple servers (anonymously)
↓
[Backend] polls Apple → decrypts with private key → stores location
↓
[Frontend] MapLibre dashboard ← REST API
- Device broadcasts a rotating secp224r1 public key every 2 minutes. Deep-sleeps between pulses — no GPS, no SIM, no internet.
- Apple's network — any nearby iPhone — silently encrypts the BLE advertisement and uploads it. The iPhone learns nothing about what it scanned.
- Backend authenticates to Apple's Search Party API via
find-my.js, decrypts each report with the private key, and persists locations in PostgreSQL. - Frontend renders a live MapLibre map with Catmull-Rom path smoothing and inverse-variance location fusion.
| Layer | Tech |
|---|---|
| Firmware | ESP-IDF 5.4 (ESP32, ESP32-C3) · NCS 2.7 / Zephyr 3.6 (nRF52840) |
| Crypto library | libs/find-my.js — SRP auth, ECDH, AES-128-GCM, rolling keys |
| Backend | NestJS · TypeORM · PostgreSQL · Valkey (BullMQ) · Fastify |
| Frontend | Next.js 15 · React 19 · MapLibre GL · NextAuth.js v5 · Tailwind v4 |
| Infra | Docker Compose · Anisette-V3 server |
- Docker + Docker Compose
- An Apple ID (stored only on your server, never shared)
git clone https://github.com/thangvv-tech/find-my.git
cd find-mycp backend/.env.example backend/.env
cp frontend/.env.example frontend/.env.localEdit backend/.env:
JWT_SECRET=<64 random chars>
BACKEND_INTERNAL_SECRET=<64 random chars>
# Apple credentials are added via the dashboard after first runEdit frontend/.env.local:
NEXTAUTH_SECRET=<64 random chars>
NEXTAUTH_URL=http://localhost:3000
NEXT_PUBLIC_API_URL=http://localhost:5000
# At least one OAuth provider required
GITHUB_CLIENT_ID=...
GITHUB_CLIENT_SECRET=...
# or
GOOGLE_CLIENT_ID=...
GOOGLE_CLIENT_SECRET=...make up
# or:
docker compose up -d --buildOpen http://localhost:3000.
First run: the Anisette server generates a unique Machine ID on first Apple authentication. Do not delete the
anisette_datavolume or you will need to re-authenticate.
find-my/
├── firmware/ # ESP32 (ESP-IDF) + nRF52840 (Zephyr) BLE advertiser
├── libs/find-my.js/ # Node.js Apple Find My crypto + API library
├── backend/ # NestJS REST API + sync pipeline
├── frontend/ # Next.js dashboard
└── docker-compose.yml # Full-stack deployment
Dockerized build toolchain — no local ESP-IDF or NCS install needed.
cd firmware
./build.sh esp32c3 # build
./build.sh esp32c3 flash /dev/ttyUSB0 # build + flashSupported boards: ESP32-C3 SuperMini, ESP32 DevKit, Nice!Nano v2 (nRF52840).
See firmware/README.md for full build and flash instructions.
Standalone TypeScript library for Apple's Search Party API. Handles SRP authentication, 2FA, ECDH + KDF + AES-128-GCM decryption, and rolling key support.
See libs/find-my.js/README.md.
NestJS service exposing:
/auth— OAuth + JWT session management/devices— device + key CRUD/location— location history, BullMQ sync jobs/accounts— Apple account management (encrypted session storage)
See backend/README.md.
Next.js 15 App Router dashboard:
- MapLibre GL map with Catmull-Rom path smoothing
- In-browser firmware flash (WebUSB / WebSerial via esptool.js + nrfdfu)
- PWA-ready, dark mode, multi-user OAuth
- Server-side auth with NextAuth.js v5
See frontend/README.md.
| Board | SoC | Flash method |
|---|---|---|
| ESP32-C3 SuperMini | ESP32-C3 | USB Serial (esptool) |
| ESP32 DevKit 38-pin | ESP32 | USB Serial (esptool) |
| Nice!Nano v2 | nRF52840 | UF2 Mass Storage |
- Private keys never leave your server. Apple only receives encrypted reports.
- Apple ID credentials are stored server-side in an encrypted session file. No plaintext password persisted after authentication.
- All API endpoints are JWT-authenticated. Internal service calls use a shared
BACKEND_INTERNAL_SECRET.
MIT — see LICENSE.