← knowledge.oriz.in

GitHub user-content (raw.githubusercontent.com)

service imageshostorigingithubrawuser-contentfallback

GitHub user-content (raw.githubusercontent.com)

Role

Tier 4 origin in the 4-tier image-host chain. The rare-use tier — invoked when:

Approach

Push the asset to a dedicated assets branch of any chirag127/oriz* repository. The branch is orphan (no shared history with main) so it doesn't bloat working clones — fetch only on explicit need. Reference the asset via:

https://raw.githubusercontent.com/<user>/<repo>/<branch>/<path>

For example:

https://raw.githubusercontent.com/chirag127/blog-site/assets/2026/06/big-animation.gif

Free tier

Card / subscription required?

NO. Free GitHub account; same account that hosts the site repos. No card on file.

How it's used

  1. Asset goes to <repo>/assets branch via git push --force (orphan branch is rebuild-able).
  2. Stable raw URL committed to the post's frontmatter as image_tier_4:.
  3. The treats it as the deepest fallback.
  4. Optional: front the raw URL with jsDelivr's GitHub mirror (https://cdn.jsdelivr.net/gh/<user>/<repo>@<branch>/<path>) for better edge cache; jsDelivr is already in our stack for npm packages.

Methods supported

Anything git push can do. Standard CI flow uses actions/checkout@v4 with ref: assets + commit-and-push.

Alternatives

Swap cost

Low — branch + path naming convention is a pure git rename. URLs remain stable as long as the branch exists.

Why this is our pick

Caveats

Cross-refs