{"id":27941841,"url":"https://github.com/oleggromov/treeker","last_synced_at":"2026-05-03T21:31:43.304Z","repository":{"id":148520989,"uuid":"155288574","full_name":"oleggromov/treeker","owner":"oleggromov","description":"A fake JSX (string) generator 🤖","archived":false,"fork":false,"pushed_at":"2018-10-29T22:28:13.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-29T05:33:05.360Z","etag":null,"topics":["fake","jsx","react","testing"],"latest_commit_sha":null,"homepage":"","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/oleggromov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2018-10-29T22:16:02.000Z","updated_at":"2018-10-30T17:28:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"8b55c8b5-9597-4b8a-ae88-c19515416236","html_url":"https://github.com/oleggromov/treeker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oleggromov/treeker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleggromov%2Ftreeker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleggromov%2Ftreeker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleggromov%2Ftreeker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleggromov%2Ftreeker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oleggromov","download_url":"https://codeload.github.com/oleggromov/treeker/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oleggromov%2Ftreeker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32586187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: 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":["fake","jsx","react","testing"],"created_at":"2025-05-07T11:23:53.714Z","updated_at":"2026-05-03T21:31:43.291Z","avatar_url":"https://github.com/oleggromov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Treeker - a fake JSX generator 🤖\n\nHave you ever wanted to generate a _fake_ yet looking like real JSX tree for some testing purposes?\n\nI faced the issue when I decided to work on a server-side renderer that works with React and understood that I need some fake components with either deep nesting or large number of children. Quick look-up on the internet yielded nothing so I decided to create a simple tool on my own.\n\n## usage\n\nFirst you will need to install it with either `yarn global add treeker` or `npm install -g treeker`. Now you can use it it like this:\n\n`treeker --depth=3 --children=2 --root=App --node=Pane,Stuff,Container --leaf=Button,Paragraph`\n\n```(jsx)\n\u003cApp\u003e\n  \u003cPane\u003e\n    Pet partly clothing similar\n    \u003cContainer\u003e\n      Build rough pipe enough\n      \u003cParagraph\u003e\n        Dry ago\n      \u003c/Paragraph\u003e\n    \u003c/Container\u003e\n  \u003c/Pane\u003e\n  \u003cContainer\u003e\n    Plant whenever young foot\n    \u003cStuff\u003e\n      Twenty length whale mirror happened\n      \u003cParagraph\u003e\n        Family here curve community public\n      \u003c/Paragraph\u003e\n      \u003cButton\u003e\n        Garden station\n      \u003c/Button\u003e\n    \u003c/Stuff\u003e\n    \u003cContainer\u003e\n      Many process everybody gasoline result\n      \u003cParagraph\u003e\n        Gave\n      \u003c/Paragraph\u003e\n      \u003cButton\u003e\n        Longer motion quietly boat sentence\n      \u003c/Button\u003e\n    \u003c/Container\u003e\n  \u003c/Container\u003e\n\u003c/App\u003e\n```\n\nTreeker will generate a fake JSX tree (string, actually) for you with:\n\n- a root component you set with `--root` parameter\n- nesting depth that is what you specified exactly with `--depth`\n- one of a \"node\" components set with `--node`\n- and leaf components set with `--leaf`\n- where each of nodes has a number of children from 1 to `--children`\n\n## License\n\nMIT License\n\nCopyright (c) 2018 Oleg Gromov\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleggromov%2Ftreeker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foleggromov%2Ftreeker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foleggromov%2Ftreeker/lists"}