{"id":18050468,"url":"https://github.com/validark/rbxts-object-to-tree","last_synced_at":"2025-04-10T12:43:10.153Z","repository":{"id":49597756,"uuid":"194208729","full_name":"Validark/rbxts-Object-To-Tree","owner":"Validark","description":"Converts an Object to a tree","archived":false,"fork":false,"pushed_at":"2022-11-10T16:58:05.000Z","size":149,"stargazers_count":8,"open_issues_count":7,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T11:38:11.641Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/Validark.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}},"created_at":"2019-06-28T04:57:00.000Z","updated_at":"2025-01-29T13:31:04.000Z","dependencies_parsed_at":"2023-01-23T13:15:52.842Z","dependency_job_id":null,"html_url":"https://github.com/Validark/rbxts-Object-To-Tree","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":"roblox-ts/demo-model","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Validark%2Frbxts-Object-To-Tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Validark%2Frbxts-Object-To-Tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Validark%2Frbxts-Object-To-Tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Validark%2Frbxts-Object-To-Tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Validark","download_url":"https://codeload.github.com/Validark/rbxts-Object-To-Tree/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248217160,"owners_count":21066634,"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-10-30T21:11:56.655Z","updated_at":"2025-04-10T12:43:10.136Z","avatar_url":"https://github.com/Validark.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# roblox-ts object-to-tree\n\nYou can install this [plugin here](https://www.roblox.com/library/3379119778/rbxts-object-to-tree).\n\n[![](https://user-images.githubusercontent.com/15217173/63229057-a99d0680-c1c1-11e9-90b4-ee973e522a81.png)](https://www.roblox.com/library/3379119778/rbxts-object-to-tree)\n\nSimply select the instance you want converted into a tree, and click on the plugin to generate its tree.\n\nOutputted trees look like so:\n\n```ts\ntype SpawnLocation = SpawnLocation \u0026 {\n\tDecal: Decal;\n\tData: Configuration \u0026 {\n\t\tNumSpawns: IntValue;\n\t\tGiveForceField: BoolValue;\n\t};\n}\n```\n\nThe plugin also supports overriding services which are browsable in Roblox Studio. For example:\n\n```ts\ninterface Workspace extends Model {\n\tTerrain: Terrain;\n\tCamera: Camera;\n\tBaseplate: Part \u0026 {\n\t\tBFC: BoolValue;\n\t};\n\tSpawnLocation: SpawnLocation \u0026 {\n\t\tDecal: Decal;\n\t\tData: Configuration \u0026 {\n\t\t\tNumSpawns: IntValue;\n\t\t\tGiveForceField: BoolValue;\n\t\t};\n\t};\n}\n```\n\nThen, anywhere you access `Workspace`, you can access the defined members!\n\n```ts\nconst workspace = game.GetService(\"Workspace\");\nprint(++workspace.SpawnLocation.Data.NumSpawns.Value);\n```\n\nTo automatically insert these files into your project open up your project and run `npx io-serve`, then click the plugin in studio to generate your files.\n\n\n###### Note: This plugin in no way guarantees that objects defined in TS this way will exist at run-time. Scripts can rename instances, move them around, or delete them. Don't do those things if you want the definition to be valid.\n\n###### Link to io-serve [here](https://www.npmjs.com/package/io-serve)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalidark%2Frbxts-object-to-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvalidark%2Frbxts-object-to-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvalidark%2Frbxts-object-to-tree/lists"}