Turbo_boost Streams screenshot

Turbo_boost Streams

Author Avatar Theme by Hopsoft
Updated: 1 Mar 2024
272 Stars

Take full control of the DOM with Turbo Streams

Categories

Overview

TurboBoost Streams is a powerful extension that enhances Turbo Streams, allowing developers to have complete control over the Document Object Model (DOM) of their applications. It offers a broader range of functionalities beyond CRUD-related actions, making it an ideal solution for cases where standard Turbo Streams may not be sufficient. With its versatile features, TurboBoost Streams empowers developers to manipulate DOM elements efficiently, creating dynamic and responsive web applications.

The ability to invoke any DOM method directly from the client opens up a world of possibilities. From event dispatching to morphing elements, TurboBoost Streams paves the way for innovative web development approaches by streamlining the interaction between the server and the client-side environment.

Features

  • DOM Manipulation: Effortlessly manipulate the DOM from anywhere you use official Turbo Streams, expanding your web application’s interactivity.
  • Method Chaining: Combine selectors and dot notation to chain methods together, simplifying the way you interact with multiple elements.
  • Event Dispatching: Fire custom events on window, document, and specific elements, enabling tailored user experiences.
  • Morphing Elements: Utilize the morph method to smoothly transition elements in the DOM with support for delays and Trix editor compatibility.
  • Flexible Syntax: Use snake_case for invoking DOM functionality which is automatically converted to camelCase for convenience.
  • Extensible Behavior: Add new browser capabilities and control them from the server, offering great flexibility in application design.
  • Broadcasting: Broadcast DOM invocations to subscribed users, keeping everyone in sync with the latest changes.
  • Background Job Queues: Customize the queue name for Turbo Stream background jobs to better organize your processing tasks.