# photon-hq/spectrum-ts

Bring agents to any interfaces

Repository: https://github.com/photon-hq/spectrum-ts
Canonical: https://ross.abutalabs.com/products/spectrum-ts
Homepage: https://photon.codes/spectrum
Language: TypeScript
License: MIT
License Family: permissive
Topics: agent, photon, typescript, ai
Last push: 2026-08-24T23:25:24+00:00

## Health v2 (maintenance only)
Score: 78/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 86, longevity 18
- inputs: {"age_days": 256, "days_push": 9, "days_rel": 13, "gap_med": 0.0, "n_releases_24m": 87}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1496, forks 189 (observed 2026-08-28T04:04:53.614415+00:00)

## What it is
Spectrum (by Photon) is an open-source TypeScript framework for building AI agents that communicate over real messaging interfaces like iMessage, WhatsApp, Telegram, SMS/RCS, Slack, Discord, and voice. It provides a unified SDK with pluggable providers, a runtime for handling inbound messages, and optional hosted infrastructure (Spectrum Cloud) or fully self-hosted setups.

## Use cases
- build an AI agent that replies over iMessage
- connect a chatbot to WhatsApp Business and Telegram
- run one agent server across multiple messaging channels
- send SMS with iMessage fallback routing
- build a Telegram bot with webhooks in TypeScript
- self-host an agent connected to a local iMessage database
- add voice call support to an AI agent

## When to choose
- you want agents reachable on native messaging apps instead of web chat
- you need one unified API across iMessage, WhatsApp, Telegram, and SMS
- you want a batteries-included TypeScript SDK with managed or self-hosted options

## When to avoid
- you only need a simple web chat widget
- your project is not in the JavaScript/TypeScript ecosystem
- you need channels Spectrum does not yet support and cannot build a custom provider

## Facets
- artifact type: framework
- maturity: active
- function: agent-framework, chatbot, sdk, webhook, http-server, cli
- domain: chatbots, messaging-platforms, developer-tools
- platform: bun, cross-platform, cli, self-hosted, cloud
- tags: messaging, imessage, whatsapp, telegram, sms, multi-channel, agent-infrastructure, voice, unified-messaging, ai-agents, automation, nodejs, typescript

## Member repositories
- photon-hq/spectrum-ts (main) score 78

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:53.614415+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:33:14.222368+00:00, confidence not recorded.
  - readme: https://github.com/photon-hq/spectrum-ts (fetched 2026-08-28T04:04:53.614415+00:00, sha a6a9be785e03)
  - homepage: https://photon.codes/spectrum (fetched 2026-08-29T11:38:54.021870+00:00, sha 870d35a2290d)
  - site_page: https://docs.photon.codes (fetched 2026-08-29T11:38:54.033081+00:00, sha b0a9dd22d5b3)
  - registry_npm: https://registry.npmjs.org/spectrum-ts (fetched 2026-08-29T11:38:54.035131+00:00, sha 9c43376f05c8)
  - site_page: https://photon.codes/pricing (fetched 2026-08-29T11:38:54.030952+00:00, sha 7ad035be5a44)
- Data as of 2026-08-30T08:39:29.467469+00:00.
