{"id":50902518,"url":"https://github.com/iquiw/emacstreak","last_synced_at":"2026-06-16T04:02:44.380Z","repository":{"id":346169624,"uuid":"1188787546","full_name":"iquiw/emacstreak","owner":"iquiw","description":"GitHub streak stats on Emacs","archived":false,"fork":false,"pushed_at":"2026-03-22T15:41:38.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-23T06:47:25.564Z","etag":null,"topics":["emacs","github"],"latest_commit_sha":null,"homepage":"","language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iquiw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2026-03-22T15:31:17.000Z","updated_at":"2026-03-23T00:04:05.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/iquiw/emacstreak","commit_stats":null,"previous_names":["iquiw/emacstreak"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/iquiw/emacstreak","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iquiw%2Femacstreak","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iquiw%2Femacstreak/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iquiw%2Femacstreak/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iquiw%2Femacstreak/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iquiw","download_url":"https://codeload.github.com/iquiw/emacstreak/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iquiw%2Femacstreak/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34390052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"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":["emacs","github"],"created_at":"2026-06-16T04:02:42.906Z","updated_at":"2026-06-16T04:02:44.365Z","avatar_url":"https://github.com/iquiw.png","language":"Emacs Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Emacstreak\n\nGitHub streak stats on Emacs.\nThis is a feature-less port of [DenverCoder1/github-readme-streak-stats](https://github.com/DenverCoder1/github-readme-streak-stats) in Emacs Lisp.\n\n![](./emacstreak.png)\n\n## Features\n\n- SVG card of the following stats.\n  - Total contributions\n  - Current streak\n  - Longest streak\n- Themes as in `github-readme-streak-stats`.\n- Written in Emacs Lisp.\n\n### Unimplemented features\n\n- No customizable [options in github-readme-streak-stats](https://github.com/DenverCoder1/github-readme-streak-stats?tab=readme-ov-file#-options) except for `user` and `theme`.\n\n## Setup\n\n### Installation\n\nClone the repository from GitHub.\n\n```console\n$ git clone https://github.com/iquiw/emacstreak.git\n```\n\nAdd the directory to `load-path` and require `emacstreak`.\n\n```emacs-lisp\n(add-to-list 'load-path \"/path/to/emacstreak\")\n(require 'emacstreak)\n```\n\n### Configuration\n\nSpecify GitHub token in the environment variable `GITHUB_TOKEN` or Emacs\nvariable `emacstreak-github-token`.\n\n```emacs-lisp\n(setopt emacstreak-github-token \"github_pat_...\")\n```\n\nTo configure theme, specify theme name in the environment variable\n`EMACSTREAK_THEME` or its symbol to `emacstreak-theme` variable.\nRefer to [github-readme-streak-stats/docs/themes.md](https://github.com/DenverCoder1/github-readme-streak-stats/blob/main/docs/themes.md) for available themes.\n\n```emacs-lisp\n(setopt emacstreak-theme 'nord)\n```\n\n## Usage\n\n### Interactive display\n\n\u003ckbd\u003eM-x\u003c/kbd\u003e `emacstreak-show-svg` shows SVG card of the specified user\nwithout animation in the popup buffer.\n\nWith the prefix-argument, it uses the last queried stats instead of\nquerying GitHub GraphQL API.\nIt is useful when trying different theme as the query usually takes some time.\n\n### Interactive save\n\n\u003ckbd\u003eM-x\u003c/kbd\u003e `emacstreak-save-svg` saves SVG card of the specified user in\nthe specified file.\n\nWith the prefix-argument, it uses the last queried stats instead of\nquerying GitHub GraphQL API.\nIt is useful when trying different theme as the query usually takes some time.\n\n### Batch save\n\nProvided that environment variable `GITHUB_TOKEN` is defined, the following\ncommand outputs SVG card of `\u003cuser\u003e` into `\u003coutput svg\u003e`.\n\n```console\n$ emacs --batch -L . -l emacstreak.el --eval '(emacstreak-save-svg \"\u003cuser\u003e\" \"\u003coutput svg\u003e\")'\n```\n\n### GitHub Action\n\nBy GitHub Action, SVG card of `\u003cuser\u003e` with `\u003ctheme\u003e` can be generated and\nsaved to `\u003coutput svg\u003e` like follows.\n\n```yaml\n      - uses: actions/checkout@v6\n        with:\n          repository: iquiw/emacstreak\n          path: emacstreak\n\n      - name: Setup Emacs\n        uses: purcell/setup-emacs@master\n        with:\n          version: 30.2\n\n      - name: Generate streak stats card\n        run: |\n          emacs --batch -L emacstreak -l emacstreak/emacstreak.el --eval '(emacstreak-save-svg \"\u003cuser\u003e\" \"\u003coutput svg\u003e\")'\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n          EMACSTREAK_THEME: \u003ctheme\u003e\n```\n\n## Acknowledgments\n\nSVG generation and stats calculation logic are heavily drawn from\n[DenverCoder1/github-readme-streak-stats](https://github.com/DenverCoder1/github-readme-streak-stats), though not the same.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiquiw%2Femacstreak","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiquiw%2Femacstreak","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiquiw%2Femacstreak/lists"}