Installation
Conduit lives in its own package — almasix-conduit — so you can add reactive components without dragging them into every Almasix app by default.
Install
Section titled “Install”pip install 'almasix[conduit]'# orpip install almasix-conduitEither way, the import path stays the same:
from almasix.conduit import Component, Conduit, conduitConduitServiceProvider is discovered automatically through the almasix.providers entry-point group. No manual provider registration required for the happy path.
Source: almasix-dev/conduit.
Optional publishes
Section titled “Optional publishes”Want a local config file or a copy of the JS asset to poke at?
smith vendor:publish --tag=conduit-configsmith vendor:publish --tag=conduit-assetsThat drops config/conduit.py (endpoint, Alpine CDN, coalesce window, signature TTL, …) and the Conduit client script where your app can vendor it. Defaults already work out of the box — publish when you’re ready to tune.
Scaffold a component
Section titled “Scaffold a component”smith make:conduit Counter# or nested: smith make:conduit Forms/ProfileThat creates an app/conduit/... class and a matching Prism view under resources/views/conduit/. Embed it with @conduit('counter') once @conduitScripts is in your layout.
Layout checklist
Section titled “Layout checklist”Every page that hosts a Conduit component needs the scripts once (usually the app layout):
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>{{ title }}</title> @conduitScripts </head> <body> {{ slot }} </body></html>@conduitScripts injects Alpine (CDN, configurable) and conduit.js, plus a signed update endpoint in window.__CONDUIT__. Without it, buttons will stare blankly at you.
Next up: Quick start.