Skip to content

LLM Reference ​

/llms.txt and /llms-full.txt are generated during the docs build.

Photon ​

Photon is an open source TypeScript runtime that turns a single .photon.ts class into an MCP server for AI agents, a CLI tool, and a Beam web dashboard.

Start Here ​

  • Getting Started: Install Photon and build your first .photon.ts file.
  • Core Concepts: The mental model behind methods, comments, formats, state, settings, and surfaces.
  • From Method to Chat App: A weather example that runs as CLI, Beam, MCP, and embedded chat UI.
  • Output Formats: Visual result formats for tables, charts, markdown, mermaid, cards, dashboards, and more.
  • Docblock Tags: Public reference for every docblock tag Photon understands.
  • Complete Developer Guide: Comprehensive reference for authoring and operating photons.

Core Claims ​

  • One TypeScript class can expose the same capability through MCP, CLI, and web UI.
  • JSDoc comments and TypeScript types become AI-readable tool descriptions, validation, CLI help, and form UI.
  • Photon supports custom MCP app UIs, schedules, webhooks, state, settings, dependency metadata, and deployment paths.

Package ​

Documentation Index ​

Released under the MIT License.