Skip to main content
Chorus provides a lightweight Alpine.js plugin with magic methods for building real-time, reactive applications with minimal JavaScript.

Setup

Add the @chorus directive to your layout:
Initialize Alpine with the Chorus plugin:
Configuration options:

Manual Initialization

For more control, initialize manually:

Magic Methods

$table(tableName)

Returns a reactive array that automatically updates in real-time:

$chorus

Access the Chorus instance:
  • $chorus.instance - The underlying ChorusCore instance
  • $chorus.init(config) - Initialize or reconfigure Chorus
  • $chorus.isInitialized - Check initialization status

Usage Examples

Filtered Data with Computed Properties

Multiple Tables

Configuration

Blade directive options:
Manual init options:

TypeScript Support

Import types for magic method auto-completion:

Next Steps

React Integration

Learn about React hooks and patterns

Vue Integration

Explore Vue composables and components

Chorus Actions

Master server-side write operations

Core Concepts

Understand how Chorus works under the hood