Why Photon
We believe Photon represents the future of JavaScript server & deployment infrastructure.
- For users: use any server (Hono, Express.js, Fastify, and more) and deploy anywhere (Cloudflare, Vercel, self-hosted, and more).
- For frameworks: easy and incremental Photon integration, with optional tight-knit collaboration.
- For deployment providers: add first-class integration to multiple frameworks at once, with optional tight-knit collaboration.
Features
Photon is jam-packed with features:
- Any server: Hono, Express.js, Fastify, Elysia, H3, Servx, Hattip.
- Any deployment: Cloudflare, Vercel, self-hosted, and more.
- HMR: No full server reload required.
- Vite Environment API: Develop against the same runtime as production (e.g. Cloudflare's
workerd
runtime). - Code-splitting: Per-route deployment to separate edge workers.
- Zero-config: Deploy with minimal configuration.
- TypeScript: First-class TypeScript support.
Philosophy
Collaboration
Tight-knit collaboration is key for a thriving ecosystem:
- Framework authors: we work closely with frameworks, pushing the envelope of what's possible.
- Deployment providers: we partner with deployment providers for first-class, full-fledged deployment integrations.
Clear separation of concerns
Photon is hyper-focused on being a shared server and deployment infrastructure — we don't implement features handled by servers or frameworks.
Open
We use and advocate web standards to foster interoperability that benefits everyone.
Photon's flexible architecture doesn't restrict frameworks or deployment providers.
Transparent
Photon's partners are public, and our financial support comes from multiple deployment providers — avoiding dependency on a single sponsor.