{"id":18429428,"url":"https://github.com/bigpipe/diagnostics-pagelet","last_synced_at":"2025-10-16T06:48:53.227Z","repository":{"id":25026079,"uuid":"28445507","full_name":"bigpipe/diagnostics-pagelet","owner":"bigpipe","description":"Default diagnostics Pagelet used by the 404 and 500 error Pagelets","archived":false,"fork":false,"pushed_at":"2020-10-26T13:16:36.000Z","size":10,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-18T07:39:55.707Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/bigpipe.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-12-24T10:25:35.000Z","updated_at":"2020-10-26T13:16:39.000Z","dependencies_parsed_at":"2022-08-23T11:31:00.711Z","dependency_job_id":null,"html_url":"https://github.com/bigpipe/diagnostics-pagelet","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/bigpipe%2Fdiagnostics-pagelet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2Fdiagnostics-pagelet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2Fdiagnostics-pagelet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2Fdiagnostics-pagelet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigpipe","download_url":"https://codeload.github.com/bigpipe/diagnostics-pagelet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248788868,"owners_count":21161726,"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-11-06T05:17:10.902Z","updated_at":"2025-10-16T06:48:48.193Z","avatar_url":"https://github.com/bigpipe.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Diagnostics Pagelet\n\n[![Version npm][version]](http://browsenpm.org/package/diagnostics-pagelet)[![Build Status][build]](https://travis-ci.org/bigpipe/diagnostics-pagelet)[![Dependencies][david]](https://david-dm.org/bigpipe/diagnostics-pagelet)[![Coverage Status][cover]](https://coveralls.io/r/bigpipe/diagnostics-pagelet?branch=master)\n\n[version]: http://img.shields.io/npm/v/diagnostics-pagelet.svg?style=flat-square\n[build]: http://img.shields.io/travis/bigpipe/diagnostics-pagelet/master.svg?style=flat-square\n[david]: https://img.shields.io/david/bigpipe/diagnostics-pagelet.svg?style=flat-square\n[cover]: http://img.shields.io/coveralls/bigpipe/diagnostics-pagelet/master.svg?style=flat-square\n\nDefault diagnostics Pagelet used by the diagnostics and 500 Pagelet.\nThis Pagelet is responsible for displaying additional diagnostics. By\ndefault the diagnostics Pagelet is provided with BigPipe. However, if you\nneed a custom diagnostics you can extend this Pagelet. For example to change\nthe default view.\n\n## Installation\n\nThe diagnostics Pagelet is distributed through the node package manager (npm).\n\n```\nnpm install --save diagnostics-pagelet\n```\n\n## Support\n\nCreate an issue. Every question you have is a bug in our\ndocumentation and that should be corrected. So please, don't hesitate to create\nissues, many of them.\n\n### Example\n\nIn this example the diagnostics Pagelet is extended with a custom view, which\nin turn is provided to a custom 500 Pagelet. BigPipe will automatically\ndiscover this extended version of the 500 Pagelet if it is provided to BigPipe\nalongside the other pagelets.\n\n```js\n'use strict';\n\n//\n// Extend 500 Pagelet with custom Diagnostics Pagelet.\n//\nvar Fivehundred = require('500-pagelet').extend({\n  pagelets: {\n    diagnostics: require('diagnostics-pagelet').extend({\n      view: '/path/to/my/custom-view.html'\n    })\n  }\n});\n```\n\n## Debugging\n\nThe library makes use the `diagnostics` module from Pagelet.\nTo display the diagnostics Pagelet specific debug messages, supply the\nfollowing before running the program or\n\n```bash\nDEBUG=pagelet:diagnostics node ...\n```\n\n## Testing\n\nTests are automatically run on [Travis CI] to ensure that everything is\nfunctioning as intended. For local development we automatically install a\n[pre-commit] hook that runs the `npm test` command every time you commit changes.\nThis ensures that we don't push any broken code in to this project.\n\nTo run tests locally, make sure the development dependencies are installed.\n\n```bash\nnpm test\nnpm run coverage\n```\n\n## License\n\ndiagnostics-pagelet is released under MIT.\n\n[Travis CI]: http://travisci.org\n[Temper]: http://github.com/bigpipe/temper\n[pre-commit]: http://github.com/observing/pre-commit\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigpipe%2Fdiagnostics-pagelet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigpipe%2Fdiagnostics-pagelet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigpipe%2Fdiagnostics-pagelet/lists"}