saammi / any-chat
A no-auth livewire stateless chat-widget
Requires
- php: ^8.2
- laravel/framework: ^12.0
- livewire/livewire: ^3.0|^4.0
Requires (Dev)
- laravel/pint: ^1.13
- orchestra/testbench: ^10.0
- orchestra/testbench-dusk: ^10.9
- pestphp/pest: ^4.4
This package is auto-updated.
Last update: 2026-04-13 17:03:50 UTC
README
AnyChat ๐ฌ
Lightweight. Stateless. Instant.
A support-first chat widget for Laravel, powered by Livewire and Alpine.js.
AnyChat is a stateless Livewire chat widget designed for Laravel applications. It enables real-time support interactions with zero database migrations and zero authentication overhead. Messages persist in the local session, making it the perfect privacy-first solution for landing pages and lead generation.
โจ Key Features
- Stateless by Design: No database bloat. Messages stay in the user's session.
- Plug & Play: Zero configuration required to get started.
- Reactive: Built on Livewire and Alpine.js for a snappy, real-time feel.
- Theming: Full dark mode support and deep customization via Blade props.
๐ฆ Installation
Install the package via Composer:
composer require saammi/any-chat
๐ Usage
- The Chat Widget Place the component in your public-facing Blade templates:
<livewire:anychat-widget />
- The Response Dashboard Access incoming messages using the administrative dashboard component:
<livewire:anychat-dashboard />
Prerequisites Ensure your layout file includes the required Livewire and Alpine.js assets:
<html> <head> @livewireStyles </head> <body> {{ $slot }} @livewireScripts <script defer src="[https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js](https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js)"></script> </body> </html>
Setup reverb or pusher and you are good to go.
๐จ Customization You can fine-tune the widget appearance directly through props:
<livewire:anychat-widget height="500px" width="400px" variant="outline" primaryColor="#7c3aed" adminColor="#f3f4f6" />
๐งช Testing We maintain a robust test suite using PHPUnit and Laravel Dusk to ensure stability across PHP and Laravel versions.
Unit Tests:
./vendor/bin/phpunit --testsuite Unit
Browser Tests (Dusk):
# Update ChromeDriver to match your local version ./vendor/bin/dusk-updater detect --auto-update # Run the browser suite ./vendor/bin/testbench dusk
๐บ Roadmap (Beta) [ ] File Uploads: Send images and documents via chat.
[ ] Notifications: Real-time alerts for new messages.
[ ] AI Integration: Optional support for LLM-powered auto-responders.
[ ] Database Driver: Optional persistence for long-term history.
๐ค Contributing Contributions are what make the open-source community an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated. Please see our Contributing Guide for details.
๐ License The MIT License (MIT). Please see the License File for more information.





