Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

Site: website/members-live.json, the live members file (counter + names minutes after a payment, no app release)

islandmedd1c0fe288803
diff --git a/tools/guide/build_site.py b/tools/guide/build_site.py
index 1751dbf5..449feb55 100644
--- a/tools/guide/build_site.py
+++ b/tools/guide/build_site.py
@@ -944,10 +944,26 @@ def check(index: Page, chapters) -> list:
SUPPORTERS = ROOT / "docs" / "supporters.txt"
SUPPORTERS_PAGE = ROOT / "website" / "supporters.html"
-FOUNDING = ROOT / "website" / "founding.json" # the first 100 members (updated by hand; the app compiles it in too)
-# Names consented since the last release (site lane: live in minutes, written by the onboarding script). The next
-# release moves them into docs/supporters.txt; names already there are shown once.
-SITE_NAMES = ROOT / "website" / "members-site.txt"
+FOUNDING = ROOT / "website" / "founding.json" # the app's compiled copy (Help > About), refreshed each release
+# The site's live copy (site lane, no app release): written by ~/Work/.sf/members/onboard.py within a minute or two of
+# a payment, from members.csv. When it is there it is the whole truth for this page and support.html:
+# {"limit": 100, "taken": 3, "names": [Founding Members' credit names], "members": [every credited name],
+# "studios": 0, "updated": "..."}. --app-credits copies it into founding.json + docs/supporters.txt for a release.
+LIVE_MEMBERS = ROOT / "website" / "members-live.json"
+
+
+def live_members():
+ try:
+ f = json.loads(LIVE_MEMBERS.read_text(encoding="utf-8"))
+ except (OSError, ValueError):
+ return None
+ if not isinstance(f, dict) or not isinstance(f.get("names"), list) or not isinstance(f.get("members"), list):
+ return None
+ return f
+
+
+def name_list(listed) -> list:
+ return supporter_names("\n".join(n.replace("\n", " ") for n in listed if isinstance(n, str)))
def supporter_names(text: str) -> list:
@@ -970,22 +986,23 @@ def supporter_names(text: str) -> list:
def supporters_html() -> str:
- raw = SUPPORTERS.read_bytes().decode("utf-8", errors="ignore") if SUPPORTERS.exists() else ""
- names = supporter_names(raw)
- if SITE_NAMES.exists():
- names += [n for n in supporter_names(SITE_NAMES.read_bytes().decode("utf-8", errors="ignore")) if n not in names]
+ live = live_members()
+ if live:
+ names, fnames = name_list(live["members"]), name_list(live["names"])
+ else:
+ raw = SUPPORTERS.read_bytes().decode("utf-8", errors="ignore") if SUPPORTERS.exists() else ""
+ names = supporter_names(raw)
+ try:
+ f = json.loads(FOUNDING.read_text(encoding="utf-8"))
+ fnames = name_list(f.get("names")) if isinstance(f, dict) and isinstance(f.get("names"), list) else []
+ except (OSError, ValueError):
+ fnames = []
if names:
body = ('<ul class="supporters">\n' + "".join(f" <li>{html.escape(n)}</li>\n" for n in names)
+ " </ul>")
else:
body = '<p class="lede">Be the first: <a href="support.html">become a member</a>.</p>'
founding = ""
- try:
- f = json.loads(FOUNDING.read_text(encoding="utf-8"))
- listed = f.get("names") if isinstance(f, dict) and isinstance(f.get("names"), list) else []
- fnames = supporter_names("\n".join(n.replace("\n", " ") for n in listed if isinstance(n, str)))
- except (OSError, ValueError):
- fnames = []
if fnames: # (parseFoundingMembers in src/app/Support.h: the same names in Help > About)
founding = ('\n <section class="section alt" id="founding">\n <div class="wrap">\n'
' <h2>Founding Members</h2>\n <p>The first 100 members, with our thanks for good.</p>\n'
@@ -1007,7 +1024,7 @@ def supporters_html() -> str:
.supporters {{ columns: 3 14em; column-gap: 32px; padding: 0; list-style: none; }}
.supporters li {{ break-inside: avoid; padding: 4px 0; }}
</style>
- <!-- Generated by tools/guide/build_site.py from docs/supporters.txt, website/members-site.txt and website/founding.json; edit those, not this one. -->
+ <!-- Generated by tools/guide/build_site.py from website/members-live.json (else docs/supporters.txt and website/founding.json); edit those, not this one. -->
</head>
<body>
<header class="nav">
@@ -1049,17 +1066,36 @@ def supporters_html() -> str:
"""
+def app_credits() -> int:
+ """The release step: the app's Help > About lists and the card's fallback count, from the site's live copy."""
+ live = live_members()
+ if not live:
+ print("no website/members-live.json: the app copies stay as they are")
+ return 0
+ f = {"limit": int(live.get("limit", 100)), "taken": int(live.get("taken", 0)), "names": name_list(live["names"])}
+ FOUNDING.write_text(json.dumps(f, indent=2, ensure_ascii=False) + "\n", encoding="utf-8")
+ raw = SUPPORTERS.read_text(encoding="utf-8") if SUPPORTERS.exists() else ""
+ head = "".join(l + "\n" for l in raw.split("\n") if l.lstrip(" \t\r").startswith("#"))
+ SUPPORTERS.write_text(head + "".join(n + "\n" for n in name_list(live["members"])), encoding="utf-8")
+ print(f"founding.json: {f['taken']} of {f['limit']}, {len(f['names'])} names; supporters.txt: {len(live['members'])} names")
+ return 0
+
+
def main() -> int:
ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
ap.add_argument("--out", type=pathlib.Path, default=ROOT / "website" / "guide")
ap.add_argument("--check", action="store_true", help="fail on broken links, missing images or bad characters")
ap.add_argument("--supporters", action="store_true", help="only write website/supporters.html (the site deploy)")
+ ap.add_argument("--app-credits", action="store_true",
+ help="copy website/members-live.json into the app's compiled copies (founding.json, docs/supporters.txt)")
args = ap.parse_args()
+ if args.app_credits:
+ return app_credits()
if args.supporters:
SUPPORTERS_PAGE.write_text(supporters_html(), encoding="utf-8")
return 0
if args.check and SUPPORTERS_PAGE.exists() and SUPPORTERS_PAGE.read_text(encoding="utf-8") != supporters_html():
- print("website/supporters.html is out of date with docs/supporters.txt / website/members-site.txt: run tools/guide/build_site.py",
+ print("website/supporters.html is out of date with website/members-live.json / docs/supporters.txt: run tools/guide/build_site.py",
file=sys.stderr)
return 1
index, chapters = load_book()
diff --git a/website/members-live.json b/website/members-live.json
new file mode 100644
index 00000000..b9cb974c
--- /dev/null
+++ b/website/members-live.json
@@ -0,0 +1,14 @@
+{
+ "limit": 100,
+ "taken": 3,
+ "names": [
+ "Richard Throgmorton (MakIt3D)",
+ "macklorange"
+ ],
+ "members": [
+ "Richard Throgmorton (MakIt3D)",
+ "macklorange"
+ ],
+ "studios": 0,
+ "updated": "2026-11-07T17:00"
+}
diff --git a/website/support.html b/website/support.html
index bb8acc12..5c9359cc 100644
--- a/website/support.html
+++ b/website/support.html
@@ -94,7 +94,7 @@
.support-fine { margin-top: 18px; max-width: 860px; margin-left: auto; margin-right: auto; }
.tier .price .now { color: var(--tier-title); font-size: inherit; font-weight: inherit; letter-spacing: inherit; margin: 0; }
.tier .per-year { margin-top: -4px; font-size: 0.9rem; }
- /* Founding Member: the first 100 members (founding.json, updated by hand). Hidden once they are taken. */
+ /* Founding Member: the first 100 members (members-live.json, else founding.json). Hidden once they are taken. */
.founding { margin: 4px 0 18px; padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; line-height: 1.45;
border: 1px solid rgba(246, 153, 77, 0.45); background: rgba(246, 153, 77, 0.08); color: var(--tier-text); }
.tier .founding strong { color: #f6994d; }
@@ -361,11 +361,13 @@
alt.textContent = year ? '$4 a month, billed yearly' : 'or $48 a year';
}));
})();
- // Founding Member places left, from founding.json (updated by hand): the note goes once all 100 are taken.
+ // Founding Member places left, from members-live.json (onboarding writes it minutes after a payment; else the
+ // release's founding.json): the note goes once all 100 are taken.
(() => {
const note = document.querySelector('[data-founding]'), left = document.querySelector('[data-founding-left]');
if (!note || !left) return;
- fetch('founding.json', { cache: 'no-cache' }).then((r) => (r.ok ? r.json() : null)).then((f) => {
+ const get = (u) => fetch(u, { cache: 'no-cache' }).then((r) => (r.ok ? r.json() : Promise.reject(r.status)));
+ get('members-live.json').catch(() => get('founding.json')).then((f) => {
if (!f || !Number.isFinite(f.limit) || !Number.isFinite(f.taken)) return;
const n = Math.max(0, Math.round(f.limit - f.taken));
if (n === 0) { note.hidden = true; return; }
diff --git a/website/supporters.html b/website/supporters.html
index 1dd90c29..40939905 100644
--- a/website/supporters.html
+++ b/website/supporters.html
@@ -13,7 +13,7 @@
.supporters { columns: 3 14em; column-gap: 32px; padding: 0; list-style: none; }
.supporters li { break-inside: avoid; padding: 4px 0; }
</style>
- <!-- Generated by tools/guide/build_site.py from docs/supporters.txt, website/members-site.txt and website/founding.json; edit those, not this one. -->
+ <!-- Generated by tools/guide/build_site.py from website/members-live.json (else docs/supporters.txt and website/founding.json); edit those, not this one. -->
</head>
<body>
<header class="nav">