spectrum-ts names SMS, email and voice, then lists packages for none of them
Bring agents to any interfaces
At a glance
- What is it?
- Spectrum is Photon's open-source agent framework for reaching people on the channels they already use, published as a runtime package plus one scoped package per platform. The prose promises SMS, email and voice. The platform table offers iMessage, WhatsApp Business, Telegram, Slack and a terminal, and the local iMessage package is the one that reads a chat database off your disk.
- Who is it for?
- Good fit if the channel you actually need is one of the published packages, since those are the surfaces with code behind them. Before committing, check that your required channel is in the table rather than the pitch paragraph, and if you need local iMessage, be clear that you are pointing an agent at a personal message database on one machine.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 1 day ago.
- What is it written in?
- Mainly TypeScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- photon-hq/spectrum-ts2,206 ★ · +534
| Repository | 2026-09-12 | 2026-11-22 |
|---|---|---|
| photon-hq/spectrum-ts | 1.7k | 2.2k |
534 Stars in the last 71 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The pitch names three channels the table does not ship
The framing paragraph says agents should be reachable over real conversation surfaces like iMessage, SMS and email, and the About section widens the list to iMessage, SMS, email, Slack, Discord and voice.
The platform table is shorter and does not overlap completely:
| Platform | Package | |----------|---------| | iMessage | `@spectrum-ts/imessage` | | Local iMessage | `@spectrum-ts/imessage-local` (explicit install only) | | WhatsApp Business | `@spectrum-ts/whatsapp-business` | | Telegram | `@spectrum-ts/telegram` | | Slack | `@spectrum-ts/slack` | | Terminal | `@spectrum-ts/terminal` | | Custom | `definePlatform` from `spectrum-ts` |
There is no SMS package, no email package and no voice package. There is also no Discord package, despite Discord appearing in the channel list and appearing instead as a transport in the sibling product's configuration vocabulary. So of six surfaces named in the prose, four have a published package, one is available only through the custom provider interface, and one, SMS, is not accounted for at all.
The custom row is the honest answer for the rest. Anything can be built on definePlatform, but that is code you write rather than a package you install.
One import path resolves to packages with different names
The quickstart imports a provider from a subpath of the main package:
import { Spectrum } from "spectrum-ts";
import { imessage } from "spectrum-ts/providers/imessage";But the package that actually provides that provider is named `@spectrum-ts/imessage`. So the import path and the installed package name do not match, for every platform on the list.
That indirection is what makes the batteries-included install possible. One dependency, `bun add spectrum-ts`, brings in the runtime plus the standard provider set, and the subpath imports then resolve to whatever those packages expose. If you want a smaller install you name the pieces yourself, for example `bun add @spectrum-ts/core @spectrum-ts/telegram`, and import from the scoped packages directly. Either way the subpath spelling keeps working as long as the matching provider package is present.
The failure mode is specified, which is unusual and worth crediting. If the provider package is missing, the import fails at build or startup time and the error names the exact package to add. You find out before your agent is handling messages rather than after.
The core package appears in a command and never in the table
The smaller install example is this:
`bun add @spectrum-ts/core @spectrum-ts/telegram`
The platform table above it never mentions core. The table introduces six provider packages plus the custom interface, and core is not among them. A reader working from the table alone has no idea what core is, whether it is required, or what the runtime package `spectrum-ts` is in relation to it.
So the two install paths are described with different vocabularies. The full install uses the runtime name. The slim install uses the scoped core name plus scoped provider names. Whether the runtime package is a wrapper that depends on core, or an alternative to it, is not stated anywhere in the visible documentation.
That is the one gap worth resolving before you wire this into a build, because it decides whether an unpinned install resolves to two copies of the same abstraction or one. The rest of the publishing setup is careful. The development dependencies include a types correctness checker, a linter for package publishing hygiene and a clean-publish tool, which is the right trio for a project putting seven packages on a registry.
The local iMessage package reads a database on your own disk
Two ways exist to reach iMessage. One goes through Spectrum Cloud, hosted infrastructure, which is described as the fastest way to ship, with credentials ready in minutes after signing up for a project ID and secret.
The other is the standalone path, and the local iMessage package is the one to look at closely. It is installed explicitly rather than arriving with the standard set, it is published under its own name, and it connects to a local iMessage database on the machine it runs on.
That is a different category of thing from the rest. The cloud route hands message transport to a hosted service holding credentials. The local route points an agent at a personal message store sitting in a user account directory, and whatever the agent can do with it follows from the tool permissions you grant. The framework describes both as supported and does not distinguish them in the table beyond the word explicit.
The same standalone section also offers two other routes: bring your own gRPC endpoints, and build your own platform provider through the custom interface.
Every package is tested twice, once on each runtime
The root scripts run the suite twice against the same workspaces:
"test": "turbo run test:node test:bun"And both halves are exposed as their own root scripts, one that runs the node variants across every workspace and one that runs the bun variants. There is also a separate typecheck pass through the task runner.
Testing a TypeScript library under two JavaScript runtimes is a real discipline rather than a redundant one, since package resolution, module resolution and the availability of newer syntax differ between them. For a framework whose whole job is importing platform packages that may have their own runtime assumptions, that is a defensible choice.
It does mean every package in the workspace is expected to define both a node test task and a bun test task, because the root scripts name them explicitly. A package that only defines one would fail the aggregate run rather than being skipped.
The workspaces are the packages directory and the examples directory, and examples are full members rather than a separate build, so the sample application is typechecked and tested with the packages it imports.
Bun's version lives in two files and the linter is the only exact pin
The package manager is pinned in the manifest field, which reads bun at 1.3.14. There is also a dotfile at the repository root named for the same tool holding the same kind of information.
Two declarations of one version is one more than needed. Nothing reconciles them, and the failure mode if they drift is a developer and a container building against different runtimes while everything still passes locally, because the developer happens to match whichever one their editor reads.
The dependency block has the opposite pattern. Every dev dependency uses a caret range except one: the ultracite formatter wrapper is pinned to an exact version with no range at all. That is a defensible choice for a tool whose output is committed, since a formatter upgrade rewrites files across the whole repository. It is also the only dependency in the file where an update cannot be taken automatically.
Underneath sit Biome for the actual linting and formatting, exposed through the check and fix scripts, and Turborepo for the task graph across the workspaces.
One runtime dependency and it is telemetry
The root package carries a single runtime dependency, and it is an OpenTelemetry package under a different scope from everything else the project publishes. The framework packages are all under one scope, the platform packages under another, and this one under a third.
It is a hard dependency rather than an optional or peer one, so anything pulling in a platform package inherits it. That is a deliberate choice for a framework whose selling point is operating agents on real conversation channels, where observability across a session matters. It is also the kind of choice that should be made deliberately rather than inherited from a template.
Two smaller things in the same file. The root is marked private, which is correct, since only the packages and examples directories are published. And the badge block at the top of the front page contains the npm package link twice, pointing at the same URL both times, so one of the two badges that were meant to be there is missing rather than different.
At the repository root there are configuration directories for six editors and coding agents, plus an agents file, a contribution guide, a renovate configuration and a task runner configuration. For a repository whose published surface is seven packages, the root is carrying more configuration than manifest.
Editorial conclusion
Good fit if the channel you actually need is one of the published packages, since those are the surfaces with code behind them. Before committing, check that your required channel is in the table rather than the pitch paragraph, and if you need local iMessage, be clear that you are pointing an agent at a personal message database on one machine. The dual import scheme is worth reading once before you write code against it, and remember the root package depends on telemetry unconditionally.
Frequently asked questions
Which channels can an agent reach through Spectrum?
The published provider packages cover iMessage, local iMessage, WhatsApp Business, Telegram, Slack and a terminal, plus a custom interface called definePlatform for anything else. SMS, email and voice are named in the project description but have no package in the platform table.
Do I have to use Spectrum Cloud with Spectrum?
No. The framework runs standalone, either connecting to a local iMessage database with the separate imessage-local package, bringing your own gRPC endpoints, or building your own platform provider. Cloud is described as the fastest way to ship, with credentials ready in minutes after sign-up.
How do I install only the Spectrum providers I need?
Add the core runtime package plus the specific providers, for example bun add @spectrum-ts/core @spectrum-ts/telegram, and import from the scoped packages directly. The spectrum-ts/providers/<platform> subpath imports keep working either way as long as the matching provider package is installed.
What happens if a Spectrum provider package is missing?
The import fails at build or startup time rather than at runtime, and the error names the exact package that needs to be added. That is the documented behaviour for the provider subpath imports, so a missing channel is caught before the agent handles any messages.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/photon-hq-spectrum-ts)Star history chart for your README
[](https://hysenlabs.com/projects/photon-hq-spectrum-ts)Was this useful?