{"id":49065033,"url":"https://github.com/majjoha/typology","last_synced_at":"2026-04-20T04:17:15.176Z","repository":{"id":42658167,"uuid":"353259755","full_name":"majjoha/typology","owner":"majjoha","description":"Playground for exploring type-level programming.","archived":false,"fork":false,"pushed_at":"2026-03-02T11:42:33.000Z","size":1669,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-02T15:29:28.758Z","etag":null,"topics":["type-level-programming","types","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/majjoha/typology","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/majjoha.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-03-31T07:04:49.000Z","updated_at":"2026-03-02T11:42:30.000Z","dependencies_parsed_at":"2023-02-07T01:15:40.802Z","dependency_job_id":"2f0e8736-02ab-496c-a4c7-77f9f7ed66c7","html_url":"https://github.com/majjoha/typology","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/majjoha/typology","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majjoha%2Ftypology","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majjoha%2Ftypology/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majjoha%2Ftypology/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majjoha%2Ftypology/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/majjoha","download_url":"https://codeload.github.com/majjoha/typology/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/majjoha%2Ftypology/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32032453,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":["type-level-programming","types","typescript"],"created_at":"2026-04-20T04:17:13.766Z","updated_at":"2026-04-20T04:17:15.164Z","avatar_url":"https://github.com/majjoha.png","language":"TypeScript","readme":"# Typology\n![CI](https://github.com/majjoha/typology/workflows/CI/badge.svg)\n\nTypology is a playground for exploring type-level programming in TypeScript. The\nvarious types range from simple representations of natural numbers to types that\ncan compute Fibonacci numbers.\n\n## Examples\n### Addition\n```typescript\nconst three: Add\u003cSucc\u003cZero\u003e, Succ\u003cSucc\u003cZero\u003e\u003e\u003e = {\n  n: {\n    n: {\n      n: \"zero\"\n    },\n  },\n}\n```\n\n### Factorial\n```typescript\nconst six: Factorial\u003cThree\u003e = { n: { n: { n: { n: { n: { n: \"zero\" } } } } } }\n```\n\n### Convert strings to numbers\n```typescript\nconst five: FromString\u003c\"{ n: { n: { n: { n: { n: zero } } } } }\"\u003e = {\n  n: { n: { n: { n: { n: \"zero\" } } } },\n}\n```\n\n### Boolean logic\n```typescript\nconst two: IfElse\u003c\n  And\u003c\n    LessThan\u003cFour, Six\u003e,\n    Not\u003cGreaterThan\u003cFive, Ten\u003e\u003e\n  \u003e,\n  ToString\u003cSucc\u003cSucc\u003cZero\u003e\u003e\u003e,\n  never\n\u003e = \"{ n: { n: zero } }\"\n```\n\n### Fibonacci numbers\n```typescript\nconst five: Fibonacci\u003cFive\u003e = { n: { n: { n: { n: { n: \"zero\" } } } } }\n```\n\n## License\nSee [LICENSE](./LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajjoha%2Ftypology","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmajjoha%2Ftypology","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmajjoha%2Ftypology/lists"}