{"id":24383283,"url":"https://github.com/firstandthird/hapi-dashboard","last_synced_at":"2025-04-11T01:12:13.098Z","repository":{"id":21420571,"uuid":"24738672","full_name":"firstandthird/hapi-dashboard","owner":"firstandthird","description":"Hapi plugin for displaying metrics on a dashboard","archived":false,"fork":false,"pushed_at":"2017-05-17T06:09:57.000Z","size":73,"stargazers_count":2,"open_issues_count":5,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-11T01:12:08.753Z","etag":null,"topics":["hapi-plugin"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/firstandthird.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2014-10-02T22:11:18.000Z","updated_at":"2024-01-18T11:02:57.000Z","dependencies_parsed_at":"2022-08-21T09:41:03.190Z","dependency_job_id":null,"html_url":"https://github.com/firstandthird/hapi-dashboard","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fhapi-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fhapi-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fhapi-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/firstandthird%2Fhapi-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/firstandthird","download_url":"https://codeload.github.com/firstandthird/hapi-dashboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248322571,"owners_count":21084337,"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":["hapi-plugin"],"created_at":"2025-01-19T10:14:05.587Z","updated_at":"2025-04-11T01:12:13.076Z","avatar_url":"https://github.com/firstandthird.png","language":"JavaScript","readme":"hapi-dashboard\n==============\n\nHapi plugin for displaying metrics on a dashboard\n\n\n## Installation\n\n`npm install --save hapi-dashboard`\n\n## Usage\n\n```js\nserver.pack.register([\n  { plugin: require('hapi-dashboard'), options: {\n    //defaults shown below\n    endpoint: '/dashboard'\n    dashboards: {},\n    ttl: 60*1000, //time to cache responses. 60 seconds\n    concurrent: 20, //max metrics to process at once\n    password: 'something', //password used to access dashboards\n\tfavicon: 'favicon.png' // Also used as home screen icon for ios\n  }}\n], function(err) {\n});\n```\n\n## Dashboards Object\n\nDashboards object should look something like this:\n\n```js\n{\n  'dashboard-1': {\n    name: 'Dashboard 1',\n    metrics: {\n      loggedIn: {\n        value: function(server, done) {\n          //perform some async call\n          server.plugins.db.metrics.loggedInCount(function(err, result) {\n            done(null, {\n            name: 'Number of times a user logged in',\n            value: result.total\n          });\n          }\n        },\n        ttl: 60\n      }\n    }\n  }\n}\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fhapi-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffirstandthird%2Fhapi-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffirstandthird%2Fhapi-dashboard/lists"}