MCPcopy Index your code
hub / github.com/SimoTod/alpine-turbo-drive-adapter

github.com/SimoTod/alpine-turbo-drive-adapter @v2.2.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v2.2.0 ↗ · + Follow
13 symbols 22 edges 18 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Alpine Turbo Drive Adapter

npm npm bundle size

Alpine-turbo-drive-adapter allows you to add support for Alpine.js V3 to your Turbolinks/Turbo powered apps. It handles events to properly clean up the DOM from Alpine generated code when navigating between pages.

If you look for the Alpine v2 version, look at the 1.x branch.

Install

From CDN

Just include <script src="https://cdn.jsdelivr.net/npm/alpine-turbo-drive-adapter@2.0.x/dist/alpine-turbo-drive-adapter.min.js" defer></script> before your Alpine script in your page

From NPM

Install the package

npm i alpine-turbo-drive-adapter

Include it in your script along with Alpine JS (make sure Alpine is available on the window object).

import 'alpine-turbo-drive-adapter'
import Alpine from 'alpinejs'
window.Alpine = Alpine

Core symbols most depended-on inside this repo

dispatch
called by 3
src/utils.js
init
called by 1
src/bridge.js
configureEventHandlers
called by 1
src/bridge.js
monkeyPatchDomSetAttributeToAllowAtSymbols
called by 1
src/bridge.js
isValidVersion
called by 1
src/utils.js
setupNodeEvents
called by 0
cypress.config.js
renderCallback
called by 0
src/bridge.js
beforeRenderCallback
called by 0
src/bridge.js

Shape

Method 8
Function 3
Class 2

Languages

TypeScript100%

Modules by API surface

src/bridge.js10 symbols
src/utils.js2 symbols
cypress.config.js1 symbols

For agents

$ claude mcp add alpine-turbo-drive-adapter \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page