{"id":16872821,"url":"https://github.com/xen/sfbadge","last_synced_at":"2026-04-13T18:31:25.744Z","repository":{"id":6620635,"uuid":"7864199","full_name":"xen/sfbadge","owner":"xen","description":"sfbadge","archived":false,"fork":false,"pushed_at":"2013-02-20T16:39:51.000Z","size":116,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T20:51:55.063Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/xen.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}},"created_at":"2013-01-28T06:12:23.000Z","updated_at":"2013-04-09T12:24:54.000Z","dependencies_parsed_at":"2022-09-16T18:10:47.947Z","dependency_job_id":null,"html_url":"https://github.com/xen/sfbadge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xen/sfbadge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xen%2Fsfbadge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xen%2Fsfbadge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xen%2Fsfbadge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xen%2Fsfbadge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xen","download_url":"https://codeload.github.com/xen/sfbadge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xen%2Fsfbadge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31766309,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"last_error":"SSL_read: 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":[],"created_at":"2024-10-13T15:16:22.945Z","updated_at":"2026-04-13T18:31:25.730Z","avatar_url":"https://github.com/xen.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sfbadge\n\nSmall API to use sourceforge.com downloads statistics embeded as AJAX calls hosted on Heroku. Sourceforge.com don't allow cross origin calls so that is primary reason to make this project.\n\n## Install\n\nRead this [official tutorial](https://devcenter.heroku.com/articles/python#start-flask-app-inside-a-virtualenv)  \n\n## Usage\n\nFormat is very simple:\n\n    http://sfbadge.herokuapp.com/sf/:reponame/:set\n    \n\nParameters:\n\n- `reponame` is your repository on sf.net, for example \"fontforge\"\n- `set` is size of result set. Now it accept only two values: `json` and `fulljson`. `json` returns only total downloads number.\n\nOptional parameters:\n\n- `start_date` sourceforge allow to limit statistic to particular date range. If not provided then limited to 7 days ago. Format `%Y-%m-%d`\n- `end_date`, if not provided then today, format the same\n- `jsonp` callback function name for JSONP requests\n\n## Example\n\nFor example you can use this code on [FontForge homepage](http://fontforge.github.com/en-US/index.html):\n\n    Downloads \u003cstrong id=\"cnt-downloads\"\u003e\u003c/strong\u003e\n    \n    \u003cscript type=\"text/javascript\"\u003e\n    function humanise(n){\n      var d = ',';\n      var s = '.';\n      n = n.toString().split('.');\n      n[0] = n[0].replace(/(\\d)(?=(\\d\\d\\d)+(?!\\d))/g, '$1' + d);\n      return n.join(s);\n    };\n\n    $(document).ready(function(){\n        $.getJSON(\"http://sfbadge.herokuapp.com/sf/fontforge/json\", function(json) {\n            $('#cnt-downloads').html(humanise(json.total));\n        });\n    });\n    \u003c/script\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxen%2Fsfbadge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxen%2Fsfbadge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxen%2Fsfbadge/lists"}