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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(open-source): point Source links at GitHub instead of three.ws 404s
nirholasd8565ff1b3f3
diff --git a/data/open-source-credits.json b/data/open-source-credits.jsonindex ab6efb329..ada47cf4f 100644--- a/data/open-source-credits.json+++ b/data/open-source-credits.json@@ -124,7 +124,7 @@"name": "compression","area": "formats","license": "MIT",- "repo": "expressjs/compression",+ "repo": "https://github.com/expressjs/compression","funding": "https://opencollective.com/express","version": "1.8.2","powers": null@@ -669,7 +669,7 @@"name": "@ethereum-attestation-service/eas-sdk","area": "infrastructure","license": "MIT",- "repo": "[email protected]:ethereum-attestation-service/eas-sdk",+ "repo": "https://github.com/ethereum-attestation-service/eas-sdk","funding": null,"version": "2.10.0","powers": null@@ -757,7 +757,7 @@"name": "@kamino-finance/klend-sdk","area": "infrastructure","license": "MIT",- "repo": "github.com:Kamino-Finance/klend-sdk",+ "repo": "https://github.com/Kamino-Finance/klend-sdk","funding": null,"version": "13.0.5","powers": null@@ -1208,7 +1208,7 @@"name": "@upstash/redis","area": "infrastructure","license": "MIT",- "repo": "[email protected]:upstash/redis-js",+ "repo": "https://github.com/upstash/redis-js","funding": null,"version": "1.39.0","powers": null@@ -1406,7 +1406,7 @@"name": "ajv","area": "infrastructure","license": "MIT",- "repo": "ajv-validator/ajv",+ "repo": "https://github.com/ajv-validator/ajv","funding": "https://github.com/sponsors/epoberezkin","version": "8.20.0","powers": "JSON Schema validation for API payloads and agent tool schemas."@@ -1472,7 +1472,7 @@"name": "bn.js","area": "infrastructure","license": "MIT",- "repo": "[email protected]:indutny/bn.js",+ "repo": "https://github.com/indutny/bn.js","funding": null,"version": "5.2.5","powers": null@@ -1505,7 +1505,7 @@"name": "cborg","area": "infrastructure","license": "Apache-2.0",- "repo": "[email protected]:rvagg/cborg",+ "repo": "https://github.com/rvagg/cborg","funding": null,"version": "6.1.4","powers": null@@ -1659,7 +1659,7 @@"name": "express","area": "infrastructure","license": "MIT",- "repo": "expressjs/express",+ "repo": "https://github.com/expressjs/express","funding": "https://opencollective.com/express","version": "5.3.0","powers": "The HTTP server behind server/index.mjs in production."@@ -1703,7 +1703,7 @@"name": "glob","area": "infrastructure","license": "BlueOak-1.0.0",- "repo": "[email protected]:isaacs/node-glob",+ "repo": "https://github.com/isaacs/node-glob","funding": "https://github.com/sponsors/isaacs","version": "11.1.0","powers": null@@ -1758,7 +1758,7 @@"name": "jose","area": "infrastructure","license": "MIT",- "repo": "panva/jose",+ "repo": "https://github.com/panva/jose","funding": "https://github.com/sponsors/panva","version": "6.2.13","powers": null@@ -1813,7 +1813,7 @@"name": "livekit-client","area": "infrastructure","license": "Apache-2.0",- "repo": "[email protected]:livekit/client-sdk-js",+ "repo": "https://github.com/livekit/client-sdk-js","funding": null,"version": "2.23.0","powers": "Real-time audio/video for the LiveKit avatar presence lane."@@ -1835,7 +1835,7 @@"name": "lru-cache","area": "infrastructure","license": "BlueOak-1.0.0",- "repo": "ssh://[email protected]/isaacs/node-lru-cache",+ "repo": "https://github.com/isaacs/node-lru-cache","funding": null,"version": "11.5.3","powers": null@@ -1901,7 +1901,7 @@"name": "nanoid","area": "infrastructure","license": "MIT",- "repo": "ai/nanoid",+ "repo": "https://github.com/ai/nanoid","funding": "https://github.com/sponsors/ai","version": "6.0.2","powers": null@@ -1956,7 +1956,7 @@"name": "p-limit","area": "infrastructure","license": "MIT",- "repo": "sindresorhus/p-limit",+ "repo": "https://github.com/sindresorhus/p-limit","funding": "https://github.com/sponsors/sindresorhus","version": "7.3.3","powers": null@@ -1989,7 +1989,7 @@"name": "prettier","area": "infrastructure","license": "MIT",- "repo": "prettier/prettier",+ "repo": "https://github.com/prettier/prettier","funding": "https://github.com/prettier/prettier?sponsor=1","version": "3.9.10","powers": null@@ -2055,7 +2055,7 @@"name": "sas-lib","area": "infrastructure","license": "MIT",- "repo": "[email protected]:solana-foundation/solana-attestation-service",+ "repo": "https://github.com/solana-foundation/solana-attestation-service","funding": null,"version": "1.0.10","powers": null@@ -2514,7 +2514,7 @@"name": "@sparkjsdev/spark","area": "rendering","license": "MIT",- "repo": "sparkjsdev/spark",+ "repo": "https://github.com/sparkjsdev/spark","funding": null,"version": "2.4.0","powers": "Gaussian-splat rendering for captured scenes and reconstructed environments."diff --git a/scripts/lib/open-source-credits.mjs b/scripts/lib/open-source-credits.mjsindex 5979ab1ed..6008e003e 100644--- a/scripts/lib/open-source-credits.mjs+++ b/scripts/lib/open-source-credits.mjs@@ -566,11 +566,21 @@ function npmEntries() {return entries;}-function normalizeRepoUrl(repo) {+export function normalizeRepoUrl(repo) {if (!repo) return null;- return repo+ let url = repo.replace(/^git\+/, '')- .replace(/\.git$/, '')+ .replace(/\.git$/, '');+ if (/^git@([^:]+):(.+)$/.test(url)) {+ url = url.replace(/^git@([^:]+):(.+)$/, 'https://$1/$2');+ } else if (/^ssh:\/\/git@([^/]+)\/(.+)$/.test(url)) {+ url = url.replace(/^ssh:\/\/git@([^/]+)\/(.+)$/, 'https://$1/$2');+ } else if (/^[^/:]+\.[^/:]+:[^/]+\/[^/]+$/.test(url)) {+ url = url.replace(/^([^:]+):(.+)$/, 'https://$1/$2');+ } else if (/^[^/\s:]+\/[^/\s:]+$/.test(url)) {+ url = `https://github.com/${url}`;+ }+ return url.replace(/^git:\/\//, 'https://').replace(/^github:/, 'https://github.com/');}diff --git a/src/open-source.js b/src/open-source.jsindex 763f3eb2f..4568bf377 100644--- a/src/open-source.js+++ b/src/open-source.js@@ -22,7 +22,9 @@ function escapeHtml(s) {function renderCard(entry) {const kindLabel = KIND_LABEL[entry.kind] || entry.kind;const links = [];- if (entry.repo) links.push(`<a href="${escapeHtml(entry.repo)}" rel="noopener" target="_blank">Source</a>`);+ if (entry.repo && /^https?:\/\//.test(entry.repo)) {+ links.push(`<a href="${escapeHtml(entry.repo)}" rel="noopener" target="_blank">Source</a>`);+ }if (entry.funding) links.push(`<a href="${escapeHtml(entry.funding)}" rel="noopener" target="_blank">Sponsor</a>`);return `<div class="os-card">diff --git a/tests/open-source-credits.test.js b/tests/open-source-credits.test.jsindex b31278f38..05efbb266 100644--- a/tests/open-source-credits.test.js+++ b/tests/open-source-credits.test.js@@ -12,7 +12,7 @@ import { describe, it, expect } from 'vitest';import { readFileSync } from 'node:fs';import { resolve } from 'node:path';-import { buildCredits, AREAS, ROOT } from '../scripts/lib/open-source-credits.mjs';+import { buildCredits, normalizeRepoUrl, AREAS, ROOT } from '../scripts/lib/open-source-credits.mjs';describe('open-source-credits dataset', () => {it('matches the committed data/open-source-credits.json exactly', () => {@@ -59,4 +59,74 @@ describe('open-source-credits dataset', () => {expect(text.includes(emDash)).toBe(false);expect(text.includes(enDash)).toBe(false);});++ it('every entry with a repo field has an http(s) URL, never a three.ws-relative or ssh path', () => {+ const { entries } = buildCredits();+ for (const entry of entries) {+ if (entry.repo) {+ expect(entry.repo, `${entry.id} has a non-http(s) repo "${entry.repo}"`).toMatch(+ /^https?:\/\//,+ );+ }+ }+ });+});++describe('normalizeRepoUrl', () => {+ it('returns null for a missing repo field', () => {+ expect(normalizeRepoUrl(null)).toBe(null);+ expect(normalizeRepoUrl(undefined)).toBe(null);+ });++ it('leaves a full https URL unchanged', () => {+ expect(normalizeRepoUrl('https://github.com/mrdoob/three.js')).toBe(+ 'https://github.com/mrdoob/three.js',+ );+ });++ it('strips a leading git+ and trailing .git', () => {+ expect(normalizeRepoUrl('git+https://github.com/foo/bar.git')).toBe(+ 'https://github.com/foo/bar',+ );+ });++ it('converts git:// to https://', () => {+ expect(normalizeRepoUrl('git://github.com/foo/bar.git')).toBe('https://github.com/foo/bar');+ });++ it('converts github: shorthand to a full URL', () => {+ expect(normalizeRepoUrl('github:foo/bar')).toBe('https://github.com/foo/bar');+ });++ it('converts bare owner/repo shorthand to a GitHub URL', () => {+ expect(normalizeRepoUrl('ajv-validator/ajv')).toBe('https://github.com/ajv-validator/ajv');+ expect(normalizeRepoUrl('expressjs/express')).toBe('https://github.com/expressjs/express');+ expect(normalizeRepoUrl('panva/jose')).toBe('https://github.com/panva/jose');+ expect(normalizeRepoUrl('sindresorhus/p-limit')).toBe(+ 'https://github.com/sindresorhus/p-limit',+ );+ expect(normalizeRepoUrl('sparkjsdev/spark')).toBe('https://github.com/sparkjsdev/spark');+ expect(normalizeRepoUrl('ai/nanoid')).toBe('https://github.com/ai/nanoid');+ });++ it('converts git@host:owner/repo SSH shorthand to a full URL', () => {+ expect(normalizeRepoUrl('[email protected]:upstash/redis-js')).toBe(+ 'https://github.com/upstash/redis-js',+ );+ expect(normalizeRepoUrl('[email protected]:isaacs/node-glob')).toBe(+ 'https://github.com/isaacs/node-glob',+ );+ });++ it('converts a scheme-less host:owner/repo form to a full URL', () => {+ expect(normalizeRepoUrl('github.com:Kamino-Finance/klend-sdk')).toBe(+ 'https://github.com/Kamino-Finance/klend-sdk',+ );+ });++ it('converts an explicit ssh://git@host/owner/repo URL to a full URL', () => {+ expect(normalizeRepoUrl('ssh://[email protected]/isaacs/node-lru-cache')).toBe(+ 'https://github.com/isaacs/node-lru-cache',+ );+ });});