GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com β€” GitHub - FIWARE-Ops/github_statistics: Collect some statistics of GitHub repositories about the use of FIWARE

BranchesTags
Open more actions menu

Latest commit

 

History

7 Commits
7 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
data
data
 
 
src
src
 
 
.env
.env
 
 
.gitignore
.gitignore
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
Readme.md
Readme.md
 
 
Roadmap.md
Roadmap.md
 
 

Repository files navigation

GitHub Statistics Collector

A high-performance, asynchronous Rust application that collects engagement statistics from FIWARE GitHub repositories β€” including stargazers, contributors, forks, watchers, and issue authors.

This project parallelizes API calls across repositories and forks using Tokio and FuturesUnordered, ensuring efficient data retrieval even for large organizations such as FIWARE.


πŸš€ Features

  • βœ… Collects GitHub repository data:
    • Stargazers (users who starred)
    • Contributors (including forked repos)
    • Watchers (subscribers)
    • Issue authors
  • ⚑ Fully asynchronous using tokio and reqwest
  • πŸ”€ Parallel processing across multiple repositories and forks
  • 🧱 Built with the Axum web framework (includes a simple HTTP status route)
  • πŸ•’ Handles GitHub rate limits gracefully (auto-sleep on 403)
  • πŸ” Secure GitHub API access via personal token

🧩 Tech Stack

Component Purpose
Rust Core programming language
Axum Lightweight async web server
Reqwest HTTP client for GitHub API calls
Tokio Async runtime
Futures Parallel async task management
Serde / Serde JSON JSON parsing and serialization
Dotenv Environment variable management

🧰 Installation & Setup

1. Prerequisites

  • Rust (v1.87.0+)
  • A GitHub Personal Access Token (with read:public_repo permissions)
  • cargo build tool

2. Clone the repository

git clone https://github.com/yourusername/github-stats-collector.git
cd github-stats-collector

3. Create your .env file

GITHUB_TOKEN=your_github_token_here

The program only reads public repository data, so it does not need write or admin permissions. There are two options to generate the token, either Personal Access Token (classic) or Fine-grained Tokens (recommended by GitHub)

When creating a Personal Access Token (classic):

  • Go to β†’ GitHub Settings β†’ Developer Settings β†’ Personal Access Tokens β†’ Tokens (classic)
  • Click β€œGenerate new token (classic)”. Set:
    • Expiration: reasonable (e.g., 90 days or 1 year).
    • Scopes: check only, read:public_repo (this grants access to read public repositories’ metadata)

Copy the generated token and save it securely. If you prefer Fine-grained Tokens (recommended by GitHub):

  • Choose β€œFine-grained personal access token”
  • Under Repository access, select β€œAll public repositories”
  • Under Permissions β†’ Repository Permissions, set:
    • Metadata β†’ Read-only
    • Contents β†’ Read-only
    • Issues β†’ Read-only (for issue authors)
    • Pull requests β†’ Read-only (optional)
    • No other permissions are required.

4. Define the repositories to analyze

Create a repos.json file in the data folder with the information of all organization/repository that we want to analyse:

[
  "FIWARE/context.Orion-LD",
  "FIWARE/tutorials.Step-by-Step"
]

5. Run the collector

cargo run

πŸ“Š Example Output

Fetching stats for telefonicaid/fiware-orion...
[telefonicaid/fiware-orion] Stargazers: 216, Developers: 107, Total Users: 480
Fetching stats for eProsima/Fast-DDS...
[eProsima/Fast-DDS] Stargazers: 2610, Developers: 178, Total Users: 3272

Total FIWARE users: 10389
Total FIWARE developers: 751

🌐 Web Endpoint

The project includes a minimal Axum server that exposes a health-check route:

http://localhost:8080/

Response:

GitHub Stats Collector Running πŸš€

🧩 Directory Structure

github-stats-collector/ β”œβ”€β”€ Cargo.toml β”œβ”€β”€ src/ β”‚ └── main.rs β”œβ”€β”€ data/ β”‚ └── repos.json β”œβ”€β”€ .env β”œβ”€β”€ README.md └── ROADMAP.md

Roadmap

To take an overview of the Roadmap defined for this component, please take a look to the Roadmap.md document.

🀝 Contributions

Pull requests, feature suggestions, and improvements are welcome! Please open an issue before submitting major changes.

πŸ“§ Contact

Maintained by [Your Name or Organization] If you have questions, reach out via GitHub Issues or email.

βš–οΈ License

This project is licensed under the Apache 2.0 License.

About

Collect some statistics of GitHub repositories about the use of FIWARE

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 β€” GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800Γ—600. No cookies required.