macOS can bundle Postgres + TypeScript
A new macOS capability uses Apple’s Containerization library to bundle Postgres and TypeScript backends into single native app bundles — enabling self‑contained macOS/iOS apps that run embedded infra without Docker. That changes local dev workflows and could simplify distributed testing and demos. (x.com/indragie/status/2035800735561175218)
Apple published Containerization as an open‑source Swift package and a companion command‑line tool in mid‑2025; the repo and CLI live under the apple/containerization and apple/container projects on GitHub. (github.com)) The framework exposes APIs for managing OCI images, interacting with registries, creating ext4 filesystems, and spawning lightweight VMs with an “optimized Linux kernel for fast boot” to reduce container cold‑start time. (github.com)) Containerization is implemented on top of macOS’s Virtualization.framework and is explicitly optimized for Apple silicon, with Apple demonstrating the feature in the WWDC25 “Meet Containerization” talk. (github.com)) Apple positioned full native support for the stack inside macOS 26 (“Tahoe”), while the container CLI and framework can be run on earlier releases such as macOS 15 (Sequoia) with known limitations. (thenewstack.io)) Apple’s example applications include a ctr‑example that programmatically launches an Alpine Linux container from a macOS app, illustrating the same pattern used to run database services inside app processes. (deepwiki.com)) Developers already using PostgreSQL on macOS have native options like Postgres.app (a standard.app that runs a PostgreSQL server), while TypeScript Postgres clients such as the ts‑postgres package are published on npm for Node/Bun/Deno runtimes. (postgresapp.com)) Apple’s runtime explicitly supports sidecars and per‑container isolation semantics, and the Containerization codebase is released under Apache‑2.0, making multi‑service bundles and redistribution feasible for teams that need reproducible local infra. (howtouselinux.com))