s-m-r-t
Open the s-m-r-t source on GitHub Switch to dark color scheme
← All packages
Business & operations v0.57.40

@happyvertical/smrt-analytics

Analytics properties, streams, server-side events, and useful reporting surfaces.

Source ↗

What it gives you

Analytics properties, streams, server-side events, and useful reporting surfaces.

This package is one focused part of the s-m-r-t stack. Its decorated models participate in the same manifest, tenancy, persistence, and generated-interface conventions as the rest of the framework.

Analytics has tenant-scoped source models

AnalyticsProperty, AnalyticsDataStream, AnalyticsEvent, and AnalyticsReport hold the property, incoming stream, events, and report state in the tenant boundary.

AI reporting receives a controlled result payload

analyzePerformance, analyzeResults, and hasPositiveTrends use the prompt registry. The resultData forwarding contract excludes PII-conscious values, so callers must not persist or add sensitive data merely to make it available to an AI provider. Generated MCP exposes only list and get on AnalyticsReport; analyzeResults is a model method the application calls, not a tool.