Files
flipstone-radar/config-examples.md
2025-07-10 21:59:56 -04:00

1.2 KiB

Configuration Examples

Default Cache (5 minutes)

{
  "github": {
    "token": "ghp_your_github_token_here",
    "repositories": [
      {
        "owner": "facebook",
        "name": "react"
      }
    ]
  },
  "server": {
    "port": 3001,
    "host": "0.0.0.0"
  }
}

Short Cache (1 minute)

{
  "github": {
    "token": "ghp_your_github_token_here",
    "repositories": [
      {
        "owner": "facebook",
        "name": "react"
      }
    ]
  },
  "server": {
    "port": 3001,
    "host": "0.0.0.0"
  },
  "cache": {
    "timeoutMinutes": 1
  }
}

Long Cache (15 minutes)

{
  "github": {
    "token": "ghp_your_github_token_here",
    "repositories": [
      {
        "owner": "facebook",
        "name": "react"
      }
    ]
  },
  "server": {
    "port": 3001,
    "host": "0.0.0.0"
  },
  "cache": {
    "timeoutMinutes": 15
  }
}

Cache Configuration Notes

  • timeoutMinutes: Sets how long API responses are cached (in minutes)
  • Default: 5 minutes if not specified
  • Range: Any positive number (1 minute minimum recommended)
  • Live Reload: Changes to cache timeout require server restart to take effect
  • Memory Usage: Longer cache times = more memory usage but fewer API calls