Skip to content

photon-js/photon

Repository files navigation

Photon

⚠️ Alpha: Photon is currently in alpha. APIs may change before stable release.

Next-generation deployment and server toolkit.

Photon supports popular deployments such as:

  • Self-hosted
  • Cloudflare
  • Vercel

And popular servers:

  • Hono
  • Express
  • Fastify
  • etc.

It currently supports Vike. More Vite-based frameworks are coming (e.g. we're talking with TanStack).

Documentation

Packages

Core

Server Adapters

Deployment Adapters

Examples

Philosophy

Photon is designed as an unopinionated and flexible alternative to Nitro, specifically for framework developers who want universal server capabilities.

Universal Server Support

  • Any server framework: Hono, Express, Fastify, Elysia, H3, Srvx, HatTip
  • Any deployment target: Cloudflare, Vercel, Netlify, Node.js, VPS
  • Any runtime: Node.js, Cloudflare Workers, Deno, Bun

Features

  • Easy integration for Vite-based frameworks
  • Universal middlewares that work across all server frameworks
  • Server code-splitting for deploying each route to separate edge workers
  • Hot Module Replacement for server code
  • TypeScript support with first-class developer experience

Powered by Modern Standards

  • Built on Vite's Environment API
  • Uses Web Standard APIs for universal compatibility
  • Leverages Universal Middleware for framework-agnostic capabilities

About

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •