You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|[<imgsrc="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.isocalendar.svg"alt=""width="240">](https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.isocalendar.svg)|[<imgsrc="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.gists.svg"alt=""width="240">](https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.gists.svg)| More to come soon ! |
@@ -28,9 +30,9 @@ Try it now at [metrics.lecoq.io](https://metrics.lecoq.io/) with your GitHub use
28
30
29
31
Because some plugins required additional configuration and setup, not all of them are available at [metrics.lecoq.io](https://metrics.lecoq.io/), for a fully-featured experience, consider using this as a [GitHub Action](https://github.com/marketplace/actions/github-metrics-as-svg-image) !
30
32
31
-
##📜 How to use ?
33
+
# 📜 How to use ?
32
34
33
-
###⚙️ Using GitHub Action on your profile repo (~5 min setup)
35
+
## ⚙️ Using GitHub Action on your profile repo (~5 min setup)
34
36
35
37
Setup a GitHub Action which is run periodically and push a generated SVG image on your repository.
36
38
See all supported options in [action.yml](https://github.com/lowlighter/metrics/blob/master/action.yml).
@@ -44,7 +46,7 @@ Assuming your username is `my-github-user`, you can then embed your metrics in y
44
46
<details>
45
47
<summary>💬 How to setup ?</summary>
46
48
47
-
####0. Prepare your personal repository
49
+
### 0. Prepare your personal repository
48
50
49
51
If you don't know yet or haven't done it yet, create a repository with the same name as your GitHub username.
50
52
@@ -54,7 +56,7 @@ The `README.md` of this repository will be displayed on your GitHub user profile
Go to `Developer settings` from your GitHub account settings and select `Personal access tokens` to create a new token.
60
62
@@ -64,13 +66,13 @@ You'll need to create a token with the `public_repo` right so this GitHub Action
64
66
65
67
If you choose to use a bot account, you can put `public_repo` rights to the bot token and invite it as a collaborator on your personal profile repository so it has push access. This way, you can use a personnal token with no rights instead and reduce security issues.
66
68
67
-
####2. Put your GitHub token in your personal repository secrets
69
+
### 2. Put your GitHub token in your personal repository secrets
68
70
69
71
Go to the `Settings` of your personal repository to create a new secret and paste your GitHub token here.
####3. Create a new GitHub Action workflow on your personal repo
75
+
### 3. Create a new GitHub Action workflow on your personal repo
74
76
75
77
Create a new workflow from the `Actions` tab of your personal repository and paste the following :
76
78
@@ -108,7 +110,7 @@ If you don't want to use a bot token, you can use the `plugin_selfskip` which wi
108
110
If you're using a token with additional permissions, it is advised to fork this repository. If it ever gets compromised, you'll be safe.
109
111
But don't forget to check it from time to time for new features !
110
112
111
-
####4. Embed the link into your README.md
113
+
### 4. Embed the link into your README.md
112
114
113
115
Edit your README.md on your repository and link it your image :
114
116
@@ -118,7 +120,7 @@ Edit your README.md on your repository and link it your image :
118
120
119
121
</details>
120
122
121
-
###💕 Using the shared instance (~1 min setup, but with limitations)
123
+
## 💕 Using the shared instance (~1 min setup, but with limitations)
122
124
123
125
For conveniency, you can use the shared instance available at [metrics.lecoq.io](https://metrics.lecoq.io) without any additional setup.
124
126
@@ -143,7 +145,7 @@ If you're appreciating this project, consider using it as a GitHub Action or dep
143
145
144
146
</details>
145
147
146
-
###🏗️ Deploying your own instance (~15 min setup, depending on your sysadmin knowledge)
148
+
## 🏗️ Deploying your own instance (~15 min setup, depending on your sysadmin knowledge)
147
149
148
150
You can setup your own instance if you choose to not use the GitHub Action or you want to allow others users to use your instance.
149
151
@@ -156,18 +158,18 @@ See all supported options in [settings.example.json](https://github.com/lowlight
156
158
<details>
157
159
<summary>💬 How to setup ?</summary>
158
160
159
-
####0. Prepare your server
161
+
### 0. Prepare your server
160
162
161
163
You'll need a server where you can install and configure apps.
162
164
163
-
####1. Create a GitHub token
165
+
### 1. Create a GitHub token
164
166
165
167
In your account settings, go to `Developer settings` and select `Personal access tokens` to create a new token.
166
168
As explained above, you do not need to grant additional permissions to the token unless you want to enable additional plugins.
167
169
168
170

169
171
170
-
####2. Install the dependancies
172
+
### 2. Install the dependancies
171
173
172
174
Connect to your server and ensure [NodeJS](https://nodejs.org/en/) is installed (see tested versions in the [build workflows](https://github.com/lowlighter/metrics/blob/master/.github/workflows/build.yml)).
173
175
@@ -183,7 +185,7 @@ npm install --only=prod
183
185
cp settings.example.json settings.json
184
186
```
185
187
186
-
####3. Configure your instance
188
+
### 3. Configure your instance
187
189
188
190
Open and edit `settings.json` to configure your instance using a text editor of your choice.
189
191
@@ -197,7 +199,7 @@ Open and edit `settings.json` to configure your instance using a text editor of
197
199
198
200
See all supported options in [settings.example.json](https://github.com/lowlighter/metrics/blob/master/settings.example.json).
199
201
200
-
####4. Start your instance
202
+
### 4. Start your instance
201
203
202
204
Start your instance once you've finished configuring it :
203
205
@@ -207,15 +209,15 @@ npm start
207
209
208
210
And you should be able to access it on the port you provided !
209
211
210
-
####5. Embed the link into your README.md
212
+
### 5. Embed the link into your README.md
211
213
212
214
Edit your `README.md` on your repository and include your metrics from your server domain :
####6. (optional) Setup as service on your instance
220
+
### 6. (optional) Setup as service on your instance
219
221
220
222
If you want to ensure that your instance will be restarted after reboots or crashes, you should setup it as a service.
221
223
This is described below for linux-like systems with *systemd*.
@@ -283,9 +285,9 @@ For example, to configure `music` plugin, you could add the following to url : `
283
285
284
286
</details>
285
287
286
-
##📚 Documentations
288
+
# 📚 Documentations
287
289
288
-
###🖼️ Templates
290
+
## 🖼️ Templates
289
291
290
292
Templates allows you to style your metrics.
291
293
The default is the classic one, but you can change it for something more stylish.
@@ -294,12 +296,12 @@ Some metrics may be displayed differently, and it is possible that not all plugi
294
296
295
297
Consider trying them at [metrics.lecoq.io](https://metrics.lecoq.io) !
296
298
297
-
###🧩 Plugins
299
+
## 🧩 Plugins
298
300
299
301
Plugins are features which are disabled by default but they can provide additional metrics.
300
302
In return they may require additional configuration and tend to consume additional API requests.
301
303
302
-
####🗃️ Base content
304
+
### 🗃️ Base content
303
305
304
306
Generated metrics contains a few sections that are enabled by default, such as recent activity, community stats and repositories stats.
305
307
This can be configured by explicitely opt-out from them.
@@ -326,7 +328,7 @@ For example, to keep only `header` and `repositories` sections, add the followin
326
328
327
329
</details>
328
330
329
-
#### ⏱️ PageSpeed
331
+
### ⏱️ PageSpeed
330
332
331
333
The *pagespeed* plugin allows you to add the performances of the website attached to the GitHub user account :
332
334
@@ -353,11 +355,11 @@ Add the following to your workflow :
353
355
354
356
</details>
355
357
356
-
#### 🎼 Music
358
+
### 🎼 Music
357
359
358
360
The *music* plugin can work in the following modes :
359
361
360
-
##### Playlist mode
362
+
#### Playlist mode
361
363
362
364
Select randomly a few tracks from a given playlist so you can suggest your favorite tracks to your visitors.
363
365
@@ -430,7 +432,7 @@ Once you've extracted the embed url you can finish the setup by adding the follo
430
432
431
433
</details>
432
434
433
-
##### Recently played mode
435
+
#### Recently played mode
434
436
435
437
Display the track you played recently.
436
438
@@ -522,7 +524,7 @@ Now that you've got your `client_id`, `client_secret` and `refresh_token` you ca
522
524
523
525
</details>
524
526
525
-
#### 📅 Isometric calendar
527
+
### 📅 Isometric calendar
526
528
527
529
The *isocalendar* plugin allows you to display an isometric view of your commits calendar, along with a few stats like your current streak and your commit average per day.
528
530
@@ -554,7 +556,7 @@ It is possible to extend display a full-year by adding the following instead :
554
556
555
557
</details>
556
558
557
-
#### 👨💻 Lines
559
+
### 👨💻 Lines
558
560
559
561
The *lines* of code plugin allows you to compute the number of lines of code you added and removed across all of your repositories.
560
562
@@ -575,7 +577,7 @@ Add the following to your workflow :
575
577
576
578
</details>
577
579
578
-
#### 🧮 Traffic
580
+
### 🧮 Traffic
579
581
580
582
The repositories *traffic* plugin allows you to compute the number of pages views across your repositories.
581
583
@@ -602,7 +604,7 @@ Add the following to your workflow :
602
604
603
605
</details>
604
606
605
-
#### 💡 Habits
607
+
### 💡 Habits
606
608
607
609
The coding *habits* plugin allows you to add deduced coding about based on your recent activity, from up to 100 events.
608
610
@@ -627,7 +629,7 @@ Add the following to your workflow :
627
629
628
630
</details>
629
631
630
-
#### ✒️ Posts
632
+
### ✒️ Posts
631
633
632
634
The recent *posts* plugin allows you to display recent articles you wrote on an external source, like [dev.to](https://dev.to).
633
635
@@ -650,7 +652,7 @@ Add the following to your workflow :
650
652
651
653
</details>
652
654
653
-
#### 🎟️ Follow-up
655
+
### 🎟️ Follow-up
654
656
655
657
The *follow-up* plugin allows you to compute the ratio of opened/closed issues and the ratio of opened/merged pull requests on your repositories, which shows whether most of them are maintened or not.
656
658
@@ -669,7 +671,7 @@ Add the following to your workflow :
669
671
670
672
</details>
671
673
672
-
#### 🈷️ Languages
674
+
### 🈷️ Languages
673
675
674
676
The *languages* plugin allows you to compute which languages you use the most in your repositories.
675
677
@@ -688,7 +690,7 @@ Add the following to your workflow :
688
690
689
691
</details>
690
692
691
-
#### 🎫 Gists
693
+
### 🎫 Gists
692
694
693
695
The *gists* plugin allows you to display [gists](https://gist.github.com) metrics.
694
696
@@ -709,7 +711,37 @@ Add the following to your workflow :
709
711
710
712
</details>
711
713
712
-
#### ⏭️ Selfskip
714
+
### 📌 Topics *(pre-release)*
715
+
716
+
The *topics* plugin allows you to display your [starred topics](https://github.com/stars?filter=topics).
717
+
Check out [GitHub topics](https://github.com/topics) to search interesting topics.
This uses puppeteer to navigate through your starred topics page.
725
+
726
+
You can choose to display and order topics by :
727
+
- Most `stars`
728
+
- Recent `activity`
729
+
- Recently `starred` by you
730
+
- `random`ly
731
+
732
+
Add the following to your workflow :
733
+
```yaml
734
+
- uses: lowlighter/metrics@latest
735
+
with:
736
+
# ... other options
737
+
plugin_topics: yes
738
+
plugin_topics_sort: stars
739
+
plugin_topics_limit: 15
740
+
```
741
+
742
+
</details>
743
+
744
+
### ⏭️ Selfskip
713
745
714
746
The *selfskip* plugin allows you to count out all commits tagged with `[Skip GitHub Action]` you authored on your personal repository from your reported commit counts.
715
747
@@ -728,15 +760,15 @@ Add the following to your workflow :
728
760
729
761
</details>
730
762
731
-
### 💪 Contributing and customizing
763
+
## 💪 Contributing and customizing
732
764
733
765
If you would like to suggest a new feature, find a bug or need help, you can fill an [issue](https://github.com/lowlighter/metrics/issues) describing your problem.
734
766
735
767
If you're motivated enough, you can submit a [pull request](https://github.com/lowlighter/metrics/pulls) to integrate new features or to solve open issues.
736
768
737
769
Read [contributing.md](https://github.com/lowlighter/metrics/blob/master/CONTRIBUTING.md) for more information about this.
0 commit comments