{"id":49082666,"url":"https://github.com/ghlps/ru-counter","last_synced_at":"2026-05-12T23:37:40.279Z","repository":{"id":321488818,"uuid":"1077062436","full_name":"ghlps/ru-counter","owner":"ghlps","description":"Service implemented to count the users of the ru-menu service. The repository contains a simple Go program that fetches data from WhatsApp and updates the ru-menu repository","archived":false,"fork":false,"pushed_at":"2026-01-11T17:29:01.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-22T00:50:15.183Z","etag":null,"topics":["github-repo","golang","sql-lite","whatsapp","worker"],"latest_commit_sha":null,"homepage":"","language":"Go","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/ghlps.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-15T18:10:08.000Z","updated_at":"2026-01-11T17:29:04.000Z","dependencies_parsed_at":"2025-10-29T23:43:15.777Z","dependency_job_id":null,"html_url":"https://github.com/ghlps/ru-counter","commit_stats":null,"previous_names":["guimox/ru-counter","ghlps/ru-counter"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ghlps/ru-counter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghlps%2Fru-counter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghlps%2Fru-counter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghlps%2Fru-counter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghlps%2Fru-counter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ghlps","download_url":"https://codeload.github.com/ghlps/ru-counter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ghlps%2Fru-counter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32050079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["github-repo","golang","sql-lite","whatsapp","worker"],"created_at":"2026-04-20T13:44:49.990Z","updated_at":"2026-04-20T13:44:51.304Z","avatar_url":"https://github.com/ghlps.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RU Counter\n\nAutomated WhatsApp newsletter subscriber counter for the [ru-menu](https://github.com/guimox/ru-menu) project. This service automatically fetches subscriber counts from WhatsApp newsletters and updates GitHub repository statistics.\n\n### Overview\n\nRU Counter is a microservice that connects to WhatsApp Business API to retrieve real-time subscriber counts from university restaurant menu newsletters. It automatically updates the main repository description and README with current Daily Active User (DAU) statistics.\n\n### Architecture\n\nThe project consists of two main components:\n\n- **WhatsApp Client**: Connects to WhatsApp using the whatsmeow library to fetch newsletter subscriber data\n- **GitHub Updater**: Updates repository metadata and README files with current subscriber statistics\n\n### Project Structure\n\n```\nru-counter/\n├── cmd\n│   └── main.go\n├── db\n│   └── session.db\n├── docker-compose-prd.yml\n├── Dockerfile\n├── go.mod\n├── go.sum\n├── internal\n│   ├── github\n│   │   └── updater.go\n│   └── whatsapp\n│       └── client.go\n└── README.md\n```\n\n### Integration with RU Menu\n\nThis counter service is part of the larger [ru-menu](https://github.com/guimox/ru-menu) ecosystem that provides daily university restaurant menus to students via WhatsApp. The counter ensures accurate tracking of user engagement and service reach across multiple campus locations.\n\n### Cronjob\n\nThis service runs once every friday.\n\n### Data Flow\n\n1. **Authentication**: Service displays QR code for WhatsApp Web pairing\n2. **Connection**: Establishes stable connection with WhatsApp servers\n3. **Data Retrieval**: Fetches subscriber counts from configured newsletters\n4. **GitHub Update**: Updates repository description and README with current statistics\n5. **Reporting**: Logs successful updates with detailed breakdown\n\n### Monitoring\n\nThe service provides detailed logging for:\n\n- WhatsApp connection status and reconnection events\n- Individual newsletter subscriber count retrieval\n- GitHub API update operations\n- Error handling and recovery procedures\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghlps%2Fru-counter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghlps%2Fru-counter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghlps%2Fru-counter/lists"}