Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

feat(profile): embed a star-history chart of the featured repos in the generated profile README

nirholas08a951b6f241
diff --git a/scripts/build-github-profile.mjs b/scripts/build-github-profile.mjs
index d8340fd25..a115be0f5 100644
--- a/scripts/build-github-profile.mjs
+++ b/scripts/build-github-profile.mjs
@@ -118,6 +118,9 @@ export function buildProfile(allRepos, { includeGated = false, activityData = nu
if (activity) Object.assign(assets, renderActivityVisuals(activity));
const pic = (name, alt) =>
`<picture><source media="(prefers-color-scheme: dark)" srcset="./assets/${name}-dark.svg"/><source media="(prefers-color-scheme: light)" srcset="./assets/${name}-light.svg"/><img alt="${alt}" src="./assets/${name}-light.svg" width="100%"/></picture>`;
+ const historyRepos = featured.map((r) => `${OWNER}/${r.name}`).join(',');
+ const historySvg = (dark) => `https://api.star-history.com/svg?repos=${historyRepos}&type=Date${dark ? '&theme=dark' : ''}`;
+ const starHistory = `<a href="https://www.star-history.com/${OWNER}"><picture><source media="(prefers-color-scheme: dark)" srcset="${historySvg(true)}"/><source media="(prefers-color-scheme: light)" srcset="${historySvg(false)}"/><img alt="Star history of the most-starred repositories" src="${historySvg(false)}" width="100%"/></picture></a>`;
const anchor = (t) => t.toLowerCase().replace(/[^a-z0-9 -]/g, '').trim().replace(/\s+/g, '-');
const readme = `<h1 align="center">${OWNER}</h1>
@@ -156,6 +159,8 @@ ${pic('growth', 'Cumulative repositories over time, stacked by section')}
${pic('languages', 'A spinning 3D donut of primary languages')}
${pic('punchcard', 'Punchcard of when repositories were created, by weekday and hour')}
+
+${starHistory}
${activity ? activitySection(activity, pic) : ''}
## Find your way
diff --git a/tests/github-profile.test.js b/tests/github-profile.test.js
index 5c75f6450..ad3ba87f6 100644
--- a/tests/github-profile.test.js
+++ b/tests/github-profile.test.js
@@ -60,6 +60,13 @@ describe('github profile', () => {
expect(llms).not.toMatch(/three\.ws ecosystem|## Platform/);
});
+ it('embeds a themed star-history chart of the featured repos linked to star-history.com', () => {
+ const { readme } = buildProfile(repos);
+ expect(readme).toContain('href="https://www.star-history.com/nirholas"');
+ expect(readme).toContain('https://api.star-history.com/svg?repos=nirholas/big-tool,nirholas/agent-mcp');
+ expect(readme).toContain('&theme=dark');
+ });
+
it('shortens section titles for tight labels', () => {
expect(shortTitle('Developer tools and everything else')).toBe('Developer tools');
expect(shortTitle('MCP servers for AI agents')).toBe('MCP servers');