Mac mini Edge Relay — Implementation Guide¶
Last Verified: February 2026
Canonical implementation: ../archety-edge
The edge relay is implemented as a Node/TypeScript application that:
- polls the macOS Messages database for new iMessages
- sends outbound messages via AppleScript / helper tooling
- maintains local SQLite state for scheduling/rules/plan context
- communicates with this backend via /edge/message, /photo/upload, and optionally /edge/ws
Quick start (recommended)¶
Follow the edge repo docs:
- ../archety-edge/README.md
- ../archety-edge/docs/setup/GETTING_STARTED.md
- ../archety-edge/docs/setup/CONFIGURATION.md
Backend integration checklist¶
- Backend environment variables set (Railway):
EDGE_SECRET-
ENVIRONMENT(set toproductionin prod) -
Edge
.envset on the Mac mini (not committed): -
EDGE_SECRET(must match backend) -
Edge
config.yamlpoints at the backend: -
backend.url: https://api.ikiro.ai(or the appropriate env URL) -
Confirm endpoints:
POST /edge/messageworksPOST /photo/uploadworksGET /edge/wsconnects (optional, but recommended)
Protocol reference:
- docs/architecture/WEBSOCKET_PROTOCOL.md