{"id":13393503,"url":"https://github.com/mergestat/mergestat","last_synced_at":"2025-05-15T10:07:32.746Z","repository":{"id":37490611,"uuid":"462355543","full_name":"mergestat/mergestat","owner":"mergestat","description":"MergeStat enables anyone to ask questions about the history and contents of source code.","archived":false,"fork":false,"pushed_at":"2025-05-07T14:01:07.000Z","size":54058,"stargazers_count":504,"open_issues_count":117,"forks_count":49,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-05-07T15:21:59.640Z","etag":null,"topics":["database","github","golang","postgres"],"latest_commit_sha":null,"homepage":"https://docs.mergestat.com/","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/mergestat.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-02-22T15:20:50.000Z","updated_at":"2025-04-25T07:02:10.000Z","dependencies_parsed_at":"2023-10-20T21:45:14.676Z","dependency_job_id":"6d96d9ee-4360-44e5-8e3b-30034ade811c","html_url":"https://github.com/mergestat/mergestat","commit_stats":{"total_commits":1500,"total_committers":24,"mean_commits":62.5,"dds":0.6619999999999999,"last_synced_commit":"49d1e3acdc99707f531a13b3848d2bd9a5488404"},"previous_names":["mergestat/fuse"],"tags_count":66,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mergestat%2Fmergestat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mergestat%2Fmergestat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mergestat%2Fmergestat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mergestat%2Fmergestat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mergestat","download_url":"https://codeload.github.com/mergestat/mergestat/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319720,"owners_count":22051073,"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":["database","github","golang","postgres"],"created_at":"2024-07-30T17:00:54.486Z","updated_at":"2025-05-15T10:07:27.720Z","avatar_url":"https://github.com/mergestat.png","language":"TypeScript","funding_links":[],"categories":["Go","Repositories","Applications","postgres"],"sub_categories":["Development Tools"],"readme":"[![Go Report Card](https://goreportcard.com/badge/github.com/mergestat/mergestat)](https://goreportcard.com/report/github.com/mergestat/mergestat)\n[![CI Worker (Golang)](https://github.com/mergestat/mergestat/actions/workflows/ci-worker.yaml/badge.svg)](https://github.com/mergestat/mergestat/actions/workflows/ci-worker.yaml)\n[![CI Frontend (UI)](https://github.com/mergestat/mergestat/actions/workflows/ci-frontend.yaml/badge.svg)](https://github.com/mergestat/mergestat/actions/workflows/ci-frontend.yaml)\n[![Twitter Follow](https://img.shields.io/twitter/follow/mergestat)](https://twitter.com/mergestat)\n[![Slack Community](https://badgen.net/badge/icon/slack?icon=slack\u0026label)](https://join.slack.com/t/mergestatcommunity/shared_invite/zt-xvvtvcz9-w3JJVIdhLgEWrVrKKNXOYg)\n\n# mergestat \u003ca href=\"https://docs.mergestat.com/\"\u003e\u003cimg align=\"right\" src=\"https://github.com/mergestat/mergestat/raw/main/docs/logo.png\" alt=\"MergeStat Logo\" height=\"100\"\u003e\u003c/a\u003e\n\n\u003cpicture\u003e\n  \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"docs/banner-dark-mode.png\"\u003e\n  \u003cimg alt=\"Banner describing MergeStat\" src=\"docs/banner-light-mode.png\"\u003e\n\u003c/picture\u003e\n\nMergeStat enables SQL queries for data in git repositories (and related sources, such as the GitHub API). It allows you to ask questions about the history and contents of your source code.\n\n**If you are looking for our CLI, which runs SQL queries against local git repositories, it's now called [`mergestat-lite`](https://github.com/mergestat/mergestat-lite)**\n\nSee our [**documentation**](https://docs.mergestat.com/) for additional context.\n\n\u003cimg alt=\"MergeStat Queries\" src=\"docs/queries.gif\"/\u003e\n\n## Running Locally\n\nTry MergeStat locally with `docker-compose` by cloning this repository and running\n\n```sh\ndocker-compose up\n```\n\nNow if you visit `http://localhost:3300/` you should be able to access our management UI where you can begin adding repositories and syncing data.\n\n**NOTE** if you'd like to make use of GitHub API data (any sync type that uses the GitHub API **including repo auto imports**) or any private GitHub repos you will need to supply a GitHub [personal access token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).\nWe are working on GitHub auth alternatives, but for now a PAT is your best bet.\n\n\u003cimg alt=\"MergeStat GitHub PAT Management UI\" src=\"docs/github-pat-local.jpg\" /\u003e\n\nYou can manage a single PAT for your instance in the `Settings` area of the management UI.\n\n## Examples\n\nTake a look at all of our [examples](./examples)\n\n### Resetting a Local Instance\n\nIf you'd like to \"start from scratch\" (i.e. reset the DB and start with a fresh deployment), run the following:\n\n```\ndocker-compose down\n```\n\n```\ndocker volume rm mergestat_db_data\n```\n\n\u003cimg referrerpolicy=\"no-referrer-when-downgrade\" src=\"https://static.scarf.sh/a.png?x-pxid=31b68c46-eba1-48b1-a5a8-1898f268e866\" /\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmergestat%2Fmergestat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmergestat%2Fmergestat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmergestat%2Fmergestat/lists"}