{"id":19291789,"url":"https://github.com/hirosystems/dev-counter","last_synced_at":"2026-05-16T04:41:34.770Z","repository":{"id":167002124,"uuid":"638567411","full_name":"hirosystems/dev-counter","owner":"hirosystems","description":"Collects and serves developer statistical information.","archived":false,"fork":false,"pushed_at":"2023-08-30T13:49:49.000Z","size":433,"stargazers_count":0,"open_issues_count":13,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-02-22T19:50:01.077Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://stats-liard-nine.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hirosystems.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-09T16:15:13.000Z","updated_at":"2023-06-23T14:14:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"bbbc1f30-d48e-4309-8ff4-ee8354eb2f11","html_url":"https://github.com/hirosystems/dev-counter","commit_stats":null,"previous_names":["hirosystems/stats","hirosystems/dev-counter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosystems%2Fdev-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosystems%2Fdev-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosystems%2Fdev-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hirosystems%2Fdev-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hirosystems","download_url":"https://codeload.github.com/hirosystems/dev-counter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240395747,"owners_count":19794572,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T22:27:54.357Z","updated_at":"2026-05-16T04:41:29.751Z","avatar_url":"https://github.com/hirosystems.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Developer Statistics\n\nThe Developer Statistics Service collects, processes, and delivers detailed statistical data related to developer activities.\n\n# Development\n\n## Prerequisites\n\nYou should have [Node](https://nodejs.org/en/) and [Docker](https://www.docker.com/) installed.\n\n## Initializing env vars for local development\n\n```shell\ncp .env.example .env\n```\nThen fill in the values in `.env`.\n\n## Setting up the local database\n\nStart Postgres in docker:\n\n```shell\ndocker run --name stats-db -p 5432:5432 -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=postgrespw -e POSTGRES_DB=stats-db -d postgres\n```\n\nRun the db migrations:\n\n```shell\npnpm migrate up\n```\n\n## Install dependencies\n\n```shell\npnpm install\n```\n\nGenerate prisma client:\n\n```shell\npnpm prisma generate\n```\n\n## Run data collection jobs\n\nData collection jobs will run the following:\n1) Fetch TOML file from .env `EC_TOML_FILE_URL`, process its contents and store in the database.\n2) Fetch and store repositories for organizations.\n3) Fetch and store contribution data for repositories.\n4) Schedule the next run of the data collection jobs.\n\n```shell\npnpm schedule:dev\n```\n\n## Start server\n\n```shell\npnpm serve:dev\n```\n\nThis will expose the endpoints:\n- `/code/:interval (weekly | monthly)`\n- `/devs/:interval (weekly | monthly)`\n\n## Build\n\n```shell\npnpm build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirosystems%2Fdev-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhirosystems%2Fdev-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhirosystems%2Fdev-counter/lists"}