{"id":25198720,"url":"https://github.com/feathers-studio/ts-parser","last_synced_at":"2025-10-03T15:15:08.829Z","repository":{"id":249664566,"uuid":"832080690","full_name":"feathers-studio/ts-parser","owner":"feathers-studio","description":"A minimal TypeScript parser","archived":false,"fork":false,"pushed_at":"2024-08-23T23:54:50.000Z","size":383,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-04T18:13:14.984Z","etag":null,"topics":["arcsecond","codegen","parser","parser-combinators","typescript"],"latest_commit_sha":null,"homepage":"https://parsers.thefeathers.in","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/feathers-studio.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-07-22T10:08:54.000Z","updated_at":"2024-12-10T18:27:45.000Z","dependencies_parsed_at":"2024-08-14T15:59:05.916Z","dependency_job_id":"b43f65d1-2ffd-4a2d-800b-3fa501378af8","html_url":"https://github.com/feathers-studio/ts-parser","commit_stats":null,"previous_names":["feathers-studio/ts-parser"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/feathers-studio/ts-parser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feathers-studio%2Fts-parser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feathers-studio%2Fts-parser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feathers-studio%2Fts-parser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feathers-studio%2Fts-parser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/feathers-studio","download_url":"https://codeload.github.com/feathers-studio/ts-parser/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/feathers-studio%2Fts-parser/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272077690,"owners_count":24869288,"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","status":"online","status_checked_at":"2025-08-25T02:00:12.092Z","response_time":1107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["arcsecond","codegen","parser","parser-combinators","typescript"],"created_at":"2025-02-10T03:18:39.633Z","updated_at":"2025-10-03T15:15:08.769Z","avatar_url":"https://github.com/feathers-studio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ambient TS Parser\n\nThis is a very minimal TS Parser that can be used to parse d.ts files and extract the type information from them.\n\nIt is not a full-fledged parser and does not support all the features of TypeScript. It is designed to be used by [Ambience](https://github.com/feathers-studio/ambience) to parse lib files.\n\n## Usage\n\n```ts\nimport { parse } from \"ts-parser/parse/index.ts\";\n\nconst source = `\ninterface Foo {\n\tbar: string;\n}\n`;\n\nconst ast = parse(source);\n```\n\n\u003e [!NOTE]\n\u003e This is not a particularly fast parser, but it is fast enough and structured to be very convenient for [Ambience](https://github.com/feathers-studio/ambience).\n\u003e\n\u003e Work has been done to make parsing more reasonable by vendoring Arcsecond and optimising it for our usecase (~35x faster parsing with our fork).\n\u003e\n\u003e Further work will be done in the future.\n\u003e\n\u003e Benchmark, parsing `lib.dom.d.ts`:\n\u003e\n\u003e ```\n\u003e = Bun  ================\n\u003e\n\u003e   Time (mean ± σ):     11.850 s ±  0.130 s    [User: 12.432 s, System: 0.543 s]\n\u003e   Range (min … max):   11.737 s … 12.177 s    10 runs\n\u003e\n\u003e = Deno ================\n\u003e\n\u003e   Time (mean ± σ):      5.258 s ±  0.067 s    [User: 5.814 s, System: 0.257 s]\n\u003e   Range (min … max):    5.141 s …  5.351 s    10 runs\n\u003e\n\u003e = Node ================\n\u003e\n\u003e   Time (mean ± σ):     12.571 s ±  0.203 s    [User: 13.122 s, System: 0.310 s]\n\u003e   Range (min … max):   12.229 s … 12.891 s    10 runs\n\u003e\n\u003e =======================\n\u003e\n\u003e Summary\n\u003e   'deno run -A test.ts' ran\n\u003e     2.25 ± 0.04 times faster than 'bun run test.ts'\n\u003e     2.39 ± 0.05 times faster than 'tsx test.ts'\n\u003e\n\u003e ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeathers-studio%2Fts-parser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffeathers-studio%2Fts-parser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffeathers-studio%2Fts-parser/lists"}