{"id":21399704,"url":"https://github.com/programandoconro/type-tree","last_synced_at":"2025-08-22T05:43:50.401Z","repository":{"id":258038144,"uuid":"860797039","full_name":"programandoconro/type-tree","owner":"programandoconro","description":"Create a tree of your nested types for better visualization and understanding","archived":false,"fork":false,"pushed_at":"2024-11-14T00:37:36.000Z","size":22577,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T02:43:18.583Z","etag":null,"topics":["json","trees","ts-morph","type-tree","types"],"latest_commit_sha":null,"homepage":"","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/programandoconro.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}},"created_at":"2024-09-21T07:32:45.000Z","updated_at":"2024-11-14T00:37:39.000Z","dependencies_parsed_at":"2024-10-22T07:39:35.504Z","dependency_job_id":null,"html_url":"https://github.com/programandoconro/type-tree","commit_stats":null,"previous_names":["programandoconro/type-tree"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programandoconro%2Ftype-tree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programandoconro%2Ftype-tree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programandoconro%2Ftype-tree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/programandoconro%2Ftype-tree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/programandoconro","download_url":"https://codeload.github.com/programandoconro/type-tree/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243892976,"owners_count":20364807,"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":["json","trees","ts-morph","type-tree","types"],"created_at":"2024-11-22T15:16:17.688Z","updated_at":"2025-03-16T15:48:57.998Z","avatar_url":"https://github.com/programandoconro.png","language":"TypeScript","readme":"# Type-Tree\n\n\u003e Takes the root path of your ts project and serves `json` file with extracted types and interfaces from ts files. It facilitates the visualization of nested types, specially when types are imported from different files. You can see it as a type tree creator for your types.\n\n## How to use it:\n\n![browser app](./pics/type-tree-json.png)\n\nThis project was created using [Bun](https://bun.sh), and [ts-morph](https://ts-morph.com/).\nFollow the next steps to run it locally.\n\n### Install dependencies:\n\nNote: You can use `npx bun` if you do not want to install bun.\n\n```bash\nbun install\n// or npx bun install\n```\n\n### Run\n\n```bash\nbun run start --root PATH_TO_THE_ROOT_OF_YOUR_TS_PROJECT\n// or npx bun run start --root PATH_TO_THE_ROOT_OF_YOUR_TS_PROJECT\n```\n\nWhere `--root` should have the root path to your project. This necessary to find the `tsconfig.json` file, required for the program to properly work. This will default `./` if not provided.\n\n### View type tree\n\nGo to http://localhost:3001 to see the root of your project directory, then navigate to the ts file that you want to extract types from. It will create a type tree in json format.\n\nNote: You can also set a different `PORT` env variable if 3001 is not available.\n\nIt is required to use a json viewer browser extension for better visualization. For example, [JSON Formatter](https://chromewebstore.google.com/detail/json-formatter/bcjindcccaagfpapjjmafapmmgkkhgoa?hl=en) works well for me.\n\n### Contributions\n\nPRs are always welcome. Please consider adding and running tests for better development experience.\n\n### Test\n\n```bash\nbun run test\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogramandoconro%2Ftype-tree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprogramandoconro%2Ftype-tree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprogramandoconro%2Ftype-tree/lists"}