# Streaks

**URL:** https://heroiclabs.com/docs/hiro/concepts/streaks/
**Keywords:** streaks, hiro
**Categories:** hiro, streaks, concepts

---

<figure class="float-right" style="max-width: 30%; border: 20px solid transparent; text-align: center;">
  <img 
    src="{{< fingerprint_image "/images/pages/hiro/concepts/streaks/daily-bonus-fruitfall.png" >}}" 
    style="width: 100%;"
  >
  <figcaption>Fruit Fall by Gram Games uses Hiro Streaks System for Daily Bonus</figcaption>
</figure>

# Streaks

The Hiro Streaks System is a versatile feature designed to enhance player engagement and competitiveness by rewarding consecutive wins. These wins can be tracked, and rewards can be configured to motivate players to reach certain streak thresholds by maintaining momentum. This feature enhances player engagement by adding an extra layer of challenge, encouraging skill mastery, and creating competitive tension.

## Customization parameters

The following JSON represents the customization parameters you can use to configure the default user experience for the Streaks system.

```json
{
  "streaks": {
    "wins": {
      "name": "Consecutive Wins",
      "description": "Number of consecutive wins, without any losses.",
      "count": 0,
      "max_count": 9,
      "max_count_current_reset": 3,
      "idle_count_decay_reset": 9,
      "reset_cronexpr": "0 0 * * *",
      "rewards": [
        {
          "count_min": 3,
          "count_max": 3,
          "reward": {
            "guaranteed": {
              "currencies": {
                "coins": {
                  "min": 10
                }
              }
            }
          }
        },
        {
          "count_min": 6,
          "count_max": 6,
          "reward": {
            "guaranteed": {
              "currencies": {
                "coins": {
                  "min": 30
                }
              }
            }
          }
        },
        {
          "count_min": 9,
          "count_max": 9,
          "reward": {
            "guaranteed": {
              "currencies": {
                "coins": {
                  "min": 100
                }
              }
            }
          }
        }
      ]
    }
  }
}
```

### Streak

{{< table name="gdk.concepts.streaks.streak" >}}

### Streak Reward

{{< table name="gdk.concepts.streaks.streak-reward" >}}

## Additional Information

- [Mage Mayhem sample project](../../../sample-projects/games/mage-mayhem)
