New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

cybernerdie/glint

Laravel-native LLM observability with local traces, generations, cost tracking, latency, errors, and alerts.
1,066 5

Larablocks Analysis

cybernerdie/glint works with Laravel 11, 12 and 13 (latest release v1.2.0, Nov 8, 2026).

Promising: maintained and up to date, meets 2 of 4 checks; not yet widely used.

  • Works with Laravel 13, the current version
  • Released in the last 12 months (Nov 8, 2026)
  • 373 downloads a month (needs 10,000)
  • 5 GitHub stars (needs 100)

State

Actively maintained
  • Last stable release: Nov 8, 2026.
  • 4 releases in the last 12 months.
  • First released: Aug 2, 2026.
  • Monthly downloads: 373.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 4, 2026.

Install
composer require cybernerdie/glint
Latest Version:v1.2.0
PHP:^8.3
Laravel:11 · 12 · 13
License:MIT
Last Updated:Nov 8, 2026
Links: GitHub  ·  Packagist
Maintainer: cybernerdie

Glint for Laravel

Tests PHPStan Code Style Total Downloads License

Glint is an LLM observability package for Laravel applications. It records LLM calls in your application database and provides a local dashboard for traces, generations, cost, latency, errors, users, and alerts.

Glint is designed for teams that want Laravel-native observability without sending prompts, completions, or usage data to a third-party service.

Glint dashboard showing seven days of activity in dark and light modes

Requirements

  • PHP 8.3+
  • Laravel 11, 12, or 13
  • A configured queue worker when using the default queue recording mode

Supported instrumentation

Glint can record LLM calls through:

SDKs or transports that do not use one of the supported instrumentation paths should be wrapped with manual tracing.

Features

  • Local dashboard for traces, generations, costs, users, latency, and alerts
  • Automatic instrumentation for supported drivers
  • Manual tracing API for custom or unsupported LLM clients
  • Token and cost tracking from a published pricing registry
  • App-level pricing overrides for private models or provider price changes
  • Alert rules for cost, error rate, latency, and token usage
  • Privacy redaction before data is stored
  • Retention and pruning commands
  • Queue and sync recording modes
  • Glint::fake() testing utilities
  • Optional Laravel Pulse card

Installation

Install the package and run the installer:

composer require cybernerdie/glint
php artisan glint:install

The installer publishes the config, pricing registry, migrations, and application service provider, then runs the migrations.

Enable recording:

GLINT_ENABLED=true
GLINT_DRIVERS=http

Visit /glint to open the dashboard.

By default, Glint records asynchronously through Laravel's queue. If your application already runs queue workers, no separate worker is required. To isolate Glint recording jobs, set a dedicated queue and run a worker for it:

GLINT_QUEUE=glint
php artisan queue:work --queue=glint

HTTP request traces

LLM generations are recorded without middleware. To group generations under the HTTP request that triggered them, register GlintMiddleware globally:

// bootstrap/app.php
->withMiddleware(function (Middleware $middleware) {
    $middleware->append(\Cybernerdie\Glint\Middleware\GlintMiddleware::class);
})

Manual tracing

Use manual tracing when auto-instrumentation cannot see a call or when you want to add application-specific context:

use Cybernerdie\Glint\Facades\Glint;

$trace = Glint::trace('chat.pipeline', [
    'user_id' => (string) auth()->id(),
]);

try {
    $generation = Glint::generation('summarise', 'openai', 'gpt-4o');
    $generation
        ->prompt($prompt)
        ->options(temperature: 0.7, maxTokens: 1024, topP: 0.9);

    $response = $client->chat($prompt);

    $generation->finish(
        completion: $response->text,
        promptTokens: $response->promptTokens,
        completionTokens: $response->completionTokens,
    );
} catch (\Throwable $e) {
    isset($generation) && $generation->fail($e);

    throw $e;
} finally {
    $trace->end();
}

Configuration

The main configuration file is published to config/glint.php.

Common options:

  • GLINT_ENABLED — enable or disable recording
  • GLINT_DRIVERS — comma-separated instrumentation drivers
  • GLINT_MODE — queue or sync
  • GLINT_QUEUE — queue name for recording jobs
  • GLINT_STORE_BODIES — store prompts and completions; set false for metadata-only recording
  • GLINT_STORE_IP — opt in to storing requester IP addresses
  • GLINT_RETENTION_TRACES — raw trace/generation retention
  • GLINT_RETENTION_AGGREGATES — aggregate retention
  • GLINT_RETENTION_ALERTS — alert event retention

See Configuration for the full reference.

Documentation

Testing

composer test
composer stan
composer pint

License

Glint is open-sourced software licensed under the MIT license.

Alternatives to cybernerdie/glint

neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

107,866 124
mischasigtermans/laravel-toon

Laravel TOON: send data to LLMs and MCP clients in about half the tokens of JSON...

94,584 149
cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, an...

153,915 328
bherila/genai-laravel

Provider-agnostic GenAI client for Laravel: Gemini, AWS Bedrock, and more

21,096 0
jkudish/laravel-ai-pricing

Shared, provenance-aware AI pricing and cost attribution for Laravel application...

8,750 2

Version History

Version Released PHP Laravel License
v1.2.0 ^8.3 ^11.0|^12.0|^13.0 MIT
v1.1.0 ^8.3 ^11.0|^12.0|^13.0 MIT
v1.0.1 ^8.3 ^11.0|^12.0|^13.0 MIT
v1.0.0 ^8.3 ^11.0|^12.0|^13.0 MIT