May 2021 Update:

I've decided to suspend work on a Rails-specific integration for Bridgetown until further notice. Bridgetown does currently have an outstanding PR for switching to Puma/Rack/Roda for essential routes, and you absolutely can mount a Rails API right onto that however you wish. But in light of recent events, I will not personally be working on a Rails integration solution.


Example of a Bridgetown website with a "Rails Nano" backend API

More documentation and an official Bridgetown plugin coming soon!

Basically, run bundle install and yarn install and then yarn start and boom, you have a static website powered by Bridgetown communicating with a Rails API all in one repo. Also cool: it's a single Rack app stack served by Puma, so you can deploy to a Ruby-friendly host or use a Docker mesh like Fly.io and get the whole enchilada up and running in no time flat!

LIVE DEMOS: