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 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.
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
# 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
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.
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.
$ 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.
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
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.
Open Source
Your infrastructure
- Unlimited users
- Unlimited databases
- Dashboards & alerts
- Projects
- AI features (BYOK)
Starter
1 user included
- 1 user
- Unlimited databases
- Dashboards & alerts
- Projects
- AI features
Team
3 users, then $/user/month
- 3 users included
- Unlimited databases
- Dashboards & alerts
- Projects
- AI features
Pro
Per-user with AI features
- Unlimited users
- Unlimited databases
- Dashboards & alerts
- Projects
- AI features
Project Pricing
Cloud-managed metrics storage. Submit via API, we handle storage and aggregation.
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.