Download the PHP package solution-forest/ai-kit-ui-livewire without Composer

On this page you can find all versions of the php package solution-forest/ai-kit-ui-livewire. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ai-kit-ui-livewire

ai-kit-ui-livewire

PHP Laravel Livewire License

The Livewire chat UI for the ai-kit suite — a drop-in <livewire:ai-kit.chat /> component with streaming RAG answers, markdown, source citations, and conversation history. No build step required.

Why this package?

You have a knowledge base indexed with ai-kit-core and want to let users chat with it — with streaming answers and clickable source citations — without building a chat UI from scratch or setting up a JS build pipeline. Drop in one Livewire tag and you're done. It talks to core's ChatService, so the answers match your CLI, API, and MCP surfaces exactly.

Requirements

Depends on solution-forest/ai-kit-core — the RAG engine (ingestion, retrieval, agents). It is a hard dependency and is installed automatically with this package; you configure your knowledge bases and AI provider there. This package is only the chat UI.

Install

Auto-discovered. Views are publishable if you want to customise them:

Usage

Drop it into any Blade view:

Props

Prop Type Default Description
collection string config default Knowledge-base slug to search
agent string (class) config agent Agent class override (must extend RagAgent)
placeholder string "Ask a question…" Input placeholder
history bool config('ai-kit.ui.history') (false) Show the conversation-history sidebar (needs an authenticated user)
citations bool config('ai-kit.ui.citations') (true) Show source citation chips + popups (set false to hide, and skip retrieval for them)
streaming bool config('ai-kit.chat.streaming') (true) Stream the answer token-by-token over SSE (else non-streamed)

Every boolean prop falls back to its config default when omitted, so you can set an app-wide default in config/ai-kit.php and override per instance:

Features

Standalone (non-Filament) page

The component needs Livewire assets + a CSRF meta tag. Minimal host page:

Conversation history + token logging require an authenticated user (the conversation participant). On a public page without auth, chat still works but nothing is persisted.

Theming

The component ships compiled, scoped CSS using CSS variables — override them in your own stylesheet:

Dark mode is handled automatically via prefers-color-scheme.

How streaming works

On send, the component dispatches a browser event; JS opens an EventSource to ai-kit.stream (StreamController), which streams the answer and emits delta frames, then a done frame carrying the final text + conversation id. The route middleware is configurable via config('ai-kit.ui.stream_middleware') (default ['web']).

Architecture

The component is a thin view over the core ChatService. Both the non-streamed path and the SSE StreamController delegate to SolutionForest\AiKit\Services\ChatService, so RAG mode (tool/inject), conversation persistence, citations, and token usage are handled once in core and shared with the CLI, HTTP API, and MCP server.

The ai-kit suite

Package Purpose
solution-forest/ai-kit-core Ingestion, retrieval, agents + CLI, HTTP API, MCP
solution-forest/ai-kit-ui-livewire (this) Livewire 4 chat component
solution-forest/ai-kit-filament Filament v5 admin panel

Prefer a headless UI? The same chat is available as an HTTP API or MCP server in ai-kit-core — no Livewire required.

Continuous integration

.github/workflows/tests.yml runs the suite on a GitHub release (and manual dispatch) — not on every push. Because this package has a local path dependency on ai-kit-core, CI clones that (public) sibling repo first. Once ai-kit-core is on Packagist, drop the clone step and let Composer resolve it.

License

MIT © SolutionForest


All versions of ai-kit-ui-livewire with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/support Version ^12.0|^13.0
livewire/livewire Version ^4.1
league/commonmark Version ^2.4
solution-forest/ai-kit-core Version ^0.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package solution-forest/ai-kit-ui-livewire contains the following files

Loading the files please wait ...