saammi/any-chat

A no-auth livewire stateless chat-widget

Maintainers

Package info

github.com/SaamMi/any-chat

Language:Blade

pkg:composer/saammi/any-chat

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.0.0 2026-04-08 21:39 UTC

This package is auto-updated.

Last update: 2026-04-13 17:03:50 UTC


README

AnyChat Logo

AnyChat ๐Ÿ’ฌ

Lightweight. Stateless. Instant.
A support-first chat widget for Laravel, powered by Livewire and Alpine.js.

AnyChat Logo AnyChat Logo AnyChat Logo AnyChat Logo AnyChat Logo

Tests Code Style Latest Version License

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

  1. The Chat Widget Place the component in your public-facing Blade templates:
 <livewire:anychat-widget />
  1. 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.