{"id":26660609,"url":"https://github.com/codevideo/codevideo-dynamic-ast","last_synced_at":"2025-03-25T12:18:47.556Z","repository":{"id":261506639,"uuid":"884495209","full_name":"codevideo/codevideo-dynamic-ast","owner":"codevideo","description":"Dynamically identify and statically analyze an arbitrary amount of source code files of any programming language.","archived":false,"fork":false,"pushed_at":"2025-03-24T11:18:27.000Z","size":119,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T12:31:33.706Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codevideo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2024-11-06T21:19:30.000Z","updated_at":"2025-03-24T11:18:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"2407ba23-1bb3-47f3-883f-a90b86dde079","html_url":"https://github.com/codevideo/codevideo-dynamic-ast","commit_stats":null,"previous_names":["codevideo/codevideo-dynamic-ast"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codevideo%2Fcodevideo-dynamic-ast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codevideo%2Fcodevideo-dynamic-ast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codevideo%2Fcodevideo-dynamic-ast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codevideo%2Fcodevideo-dynamic-ast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codevideo","download_url":"https://codeload.github.com/codevideo/codevideo-dynamic-ast/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245458712,"owners_count":20618697,"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":"2025-03-25T12:18:46.429Z","updated_at":"2025-03-25T12:18:47.528Z","avatar_url":"https://github.com/codevideo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `codevideo-dynamic-ast`\n\nParse and validate code from multiple programming languages using their native compilers - all through a single unified interface.\n\n## Installation\n\n```bash\nnpm install codevideo-dynamic-ast\n```\n\n## Usage\n\nProvide an array of one or more `IFileSource` objects and get an array of `ICompileResult` back.\n\n```typescript\nimport { IFileSource, ICompileResult } from '@fullstackcraftllc/codevideo-types';\nimport { parseProject } from '@fullstackcraftllc/codevideo-dynamic-ast';\n\nconst files: Array\u003cIFileSource\u003e = [\n    { path: 'src/index.ts', content: '...' },\n    { path: 'src/utils/someutil.ts', content: '...' },\n    { path: 'src/components/MyComponent.tsx', content: '...' }\n];\n\nconst results: Array\u003cICompileResult\u003e = await compileProject(files);\nconsole.log(results);\n\n// Output:\n// {\n//     \"projects\": [\n//         {\n//             \"language\": \"TypeScript\"\n//             \"errors\": [{\n//                 \"file\": \"src/index.ts\",\n//                 \"message\": \"...\"\n//                 \"line\": 1,\n//                 \"column\": 1,\n//                 \"code\": \"2339\"\n//             }],\n//         },\n//     ]\n// }\n```\n\n## Supported Languages\n\n- TypeScript (using ts-morph)\n- C# (using dotnet CLI)\n- Go (using go CLI)\n\n## Requirements\n\n- Node.js \u003e= 16\n- TypeScript \u003e= 4.0.0\n- For C# parsing: .NET SDK\n- For Go parsing: Go toolchain\n\n## Development\n\nInstall dependencies:\n\n```bash\nnpm install\n```\n\nBuild:\n\n```bash\nnpm run build\n```\n\nTest:\n\n```\nnpm test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodevideo%2Fcodevideo-dynamic-ast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodevideo%2Fcodevideo-dynamic-ast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodevideo%2Fcodevideo-dynamic-ast/lists"}