# github/platform-samples

A public place for all platform sample projects.

Repository: https://github.com/github/platform-samples
Canonical: https://ross.abutalabs.com/products/platform-samples
Language: Shell
License: CC0-1.0
License Family: permissive
Topics: ruby, sample, graphql, pre-receive-hooks, javascript, hooks, platform, platform-samples
Last push: 2026-08-24T22:12:27+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 4936, "days_push": 9, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2162, forks 1861 (observed 2026-08-28T04:06:21.046133+00:00)

## What it is
A collection of sample projects demonstrating the GitHub Platform, including API examples in multiple languages, GraphQL queries, webhook consumers, pre-receive hooks, and repository maintenance scripts. It is organized to accompany guides on developer.github.com and accepts community contributions.

## Use cases
- learn how to call the GitHub API
- write a consumer for GitHub webhooks
- enforce commit policies with pre-receive hooks on GitHub Enterprise
- run sample GraphQL queries against the GitHub GraphQL API
- analyze or clean up a Git repository with scripts
- build custom reports for GitHub Enterprise Server with SQL
- integrate GitHub with Microsoft Graph and Azure AD

## When to choose
- you are learning the GitHub Platform APIs and want working example code
- you need a starting point for webhook consumers or pre-receive hooks
- you want reference GraphQL queries or Enterprise Server reporting scripts

## When to avoid
- you need a production-ready library or maintained tool rather than illustrative samples
- you need samples for a platform other than GitHub
- you expect a single cohesive application instead of loosely organized example directories

## Facets
- artifact type: learning-resource
- maturity: active
- function: developer-tools, sdk, webhook, graphql, documentation
- domain: developer-tools, apis, tutorials
- platform: cli, cross-platform
- tags: github-platform, sample-code, api-examples, pre-receive-hooks, github-enterprise, automation, web-server

## Member repositories
- github/platform-samples (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:21.046133+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:50:14.139686+00:00, confidence not recorded.
  - readme: https://github.com/github/platform-samples (fetched 2026-08-28T04:06:21.046133+00:00, sha 513a2a7b56c6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
