Changelog
Notable changes to profile-graphics. The first tagged release will collect everything listed under Unreleased.
Unreleased
Added
- The
viewscard counts profile views on the card server:GET /<provider>/<user>/views.svgadds a view andviews.jsonreads the count. It comes as a compact badge or, withstyle: card, a card with today, the last seven days and a 14-day line, and takeslabelandstart. Counts live in memory, in a JSON file (profile-graphics serve --counter-file) or in Upstash Redis on Vercel; the web component reads them withviews-src. charts: [review]expands tosummary,streak,calendar,langs,punch-cardandrepos.- The
punch-cardcard shows contributions by weekday and hour, withhour_formatandweek_start. - The
reposcard shows pinned or most starred repositories with their description, language, stars and forks, shaped bysource,count,columns,show_owneranddescription_lines. - The
calendar-3dcard draws the contribution calendar as isometric bars, withweeksandshow_stats. - Every card with a heading takes
title, with the same placeholders asframe_title, andhide_title;svg.hide_titlehides the heading on every card.profile-graphics servereadscustom_titleon single-card routes, andprofile-graphics migratekeepscustom_titleandhide_title. cards.summary.show_rankadds a rank calculated with the github-readme-stats formula, shown as a grade or, withrank_style: percentile, as a top percentage.- Streak options:
mode: weeklycounts weeks with at least one contribution,exclude_dayslists weekdays that never break a daily streak,showpicks the total, current and longest parts, andrange: all-timereads every contribution year on GitHub. provider.include_forksandprovider.exclude_repos(glob patterns) decide which repositories count for stars, languages and thereposcard on GitHub, GitLab and Forgejo; on GitHubprovider.affiliationsadds repositories of your organizations or the ones you collaborate on.theme.backgroundaccepts a linear gradient such as30,#e96443,#904e95: an angle followed by two to eight colors.svg.number_format: longwrites numbers in full (1,247) instead of the short form (1.2K).svg.animationfades (fade) or lifts (rise) the card content in overanimation_durationseconds; it respectsprefers-reduced-motionand is left out of PNG and WebP.cards.activity.show_griddraws grid lines andshow_pointsa dot for every day on the activity card.profile-graphics preview --watchrenders again whenever the config file changes, and the preview page reloads by itself.extendsreads a shared config file first, so oneprofile.ymlcan hold the provider, calendar and theme for both profile-snake and profile-graphics.SOURCE_DATE_EPOCHsets the current date for reproducible builds.- On a free WakaTime plan that refuses a long range, coding time falls back to the last seven days.
provider: wakatimereads coding time from WakaTime or Wakapi, and five new cards show it:coding-time,coding-languages,coding-editors,coding-osandcoding-projects.provider: forgejofor Codeberg and other Forgejo servers, and GitHub Enterprise Server throughbase_url.provider: filereads stats from a JSON or CSV file or URL, andprovider.mergecombines up to eight sources into one set of cards.- The
profile-cardandtrophycards; every card takeswidthandheight, andsummary.metricscan showfollowers. calendar.modewithcurrent-year,last-yearandrollingwindows, andcalendar.yearfor any single year.- Card labels in eight languages through
calendar.locale:en,ru,de,es,fr,pt,jaandzh. Numbers, dates and durations are formatted withIntl. svg.framedraws a border, a window with traffic lights or no frame, withframe_radiusand aframe_titlethat fills in{user},{name},{year},{total},{active_days},{streak},{longest_streak},{best_day},{best_date},{stars},{commits},{followers}and{top_language}.- PNG and WebP output through the optional
sharppackage, withoutput.raster_backgroundfor the area behind the card. output.layout: dashboardrenders every card into one image, withoutput.columnscards per row.theme.dark_mode_pairwrites-lightand-darkfiles for a<picture>element.- Config colors accept CSS color names,
rgb()andhsl(). - Every config option is also a CLI flag and a GitHub Action input;
action.ymlandprofile-graphics.schema.jsonare generated from one option catalog. - The Action can commit the cards to a branch with
publish_branch, writes a job summary with previews and README snippets, and ends failures with a hint on how to fix them. profile-graphics initwritesprofile-graphics.ymland a GitHub Actions or GitLab CI workflow.profile-graphics previewwrites the cards and an HTML page that shows them, andprofile-graphics doctorchecks the config and names the token kind of every source.profile-graphics migrateturns github-readme-stats, streak stats, trophy, activity graph and summary card URLs into a config.profile-graphics serveand theprofile-graphics/serverFetch API handler render cards on request for self-hosting, with an optional per-client rate limit.profile-graphics/corerenders cards without Node.js APIs, in browsers, workers and edge functions.- The
<profile-graphics>web component renders cards on any page from attributes, demo data, a public Codeberg profile or stats JSON;profile-graphics serveanswers/<provider>/<user>.jsonfor it.
Changed
- Node.js 22.3 or newer is required, and the Action runs on Node.js 24.
chart_optionsis nowcards, withproductive_timeandprofile_detailskeys, andlangs.top_nis nowlangs.count.provider.gitlab_base_urlis nowprovider.base_urland applies to every provider.- Action inputs follow the option names:
usernameis nowuser,output_diris nowoutputandgitlab_urlis nowbase_url. - The
most-commit-languagecard is replaced by thedonut-compactstyle of thelangscard. - The 43 theme presets are the same as in profile-snake, with identical base colors;
halloween,winterandsakuraare new. - Provider requests share one HTTP client that retries timeouts and server errors, honors short
Retry-Afterwaits and reports rate limits with the reset time. - The Action installs
sharponly when PNG or WebP output is requested. api/stats.jsis a thin Vercel wrapper aroundprofile-graphics/serverthat limits each client to 30 requests a minute by default and readsPG_RATE_LIMITandPG_ALLOWED_USERS.
Fixed
- GitLab: the calendar is built from your events in
calendar.timezone, and merge request, issue, commit and review totals count your own activity instead of project counters. - Cards keep their colors in PNG and WebP: theme colors are written as literal values unless a light and dark pair is embedded.
- GitHub stars and languages include every owned repository up to 1,000, not only the first 100.
- The calendar card stays inside its frame and skips future days.
- A single language is drawn as a full donut.
- Dates on cards are formatted in UTC, so they no longer shift by a day.
- Trailing slashes in
base_urlare trimmed without a regular expression that could backtrack on long input.