One-Second Deploys? We Didn’t Believe It Either
Railway Functions, now generally available, deploy single-file TypeScript code onto Railway's container compute in about a second, without a package.json, Git repo, IaC or container build. The pipeline parses source into an AST to infer dependencies and generates package.json on the fly, with versions pinnable directly in import specifiers. Dependencies are installed with `bun install`, which installs fastify in 500ms compared with over 6s for npm, pnpm and yarn without a lockfile. Bun then runs the TypeScript directly with no transpile or bundle step. Functions share Services' features such as volumes and variables.
Related posts
- Deploy Full-Stack TypeScript Apps: Architectures, Execution Models, and Deployment Choices
Railway easyNoviceFull-stack TypeScript apps can be structured either as a single framework codebase (Next.js, SvelteKit, TanStack Start) or as independently deployed services in a monorepo, and the choice interacts with whether you deploy to serverless platforms or long-running servers. Serverless (Cloudflare Workers, Vercel) gives automatic scaling and no infrastructure management, but imposes stateless, instance-scoped globals, 128 MB memory and CPU-time caps on Workers, and no persistent connections. That rules out ETL, media processing, WebSocket chat and live dashboards. Long-running servers keep in-memory state, open connections and arbitrary protocols, at the cost of capacity planning. Railway pitches itself as offering those server semantics with usage-based billing and managed infrastructure.
- Cron Jobs on Railway
Railway mediumAdeptBefore native cron support existed, Railway cron jobs could be run as an ordinary long-lived service that schedules work with a language-level library. The example scaffolds a TypeScript package with DTS, uses node-cron to log a message every minute, points the start script at the built dist output, and deploys with `railway up` without extra configuration. An update notes that Railway now offers native Cron Jobs, which may be the better option.
- Implement a GitHub Actions Testing Suite
Railway mediumAdeptWalkthrough of building a CI test suite with GitHub Actions for a TypeScript Fastify API deployed on Railway. A /weekday route is added and covered with Vitest integration tests. A workflow runs on PRs and pushes to main, building the app, starting it in the background, then running the tests. Branch rulesets make the passing check required before merge, and Railway's 'wait for CI' setting stops failing commits from auto-deploying. Closing notes point to concurrency, matrix builds and caching as ways to scale the pipeline.
- Hello Bun: How Sveld now deploys 2x faster on GitHub and Render
Render mediumAdept
Migrating the Sveld open source library (TypeScript definitions and docs for Svelte components) from Yarn and Vitest to Bun v1.1.3 roughly halved CI/CD time on GitHub Actions and Render. Most of the gain came from package installs, which were 2-20x faster on GitHub runners and about 16x faster locally. Unit tests ran 1.6-2.2x faster because Bun executes TypeScript natively, and Render static-site deploys dropped from 124s to 50s. The migration has a few gotchas: reserved commands like `bun build`, required file extensions, the `--bun` flag needed to run packages under Bun, and pinning the version in the setup-bun Action to get caching. tsc and npm remain in the stack because Bun lacks type checking, CJS bundling and npm provenance publishing.
- The Best Declarative Deploy Configs in 2026
Railway mediumAdeptRailway, Render, Fly.io, Vercel and Netlify differ mainly in how much of an application's infrastructure their deploy config can reproduce. Railway's TypeScript-based IaC (Python and Go in beta) and Render's render.yaml Blueprints can declare services, databases, variables and environments, and Railway adds a plan/apply review step. Fly.io's fly.toml gives explicit per-app control over Machines, ports, health checks and regions but leaves databases and cross-app wiring to separate workflows. Vercel and Netlify configs cover builds, routing, functions and deploy contexts for frontend-centric apps. A worked Node frontend, FastAPI and Postgres example for staging and production shows that programmatic config avoids the duplication static YAML needs across environments.