Open Source Time-Series Analytics

The Data Warehouse,
in your House.

Minimal time-series metrics library that works with your existing database. Track counters, durations, and hierarchical data. All that in a single call.

track.rb
# Track any metric with hierarchical values
Trifle::Stats.track(
  key: 'orders',
  at: Time.now,
  values: {
    count: 1,
    revenue: 99.0,
    country: { us: 1 },
    channel: { web: 1 }
  }
)

Why Trifle Stats?

Built by developers for the AI age. Simple, focused, and works with what you already have.

No Extra Database

Works with PostgreSQL, MongoDB, Redis, or SQLite. Use what you already have; no dedicated time-series database needed.

Easy Setup

Add the library, configure your driver, and start tracking. No complex infrastructure, no steep learning curve.

Track Many Variables

One metrics key, MANY breakdown dimensions. Track count, revenue, category, channel and more; in a single call.

How Trifle Works

Data flows in, Trifle ensures correct tracking distribution. That makes it instantly queryable at any resolution.

Incoming Events
Trifle
Time Buckets
PostgreSQL / MongoDB
Query Request
# from App or CLI
Trifle::Stats.values(
key: 'orders',
from: '2024-01-26 14:00',
to: '2024-01-26 16:00',
granularity: '1h'
)
Response
# Returns 2 hourly buckets
{
at: ['2024-01-26 14:00', '2024-01-26 15:00'],
values: [
{ count: 2, revenue: 248.0, country: { us: 1, uk: 1 }, channel: { web: 1, app: 1 } },
{ count: 1, revenue: 79.0, country: { us: 1 }, channel: { app: 1 } }
]
}
Trifle
Time Buckets
PostgreSQL / MongoDB

The Trifle Ecosystem

From library to dashboard to CLI. Ready for humans or agents at any time.

Trifle Stats

The Core Library

Minimal time-series metrics library available in Ruby, Elixir, and Go. Drop it into your existing app, configure your database driver, and start tracking metrics in minutes.

  • Pluggable drivers: PostgreSQL, MongoDB, Redis, SQLite
  • Flexible granularities: 1m, 10m, 1h, 6h, 1d, 1w, and beyond
  • Hierarchical values for deep breakdowns
  • MIT licensed, production-ready
Ruby Elixir Go
# Gemfile
gem 'trifle-stats'

# config/initializers/trifle.rb
Trifle::Stats.configure do |c|
  c.driver = Trifle::Stats::Driver::Postgres.new
  c.granularities = ['10m', '1h', '1d']
end
Trifle App Dashboard

Trifle App

Visual Dashboard & Automation

The visual layer for your metrics. Build interactive dashboards, set up alerts, and schedule daily digests. All without writing single line of code. Non-technical team members can explore data independently.

Dashboards
Drag & drop
Alerts
Slack & Email
Digests
Daily reports

Trifle CLI

Command-line Power

Query metrics from your terminal. Works with Trifle App API and gives power to AI Agents to query metrics while having context of your code. Need something quick? A local zero config SQLite driver gets you started instantly.

🤖
MCP Ready
AI agent mode
Zero Setup
Local SQLite
🔌
Agent Friendly
Pipe-able output
terminal
$ trifle query orders --from 7d --granularity day

KEY     DATE        COUNT   REVENUE
orders  2024-01-24  142     14,058.00
orders  2024-01-25  156     15,444.00
orders  2024-01-26  128     12,672.00
...

$ trifle mcp-server --driver sqlite
MCP server running on stdio...

Choose How You Run Trifle

Two ways to use Trifle App — pick what works best for your team.

Coming Soon

Open Source

Self-hosted on your infrastructure

Deploy Trifle on your own servers and connect your own database. Full control over your data with no limits.

  • Bring your own database — connect MongoDB, PostgreSQL, or others
  • Unlimited everything — users, databases, no caps
  • AI features (BYOK) — bring your own OpenAI or Anthropic key
Available Now

Cloud

Managed by Trifle

We handle everything — infrastructure, updates, and storage. Just sign up and start tracking.

  • Zero maintenance — we handle updates, backups, scaling
  • Projects included — managed metrics storage via simple API
  • AI features included — on Pro plan, no API keys needed

Built for Real-World Metrics

When you need to track many variables under the same key with breakdowns by any dimension.

💰

Revenue Tracking

Track orders, revenue, and refunds by country, channel, and product. Know exactly where your money comes from at a glance.

⚙️

Background Workers

Track job duration, success rates, and outcomes across worker types. Spot failing pipelines before they become incidents.

📊

Feature Usage

Understand adoption patterns across user segments and platforms. See what's working without manually combing through data.

🔍

Custom Code Insights

Track what APM tools can't see. External API usage per user, business logic outcomes, third-party service states; the metrics only your code knows.

📈

Business KPIs

Signups, conversions, churn across cohorts and campaigns. Automatic rollups from minutes to quarters.

🤖

AI Agent Analytics

Track token usage, latency, and costs per model and prompt. MCP-ready so agents can monitor themselves.

Trifle App Pricing

Self-host for free or let us handle the infrastructure.

Self Hosted

Open Source

Free

Your infrastructure

  • Unlimited users
  • Unlimited databases
  • Dashboards & alerts
  • Projects
  • AI features (BYOK)
Coming soon
Cloud

Starter

/month

1 user included

  • 1 user
  • Unlimited databases
  • Dashboards & alerts
  • Projects
  • AI features
Get Started
Popular

Team

/month

3 users, then $/user/month

  • 3 users included
  • Unlimited databases
  • Dashboards & alerts
  • Projects
  • AI features
Get Started

Pro

/user/month

Per-user with AI features

  • Unlimited users
  • Unlimited databases
  • Dashboards & alerts
  • Projects
  • AI features
Get Started

Project Pricing

Cloud-managed metrics storage. Submit via API, we handle storage and aggregation.

Events per month
Monthly price
$/month
$ per 1k events
Contact Sales
Data Retention
Unlimited keys
Auto-aggregation
REST API access
Upgrade anytime if you need more events. No overages, no surprises.

Ready to simplify your metrics?

Start with the library in your language, add the App when you need dashboards, or jump straight to self-hosted.

GitHub | MIT License | Made for developers