Skip to content
CratisPublic

About

Cratis organization profile, community health files and contribution guidelines.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

212 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.github

This is the landing repo for Cratis. Please read more in our profile.

Organization activity stats

The daily workflow refreshes stats/org-stats.json, the release calendar, and the marked profile block at 04:17 UTC. Only public, non-archived, non-fork repositories are included. It uses the repository's GITHUB_TOKEN; no organization-wide PAT is needed. Release totals are recomputed by paging all published releases, so deleted and backfilled releases are reflected on the next run. Counts use UTC calendar days including the current partial day; the weekly digest uses its exact lookback window instead. The calendar shows the snapshot's 365 daily values on a Monday-first 53-week grid.

Release kinds compare each tag with the previous published release in that same repository. Prereleases are counted separately; first, non-semver, repeated or non-increasing versions are initial and are not included in the major/minor/patch split. Merged pull requests and issues are paged per repository in updated-date order, with at most four repositories in flight. Pagination stops once updates predate the earliest required window (365 days, the first of 53 ISO weeks, or an extended digest lookback); all activity counts are derived locally. Contributor discovery uses the fetched merge history to exclude established contributors. Only remaining non-bot candidates need one org-scoped, date-only pre-window search each, paced through a single GraphQL queue. Creation order is never assumed to be merge order.

The snapshot also includes per-day repository release counts and the top five releasing repositories over the last seven UTC calendar days; the profile names the top three. Calendar SVG titles show each day's top three repositories. Optional delivery lead times cover releases published in the last 30 UTC calendar days, matching each release's tag commit to a merged PR's merge commit in the same repository. Only positive durations are included; median and p90 use nearest-rank percentiles, in minutes rounded to one decimal. The field is omitted without matches. The weekly digest computes lead time for its exact lookback window instead. These metrics use extra fields on existing queries, not additional API calls.

The weekly digest includes week-in-numbers and optionally posts to Discord. Configure DISCORD_WEBHOOK_URL to enable weekly posts and daily milestone celebrations. Missing webhooks are skipped; Discord failures only warn. A newly reached milestone means its id was absent from the previously committed snapshot.

On 1 January, Cratis Wrapped publishes the previous calendar year's recap to release-digests/wrapped-YYYY.md, with an optional Discord post. Dispatch the workflow with a year for a historical recap or a current-year preview; publish defaults to false, producing only an artifact and job summary. For a local preview without committing or posting, run GITHUB_TOKEN="$(gh auth token)" node .github/scripts/publish-wrapped.cjs --year 2026 --out .ai-work/org-stats/wrapped-2026.md.

Run locally (requires Node.js 22+ and an authenticated GitHub CLI):

GITHUB_TOKEN="$(gh auth token)" node .github/scripts/publish-org-stats.cjs
node --test .github/scripts/

The collector writes the snapshot, SVG and profile block only when fields other than generatedAt change. ORG_STATS_SAMPLES=.ai-work/org-stats additionally writes sample weekly Markdown and a Discord payload without posting anything.

About

Cratis organization profile, community health files and contribution guidelines.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages