Skip to content

Commit 920d70f

Browse files
committed
feat: fetch GitHub stars and sort software by stars
This commit introduces a script to fetch GitHub star counts and update software entries, allowing sorting by popularity. - Adds a script to fetch GitHub stars from the API - Updates archetypes to remove stars and stars_widget_url - Modifies layouts to dynamically fetch and display star badges, and update sorting. - Updates the github actions to run the script to update stars on new commits
1 parent dfb90b6 commit 920d70f

File tree

29 files changed

+213
-60
lines changed

29 files changed

+213
-60
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ jobs:
6363
6464
- name: Generate OG Images
6565
run: npm run og-images
66+
67+
- name: Fetch GitHub Stars
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
run: npm run fetch-stars
6671

6772
- name: Determine Base URL
6873
id: base_url

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ yarn.lock
2020
/tmp/ogImageData.json
2121
/tmp/output_full.txt
2222
/tmp/
23+
.env
2324

2425
# Ignore generated OG images and cache files
2526
content/**/*-og-*.jpg

archetypes/neuromorphic-software.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ logo: "software-logo.png" # Software logo. Place in this software's folder, or r
99
website: "https://official-website.com"
1010
dependencies: "Key dependencies (e.g., PyTorch, JAX, NumPy, C++17)"
1111
field_of_application: "e.g., Machine Learning, Neuroscience, Data Processing, Hardware Interface, Robotics"
12-
source_code: "https://github.com/org/repo"
13-
stars_widget_url: "https://img.shields.io/github/stars/org/repo.svg?style=social" # Replace org/repo with actual GitHub path
14-
stars: 0 # This will be auto-updated by a script if implemented, otherwise copy from the badge manually.
12+
source_code: "https://github.com/org/repo" # This URL is now used to automatically fetch the star count for sorting.
1513
version_widget_url: "https://img.shields.io/pypi/v/package-name.svg" # Or other relevant badge URL (e.g., GitHub release)
1614
license: "e.g., MIT, GPL-3.0, AGPL-3.0, Apache-2.0, custom"
1715
supports_hardware: false # Set to true if it directly supports or deploys to neuromorphic hardware platforms

content/neuromorphic-computing/software/data-tools/aedat/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies: Numpy
88
field_of_application: Data Processing
99
source_code: https://github.com/neuromorphicsystems/aedat
1010
pypi_id: aedat
11-
stars: 28
1211
license: MIT
1312
supports_hardware: False
1413
supports_NIR: False

content/neuromorphic-computing/software/data-tools/aestream/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies: Numpy, nanobind, pysdl2-dll
88
field_of_application: Data Processing
99
source_code: https://github.com/aestream/aestream
1010
pypi_id: aestream
11-
stars: 49
1211
license: MIT
1312
supports_hardware: False
1413
supports_NIR: False

content/neuromorphic-computing/software/data-tools/expelliarmus/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies: Numpy
88
field_of_application: Data Processing
99
source_code: https://github.com/open-neuromorphic/expelliarmus
1010
pypi_id: expelliarmus
11-
stars: 25
1211
license: GPL-2.0
1312
supports_hardware: False
1413
supports_NIR: False

content/neuromorphic-computing/software/data-tools/tonic/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies: Numpy
88
field_of_application: Data processing
99
source_code: https://github.com/neuromorphs/tonic
1010
pypi_id: tonic
11-
stars: 167
1211
license: GPL-3.0
1312
supports_hardware: False
1413
supports_NIR: False

content/neuromorphic-computing/software/snn-frameworks/bindsnet/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies: PyTorch
88
field_of_application: Machine Learning
99
source_code: https://github.com/bindsnet/bindsnet
1010
pypi_id: bindsnet
11-
stars: 1375
1211
license: AGPL-3.0
1312
supports_hardware: False
1413
supports_NIR: False

content/neuromorphic-computing/software/snn-frameworks/brian/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ dependencies:
88
field_of_application: Neuroscience
99
source_code: https://github.com/brian-team/brian2
1010
pypi_id: brian2
11-
stars: 835
1211
license: custom
1312
supports_hardware: False
1413
supports_NIR: False

content/neuromorphic-computing/software/snn-frameworks/carlsim/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: CARLsim
33
type: neuromorphic-software
44
description: GPU-accelerated library for simulating large-scale spiking neural network (SNN) models with high biologically realistic synaptic dynamics.
5-
stars: 34
65
website: https://uci-carl.github.io/CARLsim3/
76
field_of_application: Machine Learning, Hardware Interface
87
source_code: https://github.com/UCI-CARL/CARLsim6

0 commit comments

Comments
 (0)