{"id":16737344,"url":"https://github.com/yasaichi/hypernova-plugin-server-stacktrace","last_synced_at":"2025-04-05T06:22:18.611Z","repository":{"id":46541942,"uuid":"163509980","full_name":"yasaichi/hypernova-plugin-server-stacktrace","owner":"yasaichi","description":":pencil: Hypernova plugin for logging a stack trace of error on server-side rendering","archived":false,"fork":false,"pushed_at":"2023-12-15T02:24:20.000Z","size":406,"stargazers_count":2,"open_issues_count":6,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-03-15T11:04:55.139Z","etag":null,"topics":["hypernova","logging"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/yasaichi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-29T12:39:42.000Z","updated_at":"2023-03-10T09:33:35.000Z","dependencies_parsed_at":"2024-10-13T00:25:59.009Z","dependency_job_id":"67c1bd06-b30d-4a39-b6d4-bba084f97989","html_url":"https://github.com/yasaichi/hypernova-plugin-server-stacktrace","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"538cf16d51e75597a8a198edae1632c20333f7cd"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasaichi%2Fhypernova-plugin-server-stacktrace","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasaichi%2Fhypernova-plugin-server-stacktrace/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasaichi%2Fhypernova-plugin-server-stacktrace/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yasaichi%2Fhypernova-plugin-server-stacktrace/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yasaichi","download_url":"https://codeload.github.com/yasaichi/hypernova-plugin-server-stacktrace/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247295940,"owners_count":20915551,"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":["hypernova","logging"],"created_at":"2024-10-13T00:25:55.648Z","updated_at":"2025-04-05T06:22:18.589Z","avatar_url":"https://github.com/yasaichi.png","language":"TypeScript","readme":"# hypernova-plugin-server-stacktrace\n\n[![npm version](https://badge.fury.io/js/hypernova-plugin-server-stacktrace.svg)](https://badge.fury.io/js/hypernova-plugin-server-stacktrace)\n[![Build Status](https://travis-ci.org/yasaichi/hypernova-plugin-server-stacktrace.svg?branch=master)](https://travis-ci.org/yasaichi/hypernova-plugin-server-stacktrace)\n[![Maintainability](https://api.codeclimate.com/v1/badges/0240cbf7e225c497a555/maintainability)](https://codeclimate.com/github/yasaichi/hypernova-plugin-server-stacktrace/maintainability)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/0240cbf7e225c497a555/test_coverage)](https://codeclimate.com/github/yasaichi/hypernova-plugin-server-stacktrace/test_coverage)\n\n`hypernova-plugin-server-stacktrace` is a small plugin for [Hypernova](https://github.com/airbnb/hypernova) especially in production.\nThe plugin enables you to log a stack trace when the server fails to render components.\n\n## Installation\n\nFor npm:\n\n```sh\nnpm install hypernova-plugin-server-stacktrace --save\n```\n\n## Usage\n\nAdd the plugin object to `plugins` array of the server configuration:\n\n```js\nconst hypernova = require('hypernova/server');\nconst ServerStacktracePlugin = require('hypernova-plugin-server-stacktrace');\n\nhypernova({\n  plugins: [new ServerStacktracePlugin()]\n});\n```\n\nThis will output errors to STDOUT as follows:\n\n```\n2019-01-01T08:43:00.647Z - error: TypeError: foo.bar is not a function\n    at Top (/pass/to/build/pages/webpack:/src/pages/index.tsx:16:1)\n    at processChild (/pass/to/node_modules/react-dom/cjs/react-dom-server.node.development.js:2458:14)\n    at resolve (/pass/to/node_modules/react-dom/cjs/react-dom-server.node.development.js:2384:5)\n    at ReactDOMServerRenderer.render (/pass/to/node_modules/react-dom/cjs/react-dom-server.node.development.js:2706:22)\n    at ReactDOMServerRenderer.read (/pass/to/node_modules/react-dom/cjs/react-dom-server.node.development.js:2680:23)\n    at Object.renderToStaticMarkup (/pass/to/node_modules/react-dom/cjs/react-dom-server.node.development.js:3082:25)\n    at /pass/to/build/pages/webpack:/src/lib/hypernova-react.ts:48:1\n    at /pass/to/node_modules/hypernova/lib/utils/BatchManager.js:190:18\n    at tryCatcher (/pass/to/node_modules/bluebird/js/release/util.js:16:23)\n    at Promise._settlePromiseFromHandler (/pass/to/node_modules/bluebird/js/release/promise.js:512:31)\n```\n\nNote that you're able to customize the log format and destination by `logger` or\n`loggerInstance`. For further information, please see [the section on server configuration\noptions](https://github.com/airbnb/hypernova#server).\n\n## Contributing\n\nYou should follow the steps below.\n\n1. [Fork the repository](https://help.github.com/articles/fork-a-repo/)\n2. Create a feature branch: `git checkout -b add-new-feature`\n3. Commit your changes: `git commit -am 'Add new feature'`\n4. Push the branch: `git push origin add-new-feature`\n5. [Send us a pull request](https://help.github.com/articles/about-pull-requests/)\n\n## License\n\nThe library is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasaichi%2Fhypernova-plugin-server-stacktrace","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyasaichi%2Fhypernova-plugin-server-stacktrace","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyasaichi%2Fhypernova-plugin-server-stacktrace/lists"}