source/plugins/stargazers/README.md
</td>
Some features like plugin_stagazers_worldmap require a Google Geocoding API token.
Follow instructions from their documentation for more informations.
💳 A billing account is required to get a token. However a recurring monthly credit is offered which means you should not be charged if you don't exceed the free quota.
It is advised to set the quota limit at 1200 requests per day
Use at your own risk, metrics and its authors cannot be held responsible for anything charged.
<b>default:</b> no
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_stargazers_days</code></h4></td> <td rowspan="2"><p>Time range</p> <p>If set to <code>0</code> the account registration date will be used.</p> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>number</code> <i>(0 ≤ 𝑥)</i><b>zero behaviour:</b> see description</br> <b>default:</b> 14
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_stargazers_charts</code></h4></td> <td rowspan="2"><p>Charts</p> <p>It includes total number of stargazers evolution, along with the number of new stars per day over the last two weeks.</p> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>boolean</code><b>default:</b> yes
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_stargazers_charts_type</code></h4></td> <td rowspan="2"><p>Charts display type</p> <ul> <li><code>classic</code>: <code><div></code> based charts, simple and lightweight</li> <li><code>graph</code>: <code><svg></code> based charts, smooth</li> </ul> <blockquote> <p>⚠️ <code>chartist</code> option has been deprecated and is now equivalent to <code>graph</code></p> </blockquote> </td> </tr> <tr> <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <ul> <li><i>metrics.npm.optional.d3</i></li> </ul> <b>type:</b> <code>string</code><b>default:</b> classic
<b>allowed values:</b><ul><li>classic</li><li>graph</li><li>chartist</li></ul></td>
</tr> <tr> <td nowrap="nowrap"><h4><code>plugin_stargazers_worldmap</code></h4></td> <td rowspan="2"><p>Stargazers worldmap</p> </td> </tr> <tr> <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <ul> <li><i>metrics.api.google.maps</i></li> <li><i>metrics.npm.optional.d3</i></li> </ul> <b>type:</b> <code>boolean</code><b>default:</b> no
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_stargazers_worldmap_token</code></h4></td> <td rowspan="2"><p>Stargazers worldmap token</p> </td> </tr> <tr> <td nowrap="nowrap">🔐 Token<b>type:</b> <code>token</code>
</td> </tr> <tr> <td nowrap="nowrap"><h4><code>plugin_stargazers_worldmap_sample</code></h4></td> <td rowspan="2"><p>Stargazers worldmap sample</p> <p>Use this setting to randomly sample and limit your stargazers. Helps to avoid consuming too much Google Geocoding API requests while still being representative.</p> </td> </tr> <tr> <td nowrap="nowrap"><b>type:</b> <code>number</code> <i>(0 ≤ 𝑥)</i><b>zero behaviour:</b> disable</br> <b>default:</b> 0
</td> </tr> </table> <!--/options-->name: Using classic charts
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.stargazers.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ""
plugin_stargazers: yes
name: Using graph charts
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.stargazers.graph.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ""
plugin_stargazers: yes
plugin_stargazers_charts_type: graph
name: With worldmap
uses: lowlighter/metrics@latest
with:
filename: metrics.plugin.stargazers.worldmap.svg
token: ${{ secrets.METRICS_TOKEN }}
base: ""
plugin_stargazers: yes
plugin_stargazers_charts: no
plugin_stargazers_worldmap: yes
plugin_stargazers_worldmap_token: ${{ secrets.GOOGLE_MAP_TOKEN }}
plugin_stargazers_worldmap_sample: 200