Deploy Calendar Sync
Two-way Google Calendar sync with real-time webhooks and filters
Just deployed
/var/lib/postgresql/data
twoway-calsync
Just deployed
Deploy and Host Calendar Sync on Railway
Calendar Sync is a production-ready web app that mirrors events between Google Calendars in one-way or two-way mode. It supports real-time webhook syncing, filtering by keywords/colors, configurable event-copy behavior (title, description, location, RSVP, privacy), and safe backfill controls to keep calendars aligned without manual copying.
About Hosting Calendar Sync
Hosting Calendar Sync on Railway involves deploying the Node.js service, attaching a PostgreSQL database, and configuring Google OAuth + Calendar API credentials. Railway handles build, deploy, networking, and runtime management, while the app manages OAuth sessions, webhook subscriptions, and background sync logic. You’ll set environment variables for Google auth, app secrets, and public callback URLs, then authorize redirect URIs in Google Cloud. Once deployed, users can connect Google accounts, create sync rules, and run real-time updates with quota-aware retries and failure safeguards. Railway makes this straightforward with managed infrastructure and a single platform for app + database.
Common Use Cases
- Keep a personal calendar and work calendar continuously synchronized.
- Mirror an executive/team calendar to an operations calendar with filters.
- Share availability safely by syncing only selected event fields (for example private/busy rules).
Dependencies for Calendar Sync Hosting
- A Google Cloud project with Google Calendar API enabled and OAuth 2.0 credentials.
- A PostgreSQL database (Railway-managed Postgres recommended).
Deployment Dependencies
- Railway: https://railway.app/
- Google Cloud Console: https://console.cloud.google.com/
- Google Calendar API docs: https://developers.google.com/calendar/api
- OAuth redirect URI guidance: https://developers.google.com/identity/protocols/oauth2
Implementation Details
# After creating your Railway project
railway link -e production
npm run railway:bootstrap
Required app variables (minimum):
GOOGLE_CLIENT_ID=...
GOOGLE_CLIENT_SECRET=...
GOOGLE_REDIRECT_URI=https:///auth/google/callback
Why Deploy Calendar Sync on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Calendar Sync on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
PGDATA
Postgres data path
PGPORT
Postgres port
POSTGRES_DB
POSTGRES_DB
POSTGRES_USER
PG username
SSL_CERT_DAYS
SSL Cert days
RAILWAY_DEPLOYMENT_DRAINING_SECONDS
seconds
twoway-calsync
samiabid/twoway-calsyncNODE_ENV
NODE_ENV
PUBLIC_URL
PUBLIC_URL
SESSION_SECRET
Session secret
TOKEN_ENCRYPTION_KEY
encryption key to protect OAuth credentials