> ## Documentation Index
> Fetch the complete documentation index at: https://core.anylayer.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Custom Scoring

> Create custom scoring algorithms for your application

## Overview

Build custom scoring logic tailored to your application's specific needs and user behaviors.

## Implementation

<CodeGroup>
  ```javascript JavaScript theme={null}
  class CustomScoring {
    async calculateCustomScore(user, weights) {
      const breakdown = await zkScore.getScoreBreakdown(user);
      
      let customScore = 0;
      for (const [category, weight] of Object.entries(weights)) {
        customScore += breakdown[category] * weight;
      }
      
      return Math.min(customScore, 1000);
    }
  }

  // Usage
  const customScore = await scoring.calculateCustomScore(user, {
    defi: 0.4,
    nft: 0.3,
    social: 0.3
  });
  ```
</CodeGroup>

## Related Documentation

* [Score Calculator](/contracts/score-calculator/overview)
