Platform for frontend code editing with automatic synchronization and deployment.
- Copy
env.example
to.env.local
:
cp env.example .env.local
- Make sure
.env.local
contains:
NODE_ENV=development
- Start the platform:
pnpm run dev:all
When you create a project through the web interface:
- Local development:
phion.config.json
will containws://localhost:8080
- Production:
phion.config.json
will 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:all
After startup:
- Web interface: http://localhost:3004
- WebSocket server: ws://localhost:8080
npm package for file synchronization between local project and cloud.
Installation:
pnpm add phion
Usage:
phion # reads phion.config.json
Configuration 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