https://github.com/diwakergupta/mads
Calculate monthly active developers based on Github activity
https://github.com/diwakergupta/mads
crypto-ecosystems developers
Last synced: 11 months ago
JSON representation
Calculate monthly active developers based on Github activity
- Host: GitHub
- URL: https://github.com/diwakergupta/mads
- Owner: diwakergupta
- License: mit
- Created: 2023-01-31T15:01:33.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-17T18:56:18.000Z (over 3 years ago)
- Last Synced: 2025-03-05T04:41:39.337Z (about 1 year ago)
- Topics: crypto-ecosystems, developers
- Language: Go
- Homepage:
- Size: 22.5 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# wads
A tool to calculate weekly active developers based on Github activity.
This is **ALPHA** software, use at your own risk.
## Build
```bash
$ go get github.com/diwakergupta/wads
```
If that doesn't work, check out the repo and build locally `go build`
## Usage
* Find the TOML from EC's [crypto-ecosystem repo](https://github.com/electric-capital/crypto-ecosystems) that you want to process (e.g. [this one for Stacks](https://raw.githubusercontent.com/electric-capital/crypto-ecosystems/master/data/ecosystems/s/stacks.toml))
* Convert the TOML to JSON -- mostly because Go stdlib has built in support for JSON but not TOML. I used [this online convertor](https://pseitz.github.io/toml-to-json-online-converter/).
* Obtain a Github API token
* Run `wads --token --file ` and wait
## Known limitations
This is a very hacky proof-of-concept. Lots of limitations and room for improvement:
* No tests
* Basic error handling. Does a naive, recursive retry if repo stats aren't yet available
* Doesn't discern commits from bots
* Doesn't handle "sub systems", therefore almost certainly undercounts
* Relies on Github repo stats being fresh & accurate. Directly obtaining data from a `git clone` will likely be more accurate