{"_id":"@batonkit/provider-railway","name":"@batonkit/provider-railway","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@batonkit/provider-railway","version":"1.0.0","description":"Railway provider adapter for BatonKit.","type":"module","license":"MIT","sideEffects":false,"publishConfig":{"access":"public"},"main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"scripts":{"build":"tsc -p tsconfig.json","typecheck":"tsc -p tsconfig.json --noEmit","test":"vitest run","lint":"eslint ."},"dependencies":{"@batonkit/core":"1.0.0"},"gitHead":"9ea61e0fe9e0b7e4235836520aacffd0b5bd2aa0","_id":"@batonkit/provider-railway@1.0.0","_nodeVersion":"25.6.0","_npmVersion":"11.8.0","dist":{"integrity":"sha512-X8sx9egVvvMxgGfihFniunu+LRTKFBsmHmbKk8jBSmw25AwRd2UK49GwmyGRQhqkleBfXHURMoMKqpmuiO4ttA==","shasum":"4462f1eba22f9809170f4a0748ed5e9e31eebadc","tarball":"https://registry.npmjs.org/@batonkit/provider-railway/-/provider-railway-1.0.0.tgz","fileCount":6,"unpackedSize":4406,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFJ7BJigr6IzTQ5n51scPFgwpJfXf1bba7D4sEXnfkP0AiEAkkiJSFNat8cbM1TSoYB6E9rSXk1j4wDyX+pIElizMwc="}]},"_npmUser":{"name":"yubufox","email":"jiwoohan92@gmail.com"},"directories":{},"maintainers":[{"name":"yubufox","email":"jiwoohan92@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/provider-railway_1.0.0_1780673847092_0.6537430470956354"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-05T15:37:26.920Z","1.0.0":"2026-06-05T15:37:27.230Z","modified":"2026-06-05T15:37:27.822Z"},"maintainers":[{"name":"yubufox","email":"jiwoohan92@gmail.com"}],"description":"Railway provider adapter for BatonKit.","license":"MIT","readme":"# @batonkit/provider-railway\n\nRailway backup provider adapter for BatonKit.\n\nPlain language: this is the package that knows how to wake up a backup worker running on Railway. It is one cloud-provider plug, not the center of BatonKit itself.\n\n## Install\n\n```bash\nnpm install @batonkit/core @batonkit/provider-railway\n```\n\n## What It Includes\n\n- `railwayProvider(...)` for triggering Railway backup wake-ups\n\nUse this when your standby worker lives on Railway and you want BatonKit's failover flow to call Railway in a reusable, provider-shaped way.\n\n## Behavior Notes\n\n- `wake()` checks the backup worker's public `/ready` door and then refreshes `/control-plane/refresh`\n- `park()` refreshes `/control-plane/refresh` again so the standby side stays aligned with the control plane\n\nPlain language: this adapter helps BatonKit knock on the Railway worker's public green-light door, then uses the secret refresh door for private control state. It does not magically power the Railway service off. If you want true scale-to-zero behavior, that still needs Railway-side deployment or platform settings outside BatonKit itself.\n","readmeFilename":"README.md","_rev":"1-f932c8ea93aa09dfa4579b9246bdd062"}