⚠️ Alpha Stage: Photon is currently in alpha. APIs may change before stable release.
Next-generation server toolkit designed for library and framework developers who need universal server capabilities.
- packages/core - Photon core with Vite integration
- packages/runtime - Convenience functions for framework developers
- packages/hono - Hono framework adapter
- packages/express - Express.js adapter
- packages/fastify - Fastify adapter
- packages/elysia - Elysia adapter
- packages/h3 - H3 adapter
- packages/hattip - HatTip adapter
- packages/adapter-cloudflare - Cloudflare Workers/Pages adapter
- example/awesome-framework - Example of integrating Photon into a Vite-based framework
- example/app-cloudflare - Example app using a framework powered by Photon
- example/app-hono-cloudflare - Example app using Photon + Hono on Cloudflare
Photon is designed as an unopinionated and flexible alternative to Nitro, specifically for framework developers who need:
- Any server framework: Hono, Express, Fastify, Elysia, H3, HatTip
- Any deployment target: Cloudflare, Vercel, Netlify, Node.js, VPS
- Any runtime: Node.js, Cloudflare Workers, Deno, Bun
- Easy integration for Vite-based frameworks
- Universal middleware that works across all server frameworks
- Server code-splitting: Deploy each route to separate edge workers
- Hot Module Replacement for server code
- TypeScript-first with excellent developer experience
- Built on Vite's Environment API
- Uses Web Standard APIs for universal compatibility
- Leverages Universal Middleware for framework-agnostic capabilities
- Getting Started - Learn how to use Photon
- Framework Integration - Integrate Photon into your framework
- Examples - Real-world integration examples