---
title: "One-Second Deploys? We Didn’t Believe It Either"
description: "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."
url: "https://swe.quest/articles/one-second-deploys-we-didn-t-believe-it-either-540280e06702d626"
canonical: "https://blog.railway.com/p/introducing-railway-functions"
source: "Railway"
published: "2025-03-05"
difficulty: "easy"
kind: "Announcement"
reading_minutes: 3
tags: ["serverless","deployment","typescript","developer-productivity"]
---

# One-Second Deploys? We Didn’t Believe It Either

A post on [Railway](https://swe.quest/sources/railway.md), published 2025-03-05, 3 min read, Announcement. Original: [https://blog.railway.com/p/introducing-railway-functions](https://blog.railway.com/p/introducing-railway-functions)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Developer productivity](https://swe.quest/tags/developer-productivity.md) (Engineering practices)

## Keywords

Railway Functions, Bun, Railway, AWS Lambda

## Related posts

- [Deploy Full-Stack TypeScript Apps: Architectures, Execution Models, and Deployment Choices](https://swe.quest/articles/deploy-full-stack-typescript-apps-architectures-execution-models-and-deployment-888e3aeeebdaa840.md): Railway · 2025-12-01 · Easy · 14 min read · Serverless, TypeScript, Deployment, System design, Cloud platforms
  Full-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.
- [Cron Jobs on Railway](https://swe.quest/articles/cron-jobs-on-railway-97c5484f2a611343.md): Railway · 2022-08-18 · Medium · 3 min read · Deployment, TypeScript, Scheduling, Cloud platforms
  Before native cron support existed, Railway cron jobs could be run as an ordinary long-lived service that schedules work with a language-level library.
- [Implement a GitHub Actions Testing Suite](https://swe.quest/articles/implement-a-github-actions-testing-suite-2bebf2196b8d7e8d.md): Railway · 2024-12-13 · Medium · 6 min read · CI/CD, Testing, TypeScript, Deployment
  Walkthrough of building a CI test suite with GitHub Actions for a TypeScript Fastify API deployed on Railway.
- [Hello Bun: How Sveld now deploys 2x faster on GitHub and Render](https://swe.quest/articles/hello-bun-how-sveld-now-deploys-2x-faster-on-github-and-render-adff696862e96974.md): Render · 2024-04-23 · Medium · 11 min read · JavaScript, TypeScript, CI/CD, Build systems, Performance engineering
  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.
- [The Best Declarative Deploy Configs in 2026](https://swe.quest/articles/the-best-declarative-deploy-configs-in-2026-351946d82d9f0be8.md): Railway · 2026-10-14 · Medium · 17 min read · Infrastructure as code, Deployment, Cloud platforms, Configuration management
  Railway, Render, Fly.io, Vercel and Netlify differ mainly in how much of an application's infrastructure their deploy config can reproduce.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
