Skip to content

Installing Turbo in Your Application

Turbo can either be referenced in compiled form via the Turbo distributable script directly in the <head> of your application or through npm via a bundler like esbuild.

In Compiled Form

You can float on the latest release of Turbo using a CDN bundler like Skypack. See for more details. Or download the compiled packages from unpkg.

As An npm Package

You can install Turbo from npm via the npm or yarn packaging tools. Then require or import that in your code:

import * as Turbo from "@hotwired/turbo"

In a Ruby on Rails application

The Turbo JavaScript framework is included with the turbo-rails gem for direct use with the asset pipeline.