{"id":13779366,"url":"https://github.com/webkom/census","last_synced_at":"2026-01-11T00:59:04.391Z","repository":{"id":19532467,"uuid":"22780090","full_name":"webkom/census","owner":"webkom","description":null,"archived":true,"fork":false,"pushed_at":"2016-02-11T14:25:53.000Z","size":52,"stargazers_count":2,"open_issues_count":5,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-11-17T14:41:41.095Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"census.abakus.no","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webkom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-09T05:42:33.000Z","updated_at":"2023-01-28T18:29:40.000Z","dependencies_parsed_at":"2022-08-23T17:10:12.315Z","dependency_job_id":null,"html_url":"https://github.com/webkom/census","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webkom%2Fcensus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webkom%2Fcensus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webkom%2Fcensus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webkom%2Fcensus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webkom","download_url":"https://codeload.github.com/webkom/census/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253567572,"owners_count":21928853,"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-08-03T18:01:04.405Z","updated_at":"2026-01-11T00:59:04.338Z","avatar_url":"https://github.com/webkom.png","language":"HTML","funding_links":[],"categories":["Tools"],"sub_categories":[],"readme":"# census [![Build status](https://ci.frigg.io/badges/webkom/census/)](https://ci.frigg.io/webkom/census/last/) [![Coverage status](https://ci.frigg.io/badges/coverage/webkom/census/)](https://ci.frigg.io/webkom/census/last/)\n\nHeadcount for our servers. It is a little web project based on express.js, which\nlists servers based on pings to its API. The servers themselves need to report\nto be shown in the list. However, it is not necessary to attach more than hostname\nand a username in the POST request.\n\nIf more than 15 minutes pass without a report, your server will show up as dead.\n\n### Reporting\nThe easiest way to report to Census is to set up a cron job that reports every ten mintues to Census.\n```bash\ncurl -X POST https://census.abakus.no/api/report --data \"hostname={hostname}\u0026username={username}\"\n```\n\n## Setup\n```bash\ngit clone git@github.com:webkom/census.git\ncd census\nnpm install\ngulp\n```\n\n### Authentication\nThis project requires users to be authenticated in order to see info like IP and\nservers that does not belong to the organisation. The project uses passport for\nauthentication. You can easily add you own strategy by setting the environment\nvariable `PASSPORT_STRATEGY` to a package or path that require can reach. The\nstrategy needs to be wrapped in a function like [passport-abakus](https://github.com/webkom/passport-abakus/blob/master/index.bs#L4).\nThe options you want to pass into the function needs to be put into an environment\nvariable called `PASSPORT_STRATEGY_OPTIONS`\n\n## Tests\n```bash\nnpm test\n```\n\n--------\nMIT © webkom, Abakus Linjeforening\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebkom%2Fcensus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebkom%2Fcensus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebkom%2Fcensus/lists"}