Download the PHP package token27/nexus-ai-tracking without Composer
On this page you can find all versions of the php package token27/nexus-ai-tracking. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download token27/nexus-ai-tracking
More information about token27/nexus-ai-tracking
Files in token27/nexus-ai-tracking
Package nexus-ai-tracking
Short Description Lightweight execution store (JSONL / SQLite / InMemory) for tracking executions with cost, latency and token metrics.
License MIT
Homepage https://github.com/token27/nexus-ai-tracking
Informations about the package nexus-ai-tracking
NexusAI Tracking
A standalone, zero-dependency PHP 8.3+ execution store for tracking AI pipeline runs with cost, latency and token metrics. Supports JSONL, SQLite and InMemory backends — usable in any framework or domain.
Why nexus-ai-tracking?
When building AI pipelines (content generation, code assistants, data processors…) you need to answer:
- How much did that run cost?
- Which model is slowest?
- Which prompt version performs best?
- What failed and when?
nexus-ai-tracking gives you append-only, immutable event recording with zero configuration and three backends that suit any environment — from a local script to a production cluster.
Features
- Append-only event store — immutable audit trail, no updates ever
- 3 backends — JSONL files, SQLite, InMemory (testing)
- Thread-safe writes —
flock()file locking on JSONL, transactions on SQLite - Auto-schema — SQLite creates its own schema on first use
- Daily file partitioning — JSONL files split by day, automatic date-range optimization
- Flexible aggregate queries — filter by model, content type, language, date range, event type
- Run projections — grouped
RunSummarywith status, cost, tokens, latency, step count - Extensible — add new backends by implementing one interface
- Zero external dependencies — only
ext-jsonrequired
Installation
Requires: PHP 8.3+ · ext-json · ext-pdo_sqlite (SQLite backend only)
Quick Start
Backends
| Backend | Driver key | Best for |
|---|---|---|
JsonFileExecutionStore |
jsonfile |
Default — zero config, portable, daily JSONL files |
SqliteExecutionStore |
sqlite |
Aggregate queries, production apps |
InMemoryExecutionStore |
memory |
Unit tests — zero I/O |
Documentation
Full documentation is available in the docs/ directory:
- Docs Guide
- Installation & Setup
- Recording Events
- Reading Events
- Backends
- Architecture
- Testing
- Contributing & Extending
Requirements
- PHP 8.3 or higher
ext-json(bundled with PHP)ext-pdo+ext-pdo_sqlite(only for SQLite backend)
Contributing
Please see docs/contributing.md for details on adding new backends, event types, and development standards.
License
MIT. Please see LICENSE for more information.
All versions of nexus-ai-tracking with dependencies
ext-json Version *