Platform for frontend code editing with automatic synchronization and deployment.
- Copy
env.exampleto.env.local:
cp env.example .env.local- Make sure
.env.localcontains:
NODE_ENV=development- Start the platform:
pnpm run dev:allWhen you create a project through the web interface:
- Local development:
phion.config.jsonwill containws://localhost:8080 - Production:
phion.config.jsonwill containwss://api.phion.com
URL is automatically determined based on NODE_ENV.
phion/
βββ apps/
β βββ web/ # Next.js web application (port 3004)
β βββ websocket-server/ # WebSocket server (port 8080)
βββ packages/
β βββ database/ # Supabase integration
β βββ dev-agent/ # phion npm package for synchronization
β βββ shared/ # Shared types and utilities
β βββ storage/ # Cloudflare R2 (deprecated)
βββ templates/
βββ vite-react/ # Project template for users
- Frontend: Next.js 15, React 18, Tailwind CSS, shadcn/ui
- Backend: Node.js, Express, Socket.IO
- Database: Supabase (PostgreSQL)
- File Storage: GitHub (via GitHub App)
- Deploy: Netlify
- Sync: WebSocket + File Watcher (chokidar)
- Project Creation: User creates project in web interface
- Download: Gets ZIP with configured template
- Local Development: Runs
pnpm start(dev server + sync agent) - Synchronization: Changes automatically sent to cloud
- Deploy: Automatic deployment to Netlify
# Install dependencies
pnpm install
# Copy configuration
cp env.example .env.local
# Start all services
pnpm run dev:allAfter startup:
- Web interface: http://localhost:3004
- WebSocket server: ws://localhost:8080
npm package for file synchronization between local project and cloud.
Installation:
pnpm add phionUsage:
phion # reads phion.config.jsonConfiguration phion.config.json:
{
"projectId": "project-uuid",
"wsUrl": "ws://localhost:8080", // local
"debug": false
}- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT License