{"id":14156132,"url":"https://github.com/nfriend/ts-git","last_synced_at":"2025-10-05T00:04:05.419Z","repository":{"id":147527076,"uuid":"211989290","full_name":"nfriend/ts-git","owner":"nfriend","description":"A naïve implementation of git, written in TypeScript. Built to help me understand how git works under the hood.","archived":false,"fork":false,"pushed_at":"2020-11-25T04:57:15.000Z","size":645,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T08:11:42.410Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://ts-git.nathanfriend.io/","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/nfriend.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}},"created_at":"2019-10-01T01:17:54.000Z","updated_at":"2024-11-13T13:29:04.000Z","dependencies_parsed_at":"2024-04-16T23:25:50.467Z","dependency_job_id":null,"html_url":"https://github.com/nfriend/ts-git","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfriend%2Fts-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfriend%2Fts-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfriend%2Fts-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nfriend%2Fts-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nfriend","download_url":"https://codeload.github.com/nfriend/ts-git/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248391290,"owners_count":21095987,"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":"2024-08-17T08:05:14.329Z","updated_at":"2025-10-05T00:04:00.384Z","avatar_url":"https://github.com/nfriend.png","language":"TypeScript","funding_links":[],"categories":["others"],"sub_categories":[],"readme":"# ts-git\n\n\u003cimg alt=\"ts-git logo\" src=\"ts-git.png\" width=\"250\" height=\"250\" /\u003e\n\nA naïve implementation of [git](https://git-scm.com/), written in [TypeScript](https://www.typescriptlang.org/): http://ts-git.nathanfriend.io. Built to help me understand how git works under the hood.\n\nThis implementation is heavily based on the excellent [Write yourself a Git!](https://wyag.thb.lt/#org94e7cd7) tutorial.\n\nPlease don't actually use `ts-git` for anything serious :joy:.\n\nThis repo contains the source the [`ts-git` library](./lib) and the [`ts-git` demo app](./demo-app).\n\n## Usage\n\nThe `ts-git` library can be used in two ways: as an ES6 JavaScript module or as a command line utility.\n\n### JavaScript module usage\n\nThis module is designed to work both in the browser and on the server (in Node).\n\nFirst, install the module:\n\n```bash\nnpm install @nathanfriend/ts-git --save\n```\n\nThen, import and use the module:\n\n```ts\nimport { TsGit } from '@nathanfriend/ts-git';\n\nconst tsGit = new TsGit();\n\n// View the documentation in the /lib directory\n// of this repo for more usage details\n```\n\nMore complete usage details can be found in the [`lib`](./lib) directory in this repo.\n\n### Command line usage\n\nFirst, install the `ts-git` module globally:\n\n```bash\nnpm install -g @nathanfriend/ts-git\n```\n\nThen use the `ts-git` command as a drop-in replacement for `git`:\n\n```bash\nts-git init\n```\n\nTo the see the list of available commands, run `ts-git --help`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfriend%2Fts-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnfriend%2Fts-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnfriend%2Fts-git/lists"}