Photon released Spectrum, an open-source TypeScript SDK that deploys AI agents directly to messaging platforms including iMessage, WhatsApp, Telegram, Slack, Discord, and Instagram. Developers write agent logic once and add platforms by modifying a single configuration line. The SDK is MIT-licensed and installable via npm, according to MarkTechPost.

The framework targets the agent distribution problem rather than the model quality problem. Most AI agents live behind dashboards or specialized apps that require users to adopt new interfaces. Spectrum routes agents into the messaging apps people already use, eliminating onboarding friction entirely.

Technical Architecture

Spectrum provides a unified programming interface that abstracts platform-specific differences between messaging services. A minimal iMessage agent requires fewer than 10 lines of TypeScript. Extending the same agent to WhatsApp means adding one entry to a providers array. The agent logic and message loop remain identical.

The SDK handles all message types (text, attachments, contacts, voice, and custom content) with type-safe inbound and outbound distinctions. For non-standard platforms, Spectrum exposes a definePlatform API for writing custom providers. Python, Go, Rust, and Swift support is on the roadmap, per MarkTechPost.

Photon built an edge-first network underneath Spectrum optimized for agent-to-human messaging. Published benchmarks show end-to-end message latency of 150 to 250 milliseconds, compared to a CPaaS industry average of 500ms to 1.5 seconds. The platform targets 99.9% uptime.

Spectrum also includes adaptive content rendering, which automatically adjusts message structure and formatting to match each platform’s native constraints. An iMessage deployment can send structured polls that render natively rather than falling back to raw text.

Production Use

The most prominent case study is Ditto, an iMessage-based matchmaking agent for college students. Using Spectrum, Ditto connected over 42,000 users and processed more than 400,000 messages entirely through iMessage, with no app download required, according to MarkTechPost.

Deployment Options

Spectrum is available in two configurations. The open-source SDK (MIT license) can be self-hosted and provides the unified messaging interface, type-safe message handling, and platform support. Spectrum Cloud is Photon’s managed infrastructure layer with hosted iMessage and WhatsApp connectivity, the edge network, audit logs, and human-in-the-loop controls for teams that need production deployment without managing messaging infrastructure.