Studio
The studio is a small web app that runs on your own computer. Arrange README sections, add cards from the catalog, tune their options and watch the README as GitHub will show it, with your real data.
Start the studio
- Open the folder of your profile repository, the one with
README.md. - Run
profile-graphics studio. It prints a local address and opens it in your browser. - Build the README, then press Review and save.
cd octocat
profile-graphics studio
Pass a folder to work elsewhere. --demo uses built-in demo data and needs no token, --no-open only prints the address, --port picks the port (a free one by default) and --user sets the login for a new config.
profile-graphics studio ./profile --demo --no-open --port 4175 --user octocat
What you can do
- Reorder the README sections (header, about me, tech stack, stats, projects, feeds and footer) by dragging their handle or with the keyboard: Space picks a section up, the arrow keys move it, Space drops it, and Alt with an arrow moves it at once.
- Search the card catalog and add any card to the section marked as the target.
- Change the options of the selected card in a form built from the card schema. Lists and nested options stay in
profile-graphics.yml. - Preview the README in GitHub's light and dark themes and at phone width.
What a save writes
Before writing anything the studio shows a diff. A save changes the charts list of profile-graphics.yml, keeping its other settings and comments, and the studio block of README.md between the studio markers. Text outside the markers stays as it is; a README without the block gets it appended at the end.
# Hi, I'm Octocat
Text you write yourself stays where it is.
<!-- profile-graphics:start studio -->
<!-- profile-graphics:section stats -->
## Stats
<!-- profile-graphics:start summary -->
<img src="dist/summary.svg" alt="octocat's GitHub stats" width="460">
<!-- profile-graphics:end summary -->
<!-- profile-graphics:end studio -->
Each card keeps its own profile-graphics:start marker inside the block, so profile-graphics generate and the Action refresh the images on every run.
Tokens and safety
- The studio listens on
127.0.0.1only and accepts requests with the one-off session token from the printed address; requests from other sites or host names are refused. - The GitHub token comes from
GITHUB_TOKEN,GH_TOKENorgh auth tokenand stays in the studio process: it is never sent to the browser, written to files or printed. - Data is fetched once per session and reused while you edit, so moving cards around costs no extra API calls.
- The studio writes only
profile-graphics.ymland the README inside the project folder and refuses paths that leave it.