GitStoryKit is a little development kit that can be used to develop apps and software that enables git time travel, the library is in early development and is designed for simplicity, it is heavily used in GitStory
The following Git clients are supported :
- GitHub ✅
- GitLab ⏳ (on development)
import GitStory from "gitstorykit";
const gitstory = new GitStory("Github");
gitstory.init({ owner: "swve", repo: "framestack" });
// with auth tokens
gitstory.init({ owner: "swve", repo: "framestack" , auth: "yourtoken" });
const firstcommit = await gitstory.getFirstCommit();
const firstcommitdate = await gitstory.getFirstCommitDate();
Dates should be in the ISO 8601 format
const commit_date = await gitstory.getCommitDate(commit_sha);
Dates should be in the ISO 8601 format
const commit = await gitstory.getCommitsBetweenDates(startDate, endDate, per_page: number, page: number);
Dates should be in the ISO 8601 format
const commit = await gitstory.getCommitsUntilDate(date, per_page: number, page: number);
const active_years = await gitstory.yearsActive();
To contribute or understand the code structure, please see our contributing.md.
Badr B. (@swve)