{"id":16594044,"url":"https://github.com/jsdf/react-commits-graph","last_synced_at":"2025-03-21T13:31:45.394Z","repository":{"id":20125535,"uuid":"23395505","full_name":"jsdf/react-commits-graph","owner":"jsdf","description":"react component to render an svg graph of git commits","archived":false,"fork":false,"pushed_at":"2016-04-08T18:41:43.000Z","size":232,"stargazers_count":37,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-15T04:55:47.156Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","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/jsdf.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}},"created_at":"2014-08-27T15:44:09.000Z","updated_at":"2022-11-16T21:30:12.000Z","dependencies_parsed_at":"2022-08-03T15:10:22.484Z","dependency_job_id":null,"html_url":"https://github.com/jsdf/react-commits-graph","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Freact-commits-graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Freact-commits-graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Freact-commits-graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsdf%2Freact-commits-graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsdf","download_url":"https://codeload.github.com/jsdf/react-commits-graph/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244806116,"owners_count":20513383,"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-10-11T23:44:53.275Z","updated_at":"2025-03-21T13:31:45.061Z","avatar_url":"https://github.com/jsdf.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-commits-graph\n\na react component to render an svg graph of git commits\n\nadapted from [tclh123/commits-graph](https://github.com/tclh123/commits-graph)\n\n![react-commits-graph](docs/react-commits-graph.png)\n\n## example\n\ncode to generate the graph above\n\n```js\nvar React = require('react')\nvar CommitsGraph = require('react-commits-graph')\nvar commits = require('./commits.json')\n\nvar selected = null\n\nfunction handleClick(sha) {\n  selected = sha\n  render()\n}\n\nfunction render() {\n  React.render(\n    \u003cCommitsGraph\n      commits={commits}\n      onClick={handleClick}\n      selected={selected}\n    /\u003e\n  ), document.body)\n}\n\nrender()\n```\n\nexpected structure of `commits` prop:\n```js\n[\n  {\n    \"parents\": [\n      \"82aa2102c8291f56f8dfefce1dce40d8a0dd686b\",\n      \"175dfbbdbf8734069efaafced5a531dbf77c3a57\"\n    ],\n    \"sha\": \"5a7e04df76e21f9ba4a48098b6b26f19b51b99b1\"\n  },\n  {\n    \"parents\": [\n      \"90113cac59463df2e182e48444b8395658ebf840\"\n    ],\n    \"sha\": \"175dfbbdbf8734069efaafced5a531dbf77c3a57\"\n  },\n  ...\n]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Freact-commits-graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsdf%2Freact-commits-graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsdf%2Freact-commits-graph/lists"}