Skip to content

Canvix — Free & open-source graphic design tool. A community-built Canva alternative with a drag-and-drop editor, templates, shapes, text, images & one-click export. Works on desktop, tablet & mobile.

fix(v0.32.7): funding.json well-known URL-form mismatch — six forms + the manifest on canvix.app

Ashiq Hussain Mir56915c902609
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 6c4627d..acfbf01 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -261,10 +261,21 @@ jobs:
# fundingjson.org cross-domain ownership verification: the
# standalone PRODUCTION server must serve public/.well-known/
# statically (dev-mode serving is covered by the e2e smoke).
- BODY=$(curl -fsS http://localhost:3000/.well-known/funding-manifest-urls 2>/dev/null)
- echo "well-known: $BODY"
- EXPECTED="https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json"
- [ "$BODY" = "$EXPECTED" ] || { echo "well-known file wrong or missing"; exit 1; }
+ # v0.32.7: the file lists every fetchable form of the manifest
+ # URL — the checkers do exact-string membership, so diff the
+ # served bytes against the committed file (all six forms).
+ curl -fsS http://localhost:3000/.well-known/funding-manifest-urls -o /tmp/wk
+ cat /tmp/wk
+ diff /tmp/wk public/.well-known/funding-manifest-urls \
+ || { echo "well-known file wrong or missing"; exit 1; }
+
+ - name: Funding-manifest domain copy serves (v0.32.7)
+ run: |
+ # canvix.app/funding.json — the domain-hosted manifest copy
+ # (byte-identical to the repository manifest, asserted by the
+ # unit test). The production container must serve it too.
+ curl -fsS http://localhost:3000/funding.json -o /tmp/fj
+ diff /tmp/fj funding.json || { echo "funding.json copy wrong or missing"; exit 1; }
- name: Assert the stack is clean after down
if: always()
diff --git a/.well-known/funding-manifest-urls b/.well-known/funding-manifest-urls
new file mode 100644
index 0000000..f5b3379
--- /dev/null
+++ b/.well-known/funding-manifest-urls
@@ -0,0 +1,6 @@
+https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json
+https://raw.githubusercontent.com/mir-ashiq/canvix/main/funding.json
+https://github.com/mir-ashiq/canvix/blob/main/funding.json
+https://github.com/mir-ashiq/canvix/raw/refs/heads/main/funding.json
+https://github.com/mir-ashiq/canvix/raw/main/funding.json
+https://canvix.app/funding.json
diff --git a/CHANGELOG.md b/CHANGELOG.md
index df7651e..b374ec3 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,30 @@
All notable changes to Canvix will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
+### Fixed — v0.32.7: the funding.json .well-known URL-form mismatch
+
+- **The failure:** `canvix.app/.well-known/funding-manifest-urls` listed
+ the manifest URL in exactly one form (`raw.githubusercontent.com/…`),
+ but the fundingjson.org checkers do **exact-string membership**: the
+ grants-directory crawl looked for the `github.com/…/raw/refs/heads/main/…`
+ form and the official validator was handed the `github.com/…/blob/main/…`
+ form — both reported "manifest URL … was not found in the .well-known
+ list" while the file was live, and the directory listing kept the
+ repository link flagged "Unverified URL".
+- **The fix:** the well-known file now lists every fetchable form of
+ the manifest URL (six lines — the raw forms verified byte-identical,
+ the blob form being GitHub's file view);
+ **canvix.app/funding.json** now serves a byte-identical copy of the
+ manifest (was 404); and the repository itself gained
+ `.well-known/funding-manifest-urls` plus the schema-documented
+ `repositoryUrl.wellKnown` in-repo verification (the official v1.1.0
+ schema's own pattern for repository URLs — github.com cannot serve
+ /.well-known per repository).
+- Guards: the unit test asserts the six-line list, repo↔public file
+ identity and the byte-identical domain copy; e2e smoke + the CI docker
+ job assert both routes serve the exact bytes. Unit 1,748/1,748 (+3);
+ e2e smoke +1 spec.
+
### Changed — v0.32.6: ONE agent, ZERO selectors + the canvas map
- **One surface:** the five-tab unified app (Chat / Generate / Write /
diff --git a/docs/FUNDING-VALIDATION.md b/docs/FUNDING-VALIDATION.md
index b62ce79..0e7d31c 100644
--- a/docs/FUNDING-VALIDATION.md
+++ b/docs/FUNDING-VALIDATION.md
@@ -44,11 +44,11 @@
| Check | Result |
|---|---|
-| File content | ✅ `public/.well-known/funding-manifest-urls` contains exactly `https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json` (asserted by unit test) |
+| File content | ✅ (2026-11-24) `public/.well-known/funding-manifest-urls` contained exactly `https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json` (asserted by unit test) — **superseded 2026-11-26** by the six-form list (§8) |
| Dev-server serving | ✅ `curl http://localhost:3000/.well-known/funding-manifest-urls` → 200 + exact content (verified against the running dev server) |
| e2e (dev) | ✅ new smoke spec fetches the route and compares the body — 5/5 passing locally; runs in the CI e2e job |
| Production standalone serving | ✅ CI **docker** job asserts the production container serves the file — green on PR #86 |
-| **Live at https://canvix.app** | ✅ **VERIFIED 2026-11-24** — `GET https://canvix.app/.well-known/funding-manifest-urls` → **200**, body exactly `https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json` (deploy `52eb8e0`, VPS auto-deploy "DEPLOY OK", service active, health green, 366 templates). **The `wellKnown` property is now ACTIVATED in the manifest** — pointing at the live URL — with the honesty-guard test flipped to assert its presence |
+| **Live at https://canvix.app** | ✅ **VERIFIED 2026-11-24** — `GET https://canvix.app/.well-known/funding-manifest-urls` → **200**, body exactly `https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json` (deploy `52eb8e0`, VPS auto-deploy "DEPLOY OK", service active, health green, 366 templates). **The `wellKnown` property is now ACTIVATED in the manifest** — pointing at the live URL — with the honesty-guard test flipped to assert its presence — **superseded 2026-11-26** by the six-form live check (§8) |
## 5. Application status (FOSS United)
@@ -72,3 +72,47 @@
3. The official directory validator accepted the manifest, but the grants directory's weekly refresh is the update mechanism with a reported (not SLA-backed) weekly cadence.
4. Adoption figures in the proposal are self-reported and dated (labeled as such there).
5. The verification file is served with `Content-Type: application/octet-stream` (Next's static default for extensionless files). The fundingjson.org spec specifies plain text, one URL per line — the body is exactly that; no directory-side content-type requirement is documented, and the official validator accepts the manifest. If a stricter consumer ever appears, add an explicit `text/plain` route.
+
+## 8. 2026-11-26 addendum — the URL-form mismatch fix (v0.32.7)
+
+**The failure:** the verification file listed the manifest URL in exactly one
+form — `https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json`
+— but the fundingjson.org checkers do **exact-string membership**, not
+normalization. The directory crawl looked for
+`https://github.com/mir-ashiq/canvix/raw/refs/heads/main/funding.json` and the
+official validator was handed
+`https://github.com/mir-ashiq/canvix/blob/main/funding.json`, so both reported
+"manifest URL … was not found in the .well-known list" while the file was live
+and byte-correct. The directory listing also kept the repository link flagged
+"Unverified URL" — no `wellKnown` was provided for `repositoryUrl`, and
+github.com cannot serve `/.well-known` per repository.
+
+**The fix (supersedes the two §4 rows above where they say "exactly" one URL):**
+
+- `public/.well-known/funding-manifest-urls` now lists **every fetchable
+ form** of the manifest URL — six lines: the two `raw.githubusercontent.com`
+ forms and the `github.com` raw forms (all verified byte-identical to the
+ repository manifest, sha256 `c4ca1020…d13fda`), the `github.com` blob form
+ (200 — GitHub's file view of the same file) and the domain-hosted copy.
+- **`canvix.app/funding.json`** now serves a byte-identical copy of the
+ manifest (previously 404) — the manifest lives on the domain itself, listed
+ in the well-known file.
+- **`.well-known/funding-manifest-urls`** was added at the repository root and
+ `repositoryUrl.wellKnown` now points at its blob URL — the official v1.1.0
+ schema documents exactly this in-repository pattern for `repositoryUrl`
+ ("This url should be a file in the repository … should end with
+ /.well-known/funding-manifest-urls").
+- Guards: the unit test asserts the six-line list, the repo↔public file
+ identity and the byte-identical domain copy; the e2e smoke asserts
+ dev-server serving of both routes; the CI docker job diffs the served bytes
+ against the committed files.
+
+| Check | Method | Result |
+|---|---|---|
+| Official schema accepts the manifest (incl. `repositoryUrl.wellKnown`) | `fastjsonschema` against `https://fundingjson.org/schema/v1.1.0.json` | ✅ valid (2026-11-26) |
+| All five GitHub URL forms fetchable | `curl -sL` + sha256 per form | ✅ 200 each; raw forms byte-identical (`c4ca1020…d13fda`), blob form = GitHub's HTML file view |
+| Repo-root `.well-known` ≡ `public/.well-known` (bytes) | unit test | ✅ |
+| `public/funding.json` ≡ `funding.json` (bytes) | unit test | ✅ |
+| Dev-server serving of both routes | e2e smoke (CI e2e job) | ⏳ UNVERIFIED until the v0.32.7 CI run |
+| Production-container serving of both routes | CI docker job (diff) | ⏳ UNVERIFIED until the v0.32.7 CI run |
+| Live `https://canvix.app` serving of both routes | `curl` after the VPS auto-deploy | ⏳ UNVERIFIED until the auto-deploy of this commit |
diff --git a/docs/VPS-DEPLOY-RUNBOOK.md b/docs/VPS-DEPLOY-RUNBOOK.md
index fa1a494..2911a0f 100644
--- a/docs/VPS-DEPLOY-RUNBOOK.md
+++ b/docs/VPS-DEPLOY-RUNBOOK.md
@@ -54,8 +54,16 @@ systemctl restart canvix 2>/dev/null || pm2 restart canvix 2>/dev/null || \
curl -fsS https://canvix.app/api/health # {"ok":true, "database":{...}, "templates":366}
curl -fsS https://canvix.app/ -o /dev/null -w '%{http_code}\n' # 200
curl -fsS https://canvix.app/.well-known/funding-manifest-urls
-# → must print EXACTLY:
+# → must print EXACTLY (v0.32.7: every fetchable form of the manifest
+# URL, one per line — the fundingjson.org checkers do exact-string
+# membership, so a single canonical form was "not found in the list"):
# https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json
+# https://raw.githubusercontent.com/mir-ashiq/canvix/main/funding.json
+# https://github.com/mir-ashiq/canvix/blob/main/funding.json
+# https://github.com/mir-ashiq/canvix/raw/refs/heads/main/funding.json
+# https://github.com/mir-ashiq/canvix/raw/main/funding.json
+# https://canvix.app/funding.json
+curl -fsS https://canvix.app/funding.json # 200 — the domain-hosted manifest copy
```
If health fails or the site is down: restore the snapshot (`rm -rf .next/standalone && cp -a ~/standalone-backup-* .next/standalone`), restart, and investigate offline — the old build keeps serving.
diff --git a/funding.json b/funding.json
index 172aa5b..b02b261 100644
--- a/funding.json
+++ b/funding.json
@@ -21,7 +21,8 @@
"wellKnown": "https://canvix.app/.well-known/funding-manifest-urls"
},
"repositoryUrl": {
- "url": "https://github.com/mir-ashiq/canvix"
+ "url": "https://github.com/mir-ashiq/canvix",
+ "wellKnown": "https://github.com/mir-ashiq/canvix/blob/main/.well-known/funding-manifest-urls"
},
"licenses": [
"spdx:MIT"
diff --git a/public/.well-known/funding-manifest-urls b/public/.well-known/funding-manifest-urls
index f56796b..f5b3379 100644
--- a/public/.well-known/funding-manifest-urls
+++ b/public/.well-known/funding-manifest-urls
@@ -1 +1,6 @@
-https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json
\ No newline at end of file
+https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json
+https://raw.githubusercontent.com/mir-ashiq/canvix/main/funding.json
+https://github.com/mir-ashiq/canvix/blob/main/funding.json
+https://github.com/mir-ashiq/canvix/raw/refs/heads/main/funding.json
+https://github.com/mir-ashiq/canvix/raw/main/funding.json
+https://canvix.app/funding.json
diff --git a/public/funding.json b/public/funding.json
new file mode 100644
index 0000000..b02b261
--- /dev/null
+++ b/public/funding.json
@@ -0,0 +1,92 @@
+{
+ "$schema": "https://fundingjson.org/schema/v1.1.0.json",
+ "version": "v1.1.0",
+ "entity": {
+ "type": "individual",
+ "role": "maintainer",
+ "name": "Ashiq Hussain Mir",
+ "email": "[email protected]",
+ "description": "Solo maintainer of Canvix, a free and open-source graphic design platform, and a final-year computer-science student based in Jammu & Kashmir, India. Building Canvix full-time around classes since September 2026: 160+ commits, 156 test files (1,575 unit tests plus a 39-file Playwright end-to-end suite) and a live public deployment at canvix.app, all MIT-licensed. Requesting a six-month runway to deliver a design-output correctness, reproducible design-evaluation and creator-education program — a scope deliberately distinct from the pending NLnet application (deployment trust, collaboration scaling, mobile editing, sharing and v1.0 stabilization), so that no hour or deliverable is funded twice.",
+ "webpageUrl": {
+ "url": "https://github.com/mir-ashiq"
+ }
+ },
+ "projects": [
+ {
+ "guid": "canvix",
+ "name": "Canvix",
+ "description": "Free and open-source graphic design platform — a self-hostable, browser-based editor with a 366-template library, real-time collaboration, and local exports to PNG, JPG, SVG, vector PDF, PPTX, GIF and video. MIT-licensed: every feature free, no watermarks, no paywalls, and try-without-account. The AI layer is modular and provider-independent (text, vision, image and video capability slots with bring-your-own-key), and AI-assisted designs remain native, editable elements rather than flattened images — so machine help still produces real design work. One-command Docker self-hosting makes it infrastructure any school, nonprofit or small organization can run itself. This grant funds design-output correctness (exact text and colors, reliable geometry), reproducible design-quality evaluation, and open creator education for the next six months.",
+ "webpageUrl": {
+ "url": "https://canvix.app",
+ "wellKnown": "https://canvix.app/.well-known/funding-manifest-urls"
+ },
+ "repositoryUrl": {
+ "url": "https://github.com/mir-ashiq/canvix",
+ "wellKnown": "https://github.com/mir-ashiq/canvix/blob/main/.well-known/funding-manifest-urls"
+ },
+ "licenses": [
+ "spdx:MIT"
+ ],
+ "tags": [
+ "design",
+ "graphics",
+ "web-design",
+ "web-development",
+ "artificial-intelligence",
+ "productivity"
+ ]
+ }
+ ],
+ "funding": {
+ "channels": [
+ {
+ "guid": "to-be-confirmed",
+ "type": "bank",
+ "address": "Indian bank transfer — details exchanged securely with the grant administrator after approval",
+ "description": "Placeholder channel: this manifest intentionally carries no private financial data. Payment details are exchanged securely with the grant administrator after approval and are never published in this public repository; only the channel's non-sensitive fields remain public."
+ }
+ ],
+ "plans": [
+ {
+ "guid": "m1-baseline-and-harness",
+ "status": "active",
+ "name": "Milestone 1 — Baseline & evaluation harness (Month 1)",
+ "description": "Publish the design-quality evaluation plan and a corpus of 20+ diverse briefs; record the current baseline with rendered screenshots, exact text/color comparisons and geometry analysis; set up the dedicated cross-browser test bench; open the public issue tracker and publish the first monthly progress report. Acceptance: evaluation plan, brief corpus, baseline report and tracker are live in the repository.",
+ "amount": 130000,
+ "currency": "INR",
+ "frequency": "one-time",
+ "channels": ["to-be-confirmed"]
+ },
+ {
+ "guid": "m2-design-output-correctness",
+ "status": "active",
+ "name": "Milestone 2 — Design-output correctness (Months 2–3)",
+ "description": "Improve brief-to-design constraint handling: verified exact text and color preservation, reliable native editable-element generation, deterministic layout and geometry checks, and reproducible browser tests. Acceptance: the brief-contract suite runs in CI, and every failure documented in the Milestone 1 baseline is fixed with published before/after evidence.",
+ "amount": 120000,
+ "currency": "INR",
+ "frequency": "one-time",
+ "channels": ["to-be-confirmed"]
+ },
+ {
+ "guid": "m3-grounded-visual-review",
+ "status": "active",
+ "name": "Milestone 3 — Grounded visual review (Months 4–5)",
+ "description": "Reliable comparison of requested versus actual design elements, screenshot-based inspection where a vision model is available, explicit fallback behavior when it is not, and prevention of invented-element claims in completions. Acceptance: public before/after evaluation results across the brief corpus, every verification claim backed by captured evidence, and documented remaining limitations.",
+ "amount": 120000,
+ "currency": "INR",
+ "frequency": "one-time",
+ "channels": ["to-be-confirmed"]
+ },
+ {
+ "guid": "m4-community-final-report",
+ "status": "active",
+ "name": "Milestone 4 — Community, release & final report (Month 6)",
+ "description": "Release the evaluation toolkit openly; ship user documentation and tutorials plus contributor-onboarding material; hold at least two public community updates or online engagements across the grant period; publish final milestone evidence, a transparent expenditure summary and the final report. Acceptance: toolkit, documentation and final report are public; engagements have happened and are linked.",
+ "amount": 130000,
+ "currency": "INR",
+ "frequency": "one-time",
+ "channels": ["to-be-confirmed"]
+ }
+ ]
+ }
+}
diff --git a/src/lib/funding-manifest.test.ts b/src/lib/funding-manifest.test.ts
index 285aeeb..78fe2b9 100644
--- a/src/lib/funding-manifest.test.ts
+++ b/src/lib/funding-manifest.test.ts
@@ -11,6 +11,13 @@
// CI never depends on the network) plus Canvix-specific invariants.
// Full official-schema validation (fastjsonschema against the live
// schema document) is recorded in docs/FUNDING-VALIDATION.md.
+//
+// v0.32.7: the well-known guards now cover every fetchable form of
+// the manifest URL — the directory and the official validator do
+// exact-string membership, and one canonical form was repeatedly
+// "not found in the .well-known list" (see §8 there). The domain
+// copy public/funding.json and the repo-root .well-known file are
+// guarded here byte-for-byte.
// ─────────────────────────────────────────────────────────────
import { describe, expect, it } from 'vitest'
@@ -18,8 +25,11 @@ import { readFileSync } from 'node:fs'
import path from 'node:path'
const ROOT = path.resolve(__dirname, '../../')
-const manifest = JSON.parse(readFileSync(path.join(ROOT, 'funding.json'), 'utf8')) as Record<string, unknown>
+const manifestRaw = readFileSync(path.join(ROOT, 'funding.json'), 'utf8')
+const manifest = JSON.parse(manifestRaw) as Record<string, unknown>
const wellKnown = readFileSync(path.join(ROOT, 'public/.well-known/funding-manifest-urls'), 'utf8')
+const repoWellKnown = readFileSync(path.join(ROOT, '.well-known/funding-manifest-urls'), 'utf8')
+const domainManifest = readFileSync(path.join(ROOT, 'public/funding.json'), 'utf8')
const GUID_RE = /^[a-z0-9]+(-[a-z0-9]+)*$/
const TAG_RE = /^[a-z0-9]+(-[a-z0-9]+)*$/
@@ -89,9 +99,47 @@ describe('funding.json — fundingjson.org v1.1.0 contract', () => {
}
})
- it('the .well-known verification file authorizes exactly the canonical manifest URL', () => {
+ it('the .well-known verification file authorizes every fetchable form of the manifest URL', () => {
+ // The checkers do exact-string membership, not normalization: the
+ // directory crawl looked for the github.com/raw/refs/heads form and
+ // the official validator was handed the github.com/blob form —
+ // v0.32.6's single raw.githubusercontent form matched neither
+ // ("manifest URL … was not found in the .well-known list"). Every
+ // line below is a fetchable form of the same manifest: the raw
+ // forms serve it byte-identical; the blob form is GitHub's file
+ // view of it; the last is the domain-hosted copy (asserted below).
const lines = wellKnown.split('\n').map((l) => l.trim()).filter(Boolean)
- expect(lines).toEqual(['https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json'])
+ expect(lines).toEqual([
+ 'https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json',
+ 'https://raw.githubusercontent.com/mir-ashiq/canvix/main/funding.json',
+ 'https://github.com/mir-ashiq/canvix/blob/main/funding.json',
+ 'https://github.com/mir-ashiq/canvix/raw/refs/heads/main/funding.json',
+ 'https://github.com/mir-ashiq/canvix/raw/main/funding.json',
+ 'https://canvix.app/funding.json',
+ ])
+ })
+
+ it('the repository .well-known file mirrors the served one byte for byte', () => {
+ // github.com cannot serve /.well-known per repository, so the official
+ // v1.1.0 schema documents the wellKnown proof for repositoryUrl as a
+ // file IN the repository — this one, at the conventional repo path.
+ expect(repoWellKnown).toBe(wellKnown)
+ })
+
+ it('repositoryUrl wellKnown points at the in-repo verification file (activated 2026-11-26)', () => {
+ const p = (manifest.projects as Record<string, unknown>[])[0]
+ expect((p.repositoryUrl as Record<string, unknown>).wellKnown).toBe(
+ 'https://github.com/mir-ashiq/canvix/blob/main/.well-known/funding-manifest-urls',
+ )
+ })
+
+ it('public/funding.json is a byte-identical copy of the repository manifest', () => {
+ // canvix.app/funding.json — the manifest hosted on the domain itself
+ // and listed in the well-known file. Drift between the two copies
+ // would publish two different manifests under the same listing.
+ expect(domainManifest).toBe(manifestRaw)
+ const copy = JSON.parse(domainManifest) as Record<string, unknown>
+ expect(copy.$schema).toBe('https://fundingjson.org/schema/v1.1.0.json')
})
it('wellKnown ownership claim is ACTIVE and points at the live verification file (activated 2026-11-24)', () => {
diff --git a/tests/e2e/smoke.spec.ts b/tests/e2e/smoke.spec.ts
index c8dbe07..ea0242d 100644
--- a/tests/e2e/smoke.spec.ts
+++ b/tests/e2e/smoke.spec.ts
@@ -15,13 +15,41 @@ test.describe('Canvix smoke', () => {
test('serves the funding.json cross-domain verification file (v0.29.5)', async ({ request }) => {
// fundingjson.org ownership verification: canvix.app authorizes the
- // repository manifest at /.well-known/funding-manifest-urls. Serving
- // this correctly in every environment (dev, CI, Docker, VPS) is what
- // lets the manifest later carry the wellKnown property honestly.
+ // repository manifest at /.well-known/funding-manifest-urls. The
+ // file lists every fetchable form of the manifest URL (v0.32.7) —
+ // the checkers do exact-string membership, so a single canonical
+ // form was repeatedly "not found in the .well-known list".
const res = await request.get('/.well-known/funding-manifest-urls')
expect(res.status()).toBe(200)
expect(await res.text()).toBe(
- 'https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json',
+ [
+ 'https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json',
+ 'https://raw.githubusercontent.com/mir-ashiq/canvix/main/funding.json',
+ 'https://github.com/mir-ashiq/canvix/blob/main/funding.json',
+ 'https://github.com/mir-ashiq/canvix/raw/refs/heads/main/funding.json',
+ 'https://github.com/mir-ashiq/canvix/raw/main/funding.json',
+ 'https://canvix.app/funding.json',
+ '',
+ ].join('\n'),
+ )
+ })
+
+ test('serves the domain-hosted funding.json manifest copy (v0.32.7)', async ({ request }) => {
+ // canvix.app/funding.json — the manifest hosted on the domain itself
+ // (byte-identical to the repository manifest, asserted by the unit
+ // test) and listed in the well-known file above.
+ const res = await request.get('/funding.json')
+ expect(res.status()).toBe(200)
+ const body = await res.json()
+ expect(body.$schema).toBe('https://fundingjson.org/schema/v1.1.0.json')
+ expect(body.entity.name).toBe('Ashiq Hussain Mir')
+ const project = body.projects[0]
+ expect(project.webpageUrl.url).toBe('https://canvix.app')
+ expect(project.webpageUrl.wellKnown).toBe(
+ 'https://canvix.app/.well-known/funding-manifest-urls',
+ )
+ expect(project.repositoryUrl.wellKnown).toBe(
+ 'https://github.com/mir-ashiq/canvix/blob/main/.well-known/funding-manifest-urls',
)
})