Skip to content

Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost.

fix(docs): URL-encode owner/repo before hitting the GitHub API in star-history (#534)

JonyT Agenticbd5ca9af2ecd
diff --git a/docs/star-history.html b/docs/star-history.html
index fc2e59b..34c8eed 100644
--- a/docs/star-history.html
+++ b/docs/star-history.html
@@ -234,7 +234,7 @@ title: Star History — Loop Engineering
const timestamps = [];
let page = 1;
while (true) {
- const url = `https://api.github.com/repos/${owner}/${repo}/stargazers?per_page=100&page=${page}`;
+ const url = `https://api.github.com/repos/${encodeURIComponent(owner)}/${encodeURIComponent(repo)}/stargazers?per_page=100&page=${page}`;
const res = await fetch(url, {
headers: {
Accept: 'application/vnd.github.v3.star+json',