Train API
Personal · PublicLive Indian-Railways train-status REST API. Replaced a $5K/year enterprise contract with a $5/month VPS using Hono + Playwright, dual-source resilience, and senior-grade ops on a personal project.
Personal project · sole author · public on GitHub
- Single global Chromium pool with isConnected() guard + lazy crash-recovery — saves ~3s and ~400MB per request
- Intercepts upstream internal JSON API instead of brittle DOM scraping; ConfirmTkt DOM fallback for uncorrelated failure modes
- Aggressive resource blocking (ads, trackers, images, fonts) drops ~70% of requests; domcontentloaded wait viable
- Graceful SIGINT/SIGTERM closes Chromium before exit — prevents zombie processes under PM2 autorestart
- Active migration to AWS: ECS Fargate + ElastiCache + BullMQ + EventBridge webhook callbacks (Project A)