cricket_intelligence_engine 1.0.2 copy "cricket_intelligence_engine: ^1.0.2" to clipboard
cricket_intelligence_engine: ^1.0.2 copied to clipboard

A stateless, offline Cricket Intelligence Engine that instantly calculates MVP, NRR, and phase dominance from raw cricket JSON scorecards without needing a backend API.

example/example.dart

import 'package:cricket_intelligence_engine/cricket_intelligence_engine.dart';

void main() {
  // 1. Your raw cricket JSON payload from an external source or database
  Map<String, dynamic> rawJson = {
    "match_id": "CRIC_2026_001",
    "innings": [
      {
        "team": "IND",
        "runs": 208,
        "wickets": 5,
        "overs": 20.0,
        "batters": [
          {
            "name": "Virat Kohli",
            "runs": 65,
            "balls": 40,
            "fours": 5,
            "sixes": 3
          }
        ],
        "bowlers": []
      }
    ]
  };

  // 2. Pass it directly to the local Dart engine!
  MatchPredictionOutput output = CricketEngine.analyzeRawJson(rawJson);

  // 3. Display the insights
  print("MVP: \${output.matchInsights.mostValuablePlayer.name}");
  print("Impact Score: \${output.matchInsights.mostValuablePlayer.performanceScore}");
}
0
likes
140
points
381
downloads

Documentation

API reference

Publisher

verified publishercricmatch.in

Weekly Downloads

A stateless, offline Cricket Intelligence Engine that instantly calculates MVP, NRR, and phase dominance from raw cricket JSON scorecards without needing a backend API.

License

MIT (license)

More

Packages that depend on cricket_intelligence_engine