{"id":51145332,"url":"https://github.com/magnexis/feed-ranking-algorithm","last_synced_at":"2026-06-26T02:04:00.294Z","repository":{"id":345248345,"uuid":"1138631196","full_name":"magnexis/feed-ranking-algorithm","owner":"magnexis","description":"This is a simple backend feed-ranking prototype I built as one of my first learning projects. It uses basic engagement signals, session awareness, and topic rotation, exposed through a small FastAPI API. There’s no frontend included—feel free to use, modify, or build on it however you like.","archived":false,"fork":false,"pushed_at":"2026-01-20T23:28:48.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-13T00:23:16.375Z","etag":null,"topics":["algorithms","fastapi","python"],"latest_commit_sha":null,"homepage":"","language":"Python","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/magnexis.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":"2026-01-20T23:19:32.000Z","updated_at":"2026-05-05T15:49:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/magnexis/feed-ranking-algorithm","commit_stats":null,"previous_names":["theworker02/feed-ranking-algorithm","magnexis/feed-ranking-algorithm"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/magnexis/feed-ranking-algorithm","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnexis%2Ffeed-ranking-algorithm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnexis%2Ffeed-ranking-algorithm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnexis%2Ffeed-ranking-algorithm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnexis%2Ffeed-ranking-algorithm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magnexis","download_url":"https://codeload.github.com/magnexis/feed-ranking-algorithm/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnexis%2Ffeed-ranking-algorithm/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34799573,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["algorithms","fastapi","python"],"created_at":"2026-06-26T02:03:52.951Z","updated_at":"2026-06-26T02:04:00.285Z","avatar_url":"https://github.com/magnexis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\\# Feed Ranking Algorithm Prototype\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nThis project is an educational prototype of a social-media-style feed ranking system.\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\\## Features\r\n\r\n\r\n\r\n\\- Engagement-based ranking\r\n\r\n\r\n\r\n\\- Session-level signals (fatigue detection)\r\n\r\n\r\n\r\n\\- Topic rotation to prevent repetition\r\n\r\n\r\n\r\n\\- Event-driven interaction modeling\r\n\r\n\r\n\r\n\\- FastAPI web API interface\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\\## Tech Stack\r\n\r\n\r\n\r\n\\- Python 3\r\n\r\n\r\n\r\n\\- FastAPI\r\n\r\n\r\n\r\n\\- Uvicorn\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\\## How It Works\r\n\r\n\r\n\r\n1\\. User interaction events are loaded from JSON\r\n\r\n\r\n\r\n2\\. A session object is constructed\r\n\r\n\r\n\r\n3\\. Content is ranked using multiple weighted signals\r\n\r\n\r\n\r\n4\\. Topic repetition is softly penalized\r\n\r\n\r\n\r\n5\\. Results are exposed via a REST API\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\\## Run Locally\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n```bash\r\n\r\n\r\n\r\npip install -r requirements.txt\r\n\r\n\r\n\r\nuvicorn api:app --reload\r\n\r\n\r\n\r\nVisit: \r\nhttp://127.0.0.1:8000/feed\r\n\r\nhttp://127.0.0.1:8000/docs\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagnexis%2Ffeed-ranking-algorithm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagnexis%2Ffeed-ranking-algorithm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagnexis%2Ffeed-ranking-algorithm/lists"}