Repository navigation
Roost 2.0.0
Roost is the new name for Peregrine. Version 2.0.0 brings the renamed framework, CLI, generated application workflow, and reading-list example together.
What's included
Roost,RoostTest, and theroostCLI, with generated authentication, scoped resources, typed ESW views, HTML/JSON routes, and database tests.- Published GitHub dependencies by default: Spectro
from: "2.0.0", Nexusfrom: "2.0.0", and ESWfrom: "1.5.0". No sibling checkouts are required. Spectro 2.1.0 is accepted when published; existing applications can runswift package update spectro. - Spectro SQL migrations from both the CLI and compiled application, plus corrected session persistence, CSRF/form handling, flash messages, and ownership checks.
- A complete PostgreSQL reading-list example, refreshed README, DocC guides and API reference, and the website and guided browser playground.
Test drive
Requires Swift 6.3+, macOS 14+ or Linux, and local PostgreSQL/client tools for the example. Linux builds require zlib1g-dev.
git clone --branch 2.0.0 --depth 1 https://github.com/Maartz/swift-roost.git Roost
cd Roost
unset ROOST_FRAMEWORK_PATH ROOST_ECOSYSTEM_PATH ROOST_ESW_PATH
swift build -c release --product roost
swift run -c release roost --version
cd examples/Roost
./devOpen http://127.0.0.1:4000 and sign in with reader@roost.test / Read-with-Roost-2026.
For a new app, follow the quickstart.
Verification
- 445 framework and CLI tests passed on macOS and Linux with Swift 6.3.3 and freshly resolved GitHub packages.
- Linux generated-app acceptance passed against PostgreSQL 18, including an optimized executable, authentication, CSRF, HTML/JSON updates, two-user ownership, and migration rollback/reapply.
- A fresh app resolves published Roost 2.0.0 entirely from GitHub and passes its generated database tests, optimized HTTP workflow, and compiled migration rollback/reapply on macOS. Both the generated app and reading-list example resolve 48 GitHub packages with no filesystem dependencies. The example passes all eight tests against the published tag.
- The DocC catalogs built successfully with documentation warnings treated as errors.
- All eight browser playground checks and static-site link/asset checks passed; GitHub Pages deployed successfully.
Upgrading from Peregrine
This is a breaking rename: update products/imports, application symbols, the executable name, and environment variables. Existing browser sessions expire; application records and migration history are preserved. See Moving to Roost.
Roost's generators use Spectro's SQL migration workflow. Optional Swift migration declarations in Spectro 2.1 require a separate migration executable. Channels, SMTP, persistent PubSub/job adapters, and TLS/HTTP2 application wiring remain incomplete; see implementation status.