Skip to content

Repository files navigation

Chinese zodiac animals banner

github-readme-chinese-zodiac

License: MIT Contributing

Asian zodiac profile cards from your GitHub activity — the 12 animals (生肖), rendered as SVG README cards or pinned Gists.

Your coding personality written in the Asian zodiac

Sister project (Western zodiac): github-readme-zodiac

Mode Where it appears Style
Pinned Gist Profile Pins ASCII / text card
SVG card Profile README Full-color image (default 360×192)

Live demo: https://github-readme-chinese-zodiac.vercel.app


What a Pin looks like

GitHub only shows about 5 lines of a pinned Gist. Full 12-animal gallery (pin + full gist):

Gist pin preview — 12 animals (PDF)

Also: docs/gist-pin-preview.html

Example pin body (Pig / 亥 — birthdate=1995-04-24):

🐷 PIG · Generous Collaborator        ╭────╮
✨ JUNG SEUNGHOON · Full-Stack Dev    │ 亥 │
🌟   4  📦  37  👥   0                │ 猪 │
Renown     █░░░░░░░░░░░   7%          ╰────╯
Craft      █████████░░░  76%            生肖

Pin quality (help wanted). Pins work, but the hanzi seal often misaligns in monospace (wide CJK vs box-drawing). SVG cards are the polished path today — see CONTRIBUTING.md if you want to improve src/gist/emblem.js.

How to put this on your profile Pins

Same pattern as productive-box: fork → Action fills your Gist → pin that Gist. No Vercel for Pins.

  1. Fork this repo
  2. Create a public Gist and copy its ID
    (https://gist.github.com/YOU/GIST_ID — not the .js embed URL)
  3. Create a PAT with gist scope → on your fork, add Secrets GH_TOKEN + GIST_ID
  4. On your fork, add Variable BIRTHDATE = YYYY-MM-DD (optional but recommended)
  5. ActionsUpdate Asian Zodiac GistRun workflow
  6. Pin the Gist on your profile

Details (secrets table, variables, schedule): § Pin a Gist — fork setup below.


Demo (SVG)

![Asian Zodiac](https://github-readme-chinese-zodiac.vercel.app/api/card?username=seuthootDev)

Asian Zodiac

With birthdate (animal year):

![Asian Zodiac](https://github-readme-chinese-zodiac.vercel.app/api/card?username=seuthootDev&birthdate=1995-04-24&width=360&glow=1)

Asian Zodiac Pig

All 12 animals

Rat Ox Tiger Rabbit Dragon Snake Horse Goat Monkey Rooster Dog Pig


Animals (sign= param)

sign= Animal
rat 🐀 Rat
ox 🐂 Ox
tiger 🐅 Tiger
rabbit 🐇 Rabbit
dragon 🐉 Dragon
snake 🐍 Snake
horse 🐴 Horse
goat 🐐 Goat
monkey 🐒 Monkey
rooster 🐓 Rooster
dog 🐕 Dog
pig 🐷 Pig

Birthdate → animal uses the birth year (simple pre–Feb 4 → previous year approximation). No birthdate → deterministic animal from username hash.


1) Pin a Gist — fork setup

Recommended for everyone: fork this repo and run the Action on your fork.
(That keeps your token/Gist on your account and matches how most README pin projects work.)

1. Fork

Fork seuthootDev/github-readme-chinese-zodiac.

2. Create a public Gist

  1. https://gist.github.com/
  2. Filename e.g. chinese_zodiac.md, any placeholder text
  3. Create public gist
  4. Copy only the Gist ID (not the .js embed URL):
    https://gist.github.com/YOU/GIST_ID

3. Create a token (once)

https://github.com/settings/tokensTokens (classic) → enable gist only.
The token string is shown once — save it. The same PAT can be reused on the Western sister project.

4. Secrets and Variables on your fork

Settings → Secrets and variables → Actions

Secrets tab:

Secret Value
GH_TOKEN PAT with gist scope
GIST_ID Gist ID only (see above)

Variables tab (optional but recommended):

Variable Value Notes
BIRTHDATE YYYY-MM-DD e.g. 1995-04-24 → animal year
USERNAME your GitHub login default: token owner
SIGN pig force an animal
NAME / ROLE display overrides optional

Birthdate is a Variable (BIRTHDATE), not a Secret.
Path: Settings → Secrets and variables → Actions → Variables → New repository variable.

5. Run the Action

  1. On your fork: Actions → enable workflows if prompted
  2. Update Asian Zodiac GistRun workflow
  3. Pin the Gist on your profile

Also runs on every push to main and daily at 00:00 UTC.

Pin vs SVG

Feature Your fork’s Action? Vercel?
Pinned Gist Yes No
SVG in README No Yes (github-readme-chinese-zodiac.vercel.app)

2) SVG card (README embed)

![Asian Zodiac](https://github-readme-chinese-zodiac.vercel.app/api/card?username=YOUR_USERNAME)

![Asian Zodiac](https://github-readme-chinese-zodiac.vercel.app/api/card?username=YOUR_USERNAME&birthdate=1995-04-24)

![Asian Zodiac](https://github-readme-chinese-zodiac.vercel.app/api/card?username=YOUR_USERNAME&sign=dragon&width=360)

![Asian Zodiac](https://github-readme-chinese-zodiac.vercel.app/api/card?username=YOUR_USERNAME&birthdate=1995-04-24&glow=1)

Options

Param Description
username GitHub username (required)
birthdate YYYY-MM-DD → animal year
sign Force animal: ratpig
name / role Overrides (auto by default)
width 240900, default 360
glow 1 / true — soft halo + twinkle on the large hanzi only (default off; best when opening the SVG URL directly — GitHub Camo is a still frame)

Stats

Each card shows 3 of 5 traits. Which three appear depends on the animal’s statKeys. Values are scaled from public GitHub signals (0–100) — same math as the Western sister project, Asian-flavored names.

Stat Western twin Drawn from (roughly)
Discipline Consistency Account age + repos per year
Ingenuity Explorer Distinct languages + public repos
Craft Builder Public repos + stars + forks
Renown Open Source Stars + forks + followers
Insight Debugger Open issues + repos (+ a little stars)

Local development

npm start
# http://localhost:3000

npm run preview:gists

Contributing

Designs, copy, animal-flavored roles, better New Year tables — welcome anytime.
Highest-priority gap today: pinned Gist hanzi seal alignment (see help wanted).
See CONTRIBUTING.md.

Credits / attribution

Animal artwork is derived from a Magnific (Freepik) asset under a free license with attribution:

Used for Asset Designed by Certificate
README banner + title animals (docs/readme-banner.jpg, assets/animals) chinese zodiac new year signs — red silhouettes tartila — Magnific.com docs/license-chinese-zodiac-red-silhouettes-10722644.pdf
Card background animals (assets/animals-gold) chinese new year animals — gold zodiac sign stickers Magnific / Freepik docs/license-chinese-zodiac-gold-animals-18226630.pdf

License

MIT © seuthootDev

Third-party artwork remains under its Magnific license (see certificate above); the MIT license covers this repository’s code.

About

Asian zodiac (十二生肖) SVG + pinned Gist cards from your GitHub activity

Topics

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages