{"id":18429424,"url":"https://github.com/bigpipe/404-pagelet","last_synced_at":"2025-06-22T22:02:14.728Z","repository":{"id":25025445,"uuid":"28444870","full_name":"bigpipe/404-pagelet","owner":"bigpipe","description":"Default 404 Pagelet used if the router cannot dispatch to any route","archived":false,"fork":false,"pushed_at":"2020-10-26T13:41:31.000Z","size":12,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-13T05:42:57.489Z","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:00:58.000Z","updated_at":"2020-10-26T13:41:33.000Z","dependencies_parsed_at":"2022-08-23T11:30:58.651Z","dependency_job_id":null,"html_url":"https://github.com/bigpipe/404-pagelet","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/bigpipe/404-pagelet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2F404-pagelet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2F404-pagelet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2F404-pagelet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2F404-pagelet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bigpipe","download_url":"https://codeload.github.com/bigpipe/404-pagelet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bigpipe%2F404-pagelet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261374325,"owners_count":23148970,"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.748Z","updated_at":"2025-06-22T22:02:09.707Z","avatar_url":"https://github.com/bigpipe.png","language":"JavaScript","readme":"# 404 Pagelet\n\n[![Version npm][version]](http://browsenpm.org/package/404-pagelet)[![Build Status][build]](https://travis-ci.org/bigpipe/404-pagelet)[![Dependencies][david]](https://david-dm.org/bigpipe/404-pagelet)[![Coverage Status][cover]](https://coveralls.io/r/bigpipe/404-pagelet?branch=master)\n\n[version]: http://img.shields.io/npm/v/404-pagelet.svg?style=flat-square\n[build]: http://img.shields.io/travis/bigpipe/404-pagelet/master.svg?style=flat-square\n[david]: https://img.shields.io/david/bigpipe/404-pagelet.svg?style=flat-square\n[cover]: http://img.shields.io/coveralls/bigpipe/404-pagelet/master.svg?style=flat-square\n\nThis Pagelet is responsible for displaying server errors. By\ndefault the 404 Pagelet is provided with BigPipe. However, if you\nneed a custom 404 you can extend this Pagelet. For example to change\nthe default view.\n\n## Installation\n\nThe 404 Pagelet is distributed through the node package manager (npm).\n\n```\nnpm install --save 404-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 404 Pagelet is extended with a custom view.\nBigPipe will automatically discover this extended version\nif it is provided to BigPipe alongside the other pagelets.\n\n```js\n'use strict';\n\n//\n// Extend the 404 Pagelet with a custom view.\n//\nvar Fourofour = require('404-pagelet').extend({\n  view: '/path/to/my/custom-view.html'\n});\n\n//\n// Initialise BigPipe server.\n//\nvar pipe = require('bigpipe').createServer(2000, {\n  pagelets: [ Fourofour, ... ]\n});\n```\n\n## Debugging\n\nThe library makes use the `diagnostics` module from Pagelet.\nTo display the 404 Pagelet specific debug messages, supply the\nfollowing before running the program or\n\n```bash\nDEBUG=pagelet:404 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\n404-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","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigpipe%2F404-pagelet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbigpipe%2F404-pagelet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbigpipe%2F404-pagelet/lists"}