photon

Photon turns a single TypeScript class ("photon") into multiple runnable interfaces: an auto-generated web UI (Beam) for humans, a CLI tool, and an MCP server for AI agents, deriving tool schemas and validation from TypeScript method signatures, types, and JSDoc/comments.

Evaluated Mar 30, 2026 (21d ago)
Repo ↗ DevTools mcp typescript cli web-ui beam code-generation single-file developer-tools workflow-automation
⚙ Agent Friendliness
51
/ 100
Can an agent use this?
🔒 Security
47
/ 100
Is it safe for agents?
⚡ Reliability
31
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
78
Documentation
70
Error Messages
0
Auth Simplicity
45
Rate Limits
5

🔒 Security

TLS Enforcement
40
Auth Strength
50
Scope Granularity
35
Dep. Hygiene
55
Secret Handling
55

README describes environment variable mapping for constructor parameters (e.g., WEATHER_API_KEY) and claims built-in OAuth 2.0 flows, but the provided content does not document transport security defaults, authz enforcement, scope model, secure logging behavior, or secret handling guarantees for Beam/MCP/Webhooks. Dependency list exists in manifest but CVE status is not known from the provided data.

⚡ Reliability

Uptime/SLA
0
Version Stability
55
Breaking Changes
40
Error Recovery
30
AF Security Reliability

Best When

You want one TypeScript source of truth for typed capabilities that should be callable from CLI, a generated web UI, and AI clients through MCP.

Avoid When

You need guaranteed, production-grade security controls out-of-the-box (authn/authz, transport security configuration, data handling) with explicit documentation for those controls.

Use Cases

  • Expose business logic to AI agents via MCP without hand-writing schemas
  • Generate human-friendly forms/controls for tool methods automatically
  • Create automation/ops CLIs from the same underlying TypeScript code
  • Build interactive workflows that coordinate humans and AI using locks/events
  • Provide webhooks/HTTP endpoints from annotated methods (as described)
  • Wrap external command-line tools with typed, validated capabilities

Not For

  • Highly customized UI/UX where you must fully control frontend behavior
  • Services requiring a centralized hosted SaaS deployment (Photon appears developer/local-first)
  • Use-cases needing a strict, documented REST/GraphQL contract for third-party HTTP clients (documentation not provided here)
  • Environments where you cannot run Node.js/Bun toolchains at build/run time

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
Yes
SDK
Yes
Webhooks
Yes

Authentication

OAuth: No Scopes: No

README claims built-in OAuth 2.0 flows for Google/GitHub/Microsoft, but this evaluation cannot verify endpoints, required parameters, or scope granularity because implementation/auth details are not provided in the supplied content.

Pricing

Free tier: No
Requires CC: No

Photon is described as free and open source (MIT). No hosted pricing details are provided here.

Agent Metadata

Pagination
none
Idempotent
False
Retry Guidance
Not documented

Known Gotchas

  • MCP invocation depends on the MCP host/client properly handling the server process/command and arguments.
  • Generated schemas/validation come from TypeScript types/JSDoc; insufficient typing/comments can reduce tool quality for agents.
  • Long-running methods invoked by agents may require explicit locking/scheduling design; only high-level locking behavior is described, not operational guidance.

Alternatives

Full Evaluation Report

Comprehensive deep-dive: security analysis, reliability audit, agent experience review, cost modeling, competitive positioning, and improvement roadmap for photon.

AI-powered analysis · PDF + markdown · Delivered within 30 minutes

$99

Package Brief

Quick verdict, integration guide, cost projections, gotchas with workarounds, and alternatives comparison.

Delivered within 10 minutes

$3

Score Monitoring

Get alerted when this package's AF, security, or reliability scores change significantly. Stay ahead of regressions.

Continuous monitoring

$3/mo

Scores are editorial opinions as of 2026-03-30.

8642
Packages Evaluated
17761
Need Evaluation
586
Need Re-evaluation
Community Powered