{"id":15894662,"url":"https://github.com/clayrisser/xray-first-react","last_synced_at":"2026-05-05T12:32:39.535Z","repository":{"id":57402194,"uuid":"158300285","full_name":"clayrisser/xray-first-react","owner":"clayrisser","description":"build react applications using the xray first design approach","archived":false,"fork":false,"pushed_at":"2023-07-10T06:14:15.000Z","size":989,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-03T09:23:34.167Z","etag":null,"topics":["component","development","react","strategy","ui","xray","xray-first-design"],"latest_commit_sha":null,"homepage":"https://codejam.ninja","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/clayrisser.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"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-11-19T22:51:01.000Z","updated_at":"2023-07-18T09:09:16.000Z","dependencies_parsed_at":"2024-10-06T08:41:06.922Z","dependency_job_id":"188c4624-f1c8-4efd-b4d8-90e891bccb62","html_url":"https://github.com/clayrisser/xray-first-react","commit_stats":null,"previous_names":["codejamninja/xray-first-react"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/clayrisser/xray-first-react","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clayrisser%2Fxray-first-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clayrisser%2Fxray-first-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clayrisser%2Fxray-first-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clayrisser%2Fxray-first-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/clayrisser","download_url":"https://codeload.github.com/clayrisser/xray-first-react/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/clayrisser%2Fxray-first-react/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32649551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["component","development","react","strategy","ui","xray","xray-first-design"],"created_at":"2024-10-06T08:40:56.493Z","updated_at":"2026-05-05T12:32:39.510Z","avatar_url":"https://github.com/clayrisser.png","language":"JavaScript","funding_links":["https://liberapay.com/codejamninja/donate"],"categories":[],"sub_categories":[],"readme":"# xray-first-react\n\n[![GitHub stars](https://img.shields.io/github/stars/codejamninja/xray-first-react.svg?style=social\u0026label=Stars)](https://github.com/codejamninja/xray-first-react)\n\n\u003e build react applications using the xray first design approach\n\nPlease ★ this repo if you found it useful ★ ★ ★\n\n![](assets/xray-first-react.png)\n\n## Features\n\n* Automatically generates colors to differentiate sections\n* Option to hide content to help zero in on styling\n* Options to show labels of sections\n\n\n## Demo\n\nView live demo at [codejamninja.github.io/xray-first-react](https://codejamninja.github.io/xray-first-react/)\n\n\n## Installation\n\n```sh\nnpm install --save xray-first-react\n```\n\n\n## Dependencies\n\n* [NodeJS](https://nodejs.org)\n\n\n## Usage\n\n```js\nimport React, { Component } from 'react';\nimport { XrayProvider, Xray } from 'xray-first-react';\n\nconst { env } = process;\n\nexport default class App extends Component {\n  render() {\n    return (\n      \u003cXrayProvider enabled={env.NODE_ENV === 'true'}\u003e\n        \u003cXray label=\"content\"\u003e\n          \u003cdiv\u003e\n            Hello, world\n          \u003c/div\u003e\n        \u003c/Xray\u003e\n      \u003c/XrayProvider\u003e\n    )\n  }\n}\n```\n\n\n## Support\n\nSubmit an [issue](https://github.com/codejamninja/xray-first-react/issues/new)\n\n\n## Screenshots\n\n[Contribute](https://github.com/codejamninja/xray-first-react/blob/master/CONTRIBUTING.md) a screenshot\n\n\n## Contributing\n\nReview the [guidelines for contributing](https://github.com/codejamninja/xray-first-react/blob/master/CONTRIBUTING.md)\n\n\n## License\n\n[MIT License](https://github.com/codejamninja/xray-first-react/blob/master/LICENSE)\n\n[Jam Risser](https://codejam.ninja) © 2018\n\n\n## Changelog\n\nReview the [changelog](https://github.com/codejamninja/xray-first-react/blob/master/CHANGELOG.md)\n\n\n## Credits\n\n* [Jam Risser](https://codejam.ninja) - Author\n\n\n## Support on Liberapay\n\nA ridiculous amount of coffee ☕ ☕ ☕ was consumed in the process of building this project.\n\n[Add some fuel](https://liberapay.com/codejamninja/donate) if you'd like to keep me going!\n\n[![Liberapay receiving](https://img.shields.io/liberapay/receives/codejamninja.svg?style=flat-square)](https://liberapay.com/codejamninja/donate)\n[![Liberapay patrons](https://img.shields.io/liberapay/patrons/codejamninja.svg?style=flat-square)](https://liberapay.com/codejamninja/donate)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclayrisser%2Fxray-first-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclayrisser%2Fxray-first-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclayrisser%2Fxray-first-react/lists"}