https://github.com/gvergnaud/ts-pattern
branching conditions exhaustive inference javascript matching pattern pattern-matching ts type-inference typescript
Score: 30.1129333169967
Last synced: 1 day ago
JSON representation
Repository metadata:
🎨 The exhaustive Pattern Matching library for TypeScript, with smart type inference.
- Host: GitHub
- URL: https://github.com/gvergnaud/ts-pattern
- Owner: gvergnaud
- License: mit
- Created: 2020-05-24T16:41:02.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2026-10-14T08:48:03.000Z (20 days ago)
- Last Synced: 2026-10-29T08:35:32.825Z (5 days ago)
- Topics: branching, conditions, exhaustive, inference, javascript, matching, pattern, pattern-matching, ts, type-inference, typescript
- Language: TypeScript
- Homepage:
- Size: 2.84 MB
- Stars: 15,206
- Watchers: 27
- Forks: 179
- Open Issues: 84
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Roadmap: docs/roadmap.md
-
Funding:
- Github: gvergnaud
Owner metadata:
- Name: Gabriel Vergnaud
- Login: gvergnaud
- Email:
- Kind: user
- Description: Type-level TypeScript nerd — Author of type-level-typescript.com, TS-Pattern, HOTScript — Building data visualizations @DataDog
- Website: https://type-level-typescript.com
- Location: New York
- Twitter: GabrielVergnaud
- Company: @DataDog
- Icon url: https://avatars.githubusercontent.com/u/9265418?u=ee590d204f4850ac4db96126e4df1e33d89e9783&v=4
- Repositories: 51
- Last Synced at: 2024-05-01T10:37:30.256Z
- Profile URL: https://github.com/gvergnaud
GitHub Events
Total
- Create event: 12
- Delete event: 8
- Fork event: 36
- Issue comment event: 47
- Issues event: 33
- Pull request event: 38
- Pull request review comment event: 8
- Pull request review event: 9
- Push event: 48
- Release event: 6
- Watch event: 2053
- Total: 2298
Last Year
- Create event: 1
- Delete event: 5
- Fork event: 3
- Issue comment event: 3
- Issues event: 1
- Pull request event: 13
- Pull request review comment event: 1
- Pull request review event: 2
- Push event: 4
- Watch event: 179
- Total: 212
Committers metadata
Last synced: 2 days ago
Total Commits: 971
Total Committers: 28
Avg Commits per committer: 34.679
Development Distribution Score (DDS): 0.089
Commits in past year: 24
Committers in past year: 5
Avg Commits per committer in past year: 4.8
Development Distribution Score (DDS) in past year: 0.625
| Name | Commits | |
|---|---|---|
| gvergnaud | g****d@g****m | 885 |
| dependabot[bot] | 4****] | 31 |
| Michael Rutter | m****r@p****m | 11 |
| Gavin Kline | g****3@g****m | 5 |
| changwoolab | c****1@n****m | 5 |
| JUSTIVE | b****9@g****m | 5 |
| Ayc0 | a****j@g****m | 3 |
| Guyllian Gomez | g****z@d****m | 3 |
| Eric Crosson | E****n | 3 |
| Philipp Miller | p****r | 2 |
| Adam C Hamlin | a****n@g****m | 1 |
| Colin McDonnell | c****4@g****m | 1 |
| Grigoris Christainas | g****s@g****m | 1 |
| Hasan Efe Uygun | h****n@g****m | 1 |
| Ikko Ashimine | e****r@g****m | 1 |
| Jay Sherby | 1****k | 1 |
| Jonas Kello | j****o | 1 |
| Mark Hintz | m****z@d****m | 1 |
| Mathieu Acthernoene | z****k@g****m | 1 |
| Nate Stephens | 3****s | 1 |
| Olivier Guimbal | o****l@g****g | 1 |
| SHND | s****d@g****m | 1 |
| Tim van Dam | t****s@g****m | 1 |
| ZebruhX | 1****X | 1 |
| eunwoo-levi | e****1@g****m | 1 |
| juicyjusung | j****g@g****m | 1 |
| momentiris | m****s@g****m | 1 |
| rio.sung.ks@gmail.com | r****s@g****m | 1 |
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 150
Total pull requests: 176
Average time to close issues: 4 months
Average time to close pull requests: about 2 months
Total issue authors: 125
Total pull request authors: 49
Average comments per issue: 2.16
Average comments per pull request: 1.06
Merged pull request: 92
Bot issues: 0
Bot pull requests: 58
Past year issues: 2
Past year pull requests: 41
Past year average time to close issues: 2 months
Past year average time to close pull requests: about 1 month
Past year issue authors: 2
Past year pull request authors: 12
Past year average comments per issue: 0.0
Past year average comments per pull request: 0.17
Past year merged pull request: 10
Past year bot issues: 0
Past year bot pull requests: 18
Top Issue Authors
- zoontek (3)
- salemkode (3)
- MikelArnaiz (2)
- alextes (2)
- adamhamlin (2)
- philer (2)
- nnnnoel (2)
- thewilkybarkid (2)
- oguimbal (2)
- JusttCallMeMike (2)
- allan-cannon (2)
- adrienharnay (2)
- m-rutter (2)
- johnknoop (2)
- LumaKernel (2)
Top Pull Request Authors
- dependabot[bot] (58)
- gvergnaud (46)
- xiehuanyi (7)
- JUSTIVE (6)
- gitsunmin (2)
- GGomez99 (2)
- changwoolab (2)
- kirylbehan (2)
- sunrabbit123 (2)
- sachaw (2)
- jjhiggz (2)
- vibhanshu909 (2)
- ttys026 (2)
- Ayc0 (2)
- HawkForge (2)
Top Issue Labels
- enhancement (53)
- workaround provided (5)
- duplicate (1)
- bug (1)
- wontfix (1)
- Done (1)
Top Pull Request Labels
- dependencies (58)
- javascript (18)
Package metadata
- Total packages: 7
-
Total downloads:
- npm: 27,929,271 last-month
- Total docker downloads: 12,600
- Total dependent packages: 336 (may contain duplicates)
- Total dependent repositories: 3,443 (may contain duplicates)
- Total versions: 237
- Total maintainers: 6
npmjs.org: ts-pattern
The exhaustive Pattern Matching library for TypeScript.
- Homepage: https://github.com/gvergnaud/ts-pattern#readme
- Licenses: MIT
- Latest release: 5.9.2 (published 20 days ago)
- Last Synced: 2026-10-31T17:34:45.443Z (2 days ago)
- Versions: 161
- Dependent Packages: 334
- Dependent Repositories: 3,442
- Downloads: 27,929,049 Last month
- Docker Downloads: 12,600
-
Rankings:
- Downloads: 0.176%
- Dependent packages count: 0.217%
- Dependent repos count: 0.398%
- Average: 1.027%
- Docker downloads count: 1.032%
- Stargazers count: 1.075%
- Forks count: 3.265%
- Maintainers (1)
proxy.golang.org: github.com/gvergnaud/ts-pattern
- Homepage:
- Documentation: https://pkg.go.dev/github.com/gvergnaud/ts-pattern#section-documentation
- Licenses: mit
- Latest release: v5.9.2+incompatible (published 20 days ago)
- Last Synced: 2026-10-31T17:34:47.959Z (2 days ago)
- Versions: 67
- Dependent Packages: 0
- Dependent Repositories: 1
-
Rankings:
- Stargazers count: 0.835%
- Forks count: 3.044%
- Average: 4.264%
- Dependent repos count: 4.802%
- Dependent packages count: 8.376%
npmjs.org: @cuppachino/ts-pattern
The exhaustive Pattern Matching library for TypeScript.
- Homepage: https://github.com/gvergnaud/ts-pattern#readme
- Licenses: MIT
- Latest release: 0.1.0 (published over 3 years ago)
- Last Synced: 2026-10-31T17:44:32.282Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 26 Last month
-
Rankings:
- Stargazers count: 1.579%
- Forks count: 4.506%
- Average: 16.239%
- Downloads: 16.916%
- Dependent repos count: 25.306%
- Dependent packages count: 32.89%
- Maintainers (1)
npmjs.org: @digimuza/ts-pattern
The exhaustive Pattern Matching library for TypeScript.
- Homepage: https://github.com/gvergnaud/ts-pattern#readme
- Licenses: MIT
- Latest release: 4.0.3 (published over 4 years ago)
- Last Synced: 2026-10-31T17:34:44.800Z (2 days ago)
- Versions: 1
- Dependent Packages: 2
- Dependent Repositories: 0
- Downloads: 26 Last month
-
Rankings:
- Stargazers count: 1.583%
- Forks count: 4.596%
- Dependent packages count: 9.479%
- Average: 16.908%
- Dependent repos count: 25.306%
- Downloads: 43.576%
- Maintainers (1)
npmjs.org: @cjser/ts-pattern
The exhaustive Pattern Matching library for TypeScript.
- Homepage: https://github.com/gvergnaud/ts-pattern#readme
- Licenses: MIT
- Latest release: 5.9.2-cjser.2 (published 19 days ago)
- Last Synced: 2026-10-31T17:34:48.939Z (2 days ago)
- Versions: 3
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 86 Last month
-
Rankings:
- Dependent repos count: 20.656%
- Average: 25.216%
- Dependent packages count: 29.776%
- Maintainers (1)
npmjs.org: @depup/ts-pattern
The exhaustive Pattern Matching library for TypeScript. (with updated dependencies)
- Homepage: https://github.com/gvergnaud/ts-pattern#readme
- Licenses: MIT
- Latest release: 5.9.2-depup.0 (published 20 days ago)
- Last Synced: 2026-10-31T17:43:17.277Z (2 days ago)
- Versions: 3
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 53 Last month
-
Rankings:
- Dependent repos count: 22.409%
- Average: 27.355%
- Dependent packages count: 32.302%
- Maintainers (1)
npmjs.org: @satankebab/ts-pattern
The exhaustive Pattern Matching library for TypeScript.
- Homepage: https://github.com/gvergnaud/ts-pattern#readme
- Licenses: MIT
- Latest release: 5.0.6-rn-fix (published over 2 years ago)
- Last Synced: 2026-10-31T17:34:43.480Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 31 Last month
-
Rankings:
- Dependent repos count: 33.088%
- Average: 40.091%
- Dependent packages count: 47.094%
- Maintainers (1)
Dependencies
- 624 dependencies
- @types/jest ^29.5.2 development
- jest ^29.5.0 development
- microbundle ^0.15.1 development
- prettier ^2.8.8 development
- rimraf ^5.0.1 development
- ts-jest ^29.1.0 development
- typescript ^5.1.3 development
- @arrows/array 1.4.1 development
- @arrows/composition 1.2.2 development
- @arrows/dispatch 1.0.3 development
- @arrows/error 1.0.2 development
- @arrows/multimethod 1.4.1 development
- @oven/bun-darwin-aarch64 1.0.4 development
- @oven/bun-darwin-x64 1.0.4 development
- @oven/bun-darwin-x64-baseline 1.0.4 development
- @oven/bun-linux-aarch64 1.0.4 development
- @oven/bun-linux-x64 1.0.4 development
- @oven/bun-linux-x64-baseline 1.0.4 development
- ansi-escapes 4.3.2 development
- ansi-regex 5.0.1 development
- ansi-styles 4.3.0 development
- astral-regex 2.0.0 development
- benchmark 2.1.4 development
- benny 3.7.1 development
- bun 1.0.4 development
- cli-cursor 3.1.0 development
- color-convert 2.0.1 development
- color-name 1.1.4 development
- commander 6.2.1 development
- common-tags 1.8.2 development
- emoji-regex 8.0.0 development
- fast-deep-equal 3.1.3 development
- fs-extra 10.1.0 development
- graceful-fs 4.2.11 development
- is-fullwidth-code-point 3.0.0 development
- json2csv 5.0.7 development
- jsonfile 6.1.0 development
- jsonparse 1.3.1 development
- kleur 4.1.5 development
- lodash 4.17.21 development
- lodash.get 4.4.2 development
- log-update 4.0.0 development
- mimic-fn 2.1.0 development
- onetime 5.1.2 development
- platform 1.3.6 development
- restore-cursor 3.1.0 development
- signal-exit 3.0.7 development
- slice-ansi 4.0.0 development
- string-width 4.2.3 development
- strip-ansi 6.0.1 development
- ts-pattern 5.0.5 development
- type-fest 0.21.3 development
- universalify 2.0.0 development
- wrap-ansi 6.2.0 development
- benny ^3.7.1 development
- bun ^1.0.4 development
- ts-pattern ^5.0.5 development
- @types/lodash ^4.17.0 development
- @types/react ^18.2.74 development
- @types/react-dom ^18.2.24 development
- react-scripts ^5.0.1 development
- typescript ^5.4.4 development
- lodash ^4.17.21
- react ^18.2.0
- react-dom ^18.2.0
- ts-pattern ^5.5.0
- ts-pattern ^5.5.0