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.
TypeScript canva-alternativecanvasdesigndesign-tooldrag-and-dropeditorgraphic-designkonvanextjsopen-sourcereactself-hostedtemplatestypescript
feat(v0.29.5): FOSS United grant application — rewritten manifest, proposal, scope matrix, verification file + CI guards
Ashiq Hussain Mir292ea5c932e9
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 599e8dc..6c4627d 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -256,6 +256,16 @@ jobs:echo "landing: $CODE"[ "$CODE" = "200" ]+ - name: Funding-manifest verification file serves (v0.29.5)+ run: |+ # 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; }+- name: Assert the stack is clean after downif: always()run: |diff --git a/CANVIX-FOSS-UNITED-PROPOSAL.md b/CANVIX-FOSS-UNITED-PROPOSAL.mdnew file mode 100644index 0000000..99ed89a--- /dev/null+++ b/CANVIX-FOSS-UNITED-PROPOSAL.md@@ -0,0 +1,161 @@+# Canvix — FOSS United Project Grant Proposal++**Applicant:** Ashiq Hussain Mir (individual maintainer) — Jammu & Kashmir, India+**Email:** [email protected] · **GitHub:** https://github.com/mir-ashiq+**Project:** Canvix — https://canvix.app · https://github.com/mir-ashiq/canvix+**License:** MIT · **Manifest:** `funding.json` (fundingjson.org v1.1.0)+**Requested amount:** ₹5,00,000 INR, one-time, six-month milestone-based program+**Status of this application:** Submitted via the funding.json mechanism (directory entry dated 12 November 2026); this document is the substantive proposal that the updated manifest points to. **This is an application, not an award — no grant has been approved, rejected or disbursed as of 24 November 2026.**++---++## 1. Executive summary++Canvix is a live, free, open-source graphic design platform — a browser-based editor with 366 templates, real-time collaboration, exports to PNG/JPG/SVG/vector-PDF/PPTX/GIF/video, a provider-independent AI layer, and one-command Docker self-hosting. It is maintained by one final-year CS student in India, has shipped 160+ commits since September 2026, and serves real users at canvix.app today.++The platform's hardest remaining problem is **AI design-output correctness**: when a user asks for "the exact text HEADLINE in these exact colors," the result must contain exactly that text and those colors, with no clipping, no invented elements, and honest reporting of what was really built. This proposal requests **₹5,00,000 over six months** to (A) make design generation measurably correct, (B) build a reproducible, public design-quality evaluation harness, and (C) turn the results into open creator education. The scope is deliberately disjoint from the pending NLnet application (deployment trust, collaboration scaling, mobile editing, sharing, v1.0 stabilization), so **no hour or deliverable is funded twice**.++## 2. Applicant background++I am Ashiq Hussain Mir, a final-year computer-science student in Jammu & Kashmir, India, and the sole maintainer of Canvix. I have built the entire platform — editor, collaboration, export pipelines, AI architecture, plugin system, MCP integration, test infrastructure — over 160+ commits since September 2026, alongside a full academic load. The engineering is verifiable in the open: 156 test files (1,575 unit tests) and a 39-file Playwright end-to-end suite gate every release; CI (typecheck, lint, unit, e2e, Docker image build) runs on every pull request. I am seeking a six-month development runway so I can keep building Canvix at this pace through my final year instead of trading development hours for part-time work.++## 3. Project introduction++Canvix exists because graphic design tools split into two unsatisfying camps: capable proprietary editors that gate features behind subscriptions and accounts, and open tools that trail on the export/collaboration/self-hosting axis that real teams need. Canvix is a working third option: a genuinely free (MIT, no watermarks, no paywalls, try-without-account) design platform with the features people actually ship work with — and it runs on infrastructure you control.++## 4. Current technical capabilities++All verifiable in the repository and at canvix.app:++- **Editor:** browser-based canvas editor — text (rich text, spans, RTL, lists), shapes (parametric polygons/stars), images (masks, filters, adjustment), tables, charts, QR codes, icons, illustrations, stickers, video and audio elements, multi-page documents with per-page sizes and speaker notes, presenter view, rulers/guides/snap, grids, layers, animation and page transitions.+- **Templates:** 366 seeded templates across poster/social/presentation/print categories, including smart templates with fill-in dialogs.+- **Collaboration:** real-time multi-user editing with presence, last-write-wins merges with deletion tombstones; an HLC-based op pipeline.+- **Exports:** local browser-side export to PNG, JPG, SVG, vector-text PDF, native editable PPTX, animated GIF, and video (WebM/MP4 with audio), plus WebP.+- **AI layer (provider-independent):** modular capability slots (text, vision, image, video, sound) with bring-your-own-key; instance-level providers plus per-user BYOK; an agentic design loop with a tool bridge, design-skills engine, and brief-contract validation; MCP (Model Context Protocol) server integration.+- **Self-hosting:** three-stage Docker image, migrate-on-boot entrypoint, compose file (Postgres 17 + app), scoped API keys (`designs:read`/`designs:write`), REST API, backup/restore tooling — the one-command self-host.+- **Extensibility:** first-party plugin rail with manifest validation and sha256-pinned bundles; stock photo/video connectors (Pexels/Pixabay) with license-safe fail-closed gates.+- **Quality infrastructure:** 1,575 unit tests, 39 e2e Playwright spec files, CI on every PR (typecheck, lint, unit, production build, Docker job with container-level health checks), weekly grouped Dependabot, security policy, governance docs.++## 5. Public deployment and repository evidence++- **Live site:** https://canvix.app (health endpoint `GET /api/health` reports version, database status and the 366-template count).+- **Repository:** https://github.com/mir-ashiq/canvix — MIT license, 160+ commits by the maintainer since 2026-09-03, full CHANGELOG (v0.1.0 → v0.29.x), ROADMAP, SECURITY.md, GOVERNANCE.md, CODE_OF_CONDUCT.md, CONTRIBUTING.md, RELEASE-CHECKLIST.md, per-subsystem docs (17 files under `docs/`).+- **Releases:** tagged v0.22.1, v0.23.0, v0.23.1 with release notes; continuous minor-version shipping since.+- **Self-hosting proof:** `docs/DOCKER.md` + a CI job that boots the real containers and checks health, registration and the landing page through them.++## 6. Community problem being addressed++Design capability is a basic literacy — for students, educators, small nonprofits, community organizers and independent creators — and in India it is gated by cost, accounts, data-export friction and vendor lock-in. Free tiers watermark or limit exports; cloud-only tools take the work with them. An MIT-licensed, self-hostable, watermark-free design platform with real collaboration and real exports removes those gates for exactly the audience FOSS United serves. The specific gap this grant addresses: **AI-assisted design is only trustworthy when its output is verifiably correct** — exact text, exact colors, honest reporting. Today that bar is rarely met even by commercial tools; Canvix's v0.29.4 agent fixes (brief contract, rendered compliance, vision-before-completion) are the foundation, and this proposal turns them into a public, reproducible engineering standard.++## 7. Comparison with alternatives++Canvix differs from Canva, Adobe Express and Microsoft Designer in license and freedom (MIT vs proprietary; self-hostable vs cloud-only; no account required vs mandatory). It differs from most "AI design" tools in keeping designs as **native editable elements** rather than flattened generated images, and in being **provider-independent** (any OpenAI-compatible provider, BYOK) rather than locked to one vendor. Against Figma, it targets a different job (document/poster/presentation design with local export breadth, not UI design) at a fraction of the deployment footprint. This is a claim of *different positioning*, not superiority: the commercial tools are far more mature and feature-complete, and Canvix's competitive matrix (in-repo, `docs/COMPETITIVE-ANALYSIS.md`) scores them honestly.++## 8. Differentiation and open-source value++- **Free as in freedom AND as in beer:** MIT license, no watermarks, no paywalls, no forced accounts — permanent, by design.+- **Self-hosting as sovereignty:** a school, nonprofit or community can run the full platform (editor, templates, collaboration, exports) on one small server with `docker compose up`; data never leaves their infrastructure.+- **Editable-native AI:** the AI layer composes native elements, so AI-assisted work remains real, editable design work — and every AI feature is optional (the platform is fully usable with zero AI keys configured).+- **Provider independence:** the AI slots are BYOK and pluggable; no vendor relationship is load-bearing.+- **Public engineering standard:** the proposed evaluation harness publishes what "correct design output" means and measures it in CI — usable by other FOSS design tools, not just Canvix.++## 9. Current users and adoption evidence++**Sourcing note (explicit):** the following are historical, self-reported, maintainer-observed statistics from the production admin console, observed around early–mid November 2026. They are **not** independently audited analytics; anonymous designs and possible automated traffic cannot be fully separated from the totals, and current counts may differ.++- ~161 registered accounts+- ~5,300 saved designs (including anonymous/unauthenticated designs)+- 366 seeded templates (verifiable via the public health endpoint)+- ~71 active users on the observation day++Repository-side evidence (independently verifiable): 160+ commits, 168 pull requests/issues activity, CI runs on every PR, public releases. No revenue, testimonials, retention or download figures are claimed — none exist.++## 10. Development history and maintainer experience++Canvix started September 2026 and shipped continuously: v0.1.0 (editor foundations) → v0.10.x (real-time collaboration, offline sync) → v0.14–0.16 (assets, uploads, sound, the trust layer: SECURITY/GOVERNANCE/funding.json) → v0.21–0.24 (native PPTX export, vector PDF, BYOK AI providers, scoped API keys, Docker self-hosting = NLnet-track WP1) → v0.27–0.29 (the agentic design loop: tool bridge, skills engine, brief contract, rendered-compliance audit, planning, vision-before-completion, fail-closed acknowledgments — shipped as v0.29.4 after root-causing a failed production design run). The maintainer's track record is the commit history: 100% of product commits authored by Ashiq Hussain Mir, with Dependabot handling dependency updates.++## 11. Funding justification++**₹5,00,000 for six months.** This is a cost-recovery runway, not a salary: it lets a proven, full-time-capable maintainer spend ~25 h/week on a public-interest FOSS project through the final year of study, in exchange for specific, verifiable, public deliverables. Every rupee maps to either committed engineering time with published acceptance criteria, a test bench that CI alone cannot replace, or community/education output. The amount sits inside FOSS United's median project-grant band (₹3–7 lakh disbursed over about a year). The original draft (₹5,40,000) was revised downward after auditing the weakest line — hardware — against what the deliverables actually require; the comparison is recorded in §12.++## 12. Detailed budget++| Category | INR | Justification (estimate — costs are labeled, not quoted) |+|---|---:|---|+| Maintainer support, 6 months | ₹3,60,000 | ~25 h/week × 26 weeks ≈ 650 h ≈ **₹554/h** cost-recovery — below entry-level market rate for the skill set (frontend + distributed systems + AI integration). Replaces the part-time income that would otherwise take those hours. Milestone-linked: hours are committed against the M1–M4 acceptance criteria. |+| Dedicated cross-browser test bench | ₹70,000 | One mid-range desktop (Ryzen 5/i5-class, 32 GB RAM, 1 TB NVMe) plus one mid-range Android device for the M1 baseline matrix. CI (GitHub-hosted) covers per-PR checks, but the inner loop — iterating on the 39-file e2e suite, 1080p export encodes, Docker builds, real-device browser testing — needs local hardware. **Market estimate, not a quotation**; final configuration confirmed with real quotations before purchase. Original draft had ₹1,10,000 (high-end personal machine); trimmed to the configuration the funded deliverables actually need — a test bench, not a workstation upgrade. |+| Testing, documentation & community | ₹70,000 | Itemized: two public community engagements (India FOSS meetups/devsprints, travel + materials) ₹30,000; tutorial/education production hardware (USB microphone, headphones) ₹15,000; real-device cross-browser testing service credits for the published evaluation matrix ₹15,000; domain/static-report hosting ₹5,000; contingency (≤10%) ₹5,000. No proprietary AI API credits are budgeted — the evaluation harness uses local/self-hosted and BYOK resources. |+| **Total** | **₹5,00,000** | Tranche schedule: M1 ₹1,30,000 · M2 ₹1,20,000 · M3 ₹1,20,000 · M4 ₹1,30,000 (mirrored 1:1 in the funding.json plans). |++**Recorded comparison — ₹5,40,000 (original draft) → ₹5,00,000 (this proposal):** the original hardware line (₹1,10,000) was not defensible without a quotation and overlapped what funders commonly treat as basic workstation IT. It was cut to ₹70,000 (a purpose-scoped test bench + test device), and the total lowered rather than silently reallocating the difference. Maintainer support and community/education lines were unchanged. **All amounts are estimates pending FOSS United feedback and real quotations; none is presented as verified expenditure.**++## 13. Six-month work plan++**Already shipped (not billed to this grant):** brief-contract extraction, rendered-compliance audit (effective backdrops, obscuring detection, measured text widths), layout planning, vision-critique-before-completion, fail-closed acks, the design-skills engine, and the greeting/chitchat guard — all in v0.29.4 (PR #85, merged 24 Nov 2026). This grant funds the **next** layer: turning those internals into a public, reproducible standard and education program.++- **Month 1 (M1) — Baseline & harness.** Publish the evaluation plan; assemble 20+ diverse briefs (posters, social, presentations, print — varying text lengths, scripts incl. Devanagari, palettes); run the current agent against each; record rendered screenshots, exact-text/color diffs, geometry/clipping analysis; stand up the test bench; open the public issue tracker; publish progress report #1.+- **Months 2–3 (M2) — Design-output correctness.** Fix what the baseline exposed: constraint extraction edge cases, exact text/color preservation, native-element generation reliability, deterministic geometry checks; move the brief-contract corpus into CI as reproducible browser tests; publish before/after evidence per fix.+- **Months 4–5 (M3) — Grounded visual review.** Requested-vs-actual comparison reports; screenshot-based inspection where a vision model is available; explicit, honest fallback when it is not; no invented-element claims (verification statements only from captured evidence); publish full-corpus before/after results and remaining limitations.+- **Month 6 (M4) — Community, release, final report.** Open-source the evaluation toolkit (briefs, harness, report generator); user documentation and tutorials; contributor onboarding; two public community engagements across the period; final milestone evidence, expenditure summary, public final report.++## 14. Milestone acceptance criteria++| Milestone | Tranche | Pass condition (all public) | Fail condition |+|---|---:|---|---|+| M1 — Baseline & harness | ₹1,30,000 | Evaluation plan + 20+ brief corpus + baseline report (screenshots, text/color diffs, geometry analysis) + issue tracker live; progress report #1 published | Any artifact missing or unpublished |+| M2 — Design-output correctness | ₹1,20,000 | Brief-contract suite runs in CI; every baseline failure has a fix with before/after evidence; exact-text/color checks pass on the corpus | Corpus not in CI, or any unfixed baseline failure without a documented reason |+| M3 — Grounded visual review | ₹1,20,000 | Before/after results across the corpus; every verification claim backed by captured evidence; fallback behavior documented and demonstrated | Any claim without captured evidence, or no published results |+| M4 — Community & final report | ₹1,30,000 | Toolkit, docs, onboarding material merged; ≥2 linked public engagements; expenditure summary + final report published | Any deliverable unpublished |++## 15. Deliverables and expected impact++Public artifacts, all MIT-licensed: (1) the design-quality evaluation plan and brief corpus; (2) the evaluation harness with screenshot diffing, text/color comparison and geometry checks — reusable by any FOSS design tool; (3) the fixed-then-verified correctness improvements in Canvix itself; (4) before/after evaluation reports; (5) user tutorials, contributor onboarding docs; (6) community engagement records; (7) the final report and expenditure summary. Impact: a reproducible public standard for "the AI actually built what was asked," a more trustworthy free design platform for Indian creators and educators, and an on-ramp for contributors.++## 16. Community engagement plan++At least one public engagement per quarter (FOSS United's stated expectation) — concretely: two engagements across the six months (an India FOSS meetup/devsprint talk showing the evaluation harness, and an online session/tutorial walkthrough with published materials), plus monthly written progress reports in the repository and responsive issue triage. All materials CC-BY-SA/MIT dual-licensed where the repo's licenses allow.++## 17. Sustainability strategy++Canvix's costs are structurally low: the app runs on a small VPS (donated-by-maintainer time on Oracle's free tier today), exports are browser-side (no render farm), the AI layer is BYOK (no AI bill for the project), and self-hosters pay their own hosting. The maintainer's post-grant plan: v1.0 (stabilization gate, NLnet-track WP5 scope), a contributor community grown via the education material, and — only if the community wants it — optional managed hosting as a separate, clearly-bounded service that never paywalls the self-hostable core. The MIT core stays free regardless of any future funding outcome.++## 18. Risks and mitigation++| Risk | Mitigation |+|---|---|+| Final-year academic load compresses the schedule | 25 h/week average was chosen against the actual academic calendar; milestones are scoped to month-level, tranche-gated, and FOSS United can hold any tranche |+| Vision-model availability varies | M3's design *requires* explicit fallback behavior — the evaluation harness never depends on a paid vision API (BYOK/local only) and reports "unverified" rather than guessing |+| Solo-maintainer bus factor | M4's contributor onboarding + public docs reduce key-person risk; the repo's governance docs already define the project's continuity posture |+| Correctness fixes expose deeper architecture issues | That is the point of the baseline: failures are documented publicly and fixed within the milestone, or reported honestly as remaining limitations |+| Budget estimates drift | All costs are estimates labeled as such; the final report reconciles actuals; contingency is capped at 10% of the community line |++## 19. Licensing and development transparency++Everything shipped under this grant is MIT-licensed (evaluation materials CC-BY-SA where a doc license fits better). Canvix's public [AI & Development Disclosure](README.md#-ai--development-disclosure) states the project's standard: the codebase was built with AI-assisted development disclosed openly, and **grant-funded milestones are human-authored engineering with AI tools restricted to read-only review** (the same standard adopted for the NLnet-track work: AI costs €0/₹0 — no AI subscriptions or API credits in any budget line). Commits for grant work will carry a `Grant: FOSSUnited M#` trailer, mirroring the existing `Grant: NLnet WP#` convention, so the funding boundary is auditable with `git log --grep='Grant: FOSSUnited'`.++## 20. Concurrent funding disclosure++- **NLnet (application, not approved):** a work program covering WP2–WP5 — collaboration scaling, mobile/touch editing, sharing roles & portability, v1.0 stabilization — 420 h ≈ €12,600 labour-only (WP1 already completed unfunded). See ROADMAP.md §3. **No hour, deliverable or expense in this FOSS United proposal overlaps it** — the boundary is documented line-by-line in [FUNDING-SCOPE-MATRIX.md](FUNDING-SCOPE-MATRIX.md).+- **FOSS United directory listing (12 Nov 2026):** the earlier manifest submission (USD 7,000, three plans) is registered in the grants directory; this proposal **supersedes** it via the manifest's weekly auto-refresh (no duplicate application is being submitted — the "funding json must be unique" constraint is respected by updating the existing manifest URL).+- No other pending grant applications; no corporate sponsorship.++## 21. Verification and reporting commitments++- Milestone evidence published in-repo as it lands (reports, screenshots, diffs, CI logs).+- Monthly written progress reports; at least one community engagement per quarter.+- `Grant: FOSSUnited M#` commit trailers for every funded change — auditable funding boundary.+- Final report with a transparent expenditure summary reconciling the §12 estimates against actuals.+- Maintainer available for scheduled FOSS United check-ins at any tranche boundary.++## 22. Official website and project links++- Website: https://canvix.app+- Repository: https://github.com/mir-ashiq/canvix+- Funding manifest: https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json+- Grants-directory profile: https://fossunited.org/grants/directory/ashiq_hussain_mir+- Proposal (this document): `CANVIX-FOSS-UNITED-PROPOSAL.md` in the repository+- Contact: [email protected]++---++*Prepared 24 November 2026. Every factual claim above is either independently verifiable via the linked public sources or explicitly labeled as a self-reported estimate. This proposal does not claim any grant has been awarded.*diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 1891e26..66cf7f3 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,38 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).## [Unreleased]+### Added — FOSS United funding application (v0.29.5)++- **`funding.json` rewritten for the FOSS United project-grant+ application** (fundingjson.org v1.1.0, schema-validated): four+ milestone plans in INR — M1 baseline & harness ₹1,30,000 · M2+ design-output correctness ₹1,20,000 · M3 grounded visual review+ ₹1,20,000 · M4 community & final report ₹1,30,000 — **₹5,00,000+ total, one-time, six months**. Corrects the entity email+ ([email protected] — the manifest previously carried a stale+ address), points the project `webpageUrl` at https://canvix.app, and+ replaces the superseded USD 7,000 three-plan draft. The grants+ directory auto-refreshes from this manifest weekly; no duplicate+ application is submitted.+- **`CANVIX-FOSS-UNITED-PROPOSAL.md`** — the complete evidence-based+ grant proposal (22 sections: capabilities, deployment proof,+ self-reported adoption labeled as such, budget with the recorded+ ₹5,40,000 → ₹5,00,000 revision, milestone acceptance criteria,+ risks, sustainability, reporting commitments).+- **`FUNDING-SCOPE-MATRIX.md`** — the FOSS United × NLnet × unfunded+ × shipped allocation ledger proving no hour or deliverable is+ billed to two funders; funded commits will carry+ `Grant: FOSSUnited M#` trailers.+- **`public/.well-known/funding-manifest-urls`** — the cross-domain+ ownership-verification file for canvix.app (served and verified+ locally; the manifest's `wellKnown` property is deliberately+ withheld until the file is live in production).+- README funding section rewritten (was: "three milestones, USD+ 7,000 total"); the AI-disclosure test-wall figures updated to the+ current 1,575 unit tests / 39 e2e specs.+- `docs/FUNDING-VALIDATION.md` and `docs/FUNDING-INQUIRY-DRAFT.md`+ (validation report + status-inquiry email draft).+### Fixed- **Agent v0.29.3 — the failed CANVIX poster run, root-caused anddiff --git a/FUNDING-SCOPE-MATRIX.md b/FUNDING-SCOPE-MATRIX.mdnew file mode 100644index 0000000..b5d082e--- /dev/null+++ b/FUNDING-SCOPE-MATRIX.md@@ -0,0 +1,24 @@+# Canvix Funding Scope Matrix — FOSS United × NLnet × Unfunded × Shipped++**Purpose:** prove, line by line, that the FOSS United proposal funds work that no other funder is being billed for, and that nothing already completed is billed to anyone. Companion to [CANVIX-FOSS-UNITED-PROPOSAL.md](CANVIX-FOSS-UNITED-PROPOSAL.md).++**Statuses:** ✅ shipped (unbilled) · 🔜 FOSS United application (this proposal) · 🔜 NLnet application (pending, not approved) · ⚪ unfunded project work (own cadence)++| Work stream | Status | Funder | Evidence / notes |+|---|---|---|---|+| Docker self-hosting + compose + scoped API keys (**NLnet WP1**) | ✅ shipped | — (unfunded) | PR #77 (v0.24), `docs/DOCKER.md`, CI docker job — completed before any funding decision |+| Brief-contract extraction, rendered-compliance audit, layout planning, vision-critique-before-completion, fail-closed acks, skills engine (v0.29.4) | ✅ shipped | — (unfunded) | PR #85, merged 2026-11-24 — the *foundation* this proposal builds on; the grant funds the next layer, not these commits |+| **A. Design-output correctness** — constraint edge cases, exact text/color preservation, native-element reliability, deterministic geometry checks, corpus in CI | 🔜 FOSS United (M2, ₹1,20,000) | FOSS United only | Extends the shipped v0.29.4 internals into a public, reproducible corpus; no NLnet WP covers design-output correctness |+| **B. Design evaluation** — 20+ brief corpus, screenshot baseline, before/after harness, grounded review reports, fallback behavior | 🔜 FOSS United (M1+M3, ₹2,50,000) | FOSS United only | Evaluation/QA infrastructure; orthogonal to every NLnet WP (which are feature + stability work) |+| **C. Creator education & community** — tutorials, onboarding, 2 engagements, open toolkit | 🔜 FOSS United (M4, ₹1,30,000) | FOSS United only | Education/community output; not in NLnet scope anywhere |+| Test bench hardware (desktop + Android device) | 🔜 FOSS United (M1, within ₹70,000 line) | FOSS United only | NLnet explicitly excludes workstation purchases; FOSS United line is a purpose-scoped test bench |+| Real-time collaboration scaling — LISTEN/NOTIFY hub, op-level undo broadcast (**NLnet WP2**) | 🔜 NLnet | NLnet only | ROADMAP §3, ~120 h — zero overlap with A/B/C |+| Mobile/touch accessible editing (**NLnet WP3**) | 🔜 NLnet | NLnet only | ROADMAP §3, ~60 h |+| Share roles + `.canvix` portability (**NLnet WP4**) | 🔜 NLnet | NLnet only | ROADMAP §3, ~80 h |+| v1.0 stabilization gate — CI perf budgets, WCAG audit, self-hoster handbook, 1.0 tag (**NLnet WP5 S1–S4**) | 🔜 NLnet | NLnet only | ROADMAP §3, ~60 h — note: M3's *design* fallback/verification work is agent correctness, not WCAG accessibility; no double billing |+| AI-provider track — z-ai-web-dev-sdk removal, provider-neutral adapter | ⚪ unfunded | — | ~65 h, deliberately outside both applications (NLnet policy excludes AI connectors; FOSS United scope has no AI connector work) |+| Media GC, misc debt, release checklist upkeep | ⚪ unfunded | — | Own cadence per ROADMAP §5 |++**Double-funding audit (maintainer's commitment):** funded commits carry distinguishing trailers — `Grant: FOSSUnited M#` vs `Grant: NLnet WP#` — and `git log --grep='Grant: '` lists every billed commit. An auditor can reconstruct which funder paid for which hour from the public history alone. If either application is approved, the maintainer maintains a timesheet mapping hours to trailers; if **both** are approved, hours are allocated strictly along the matrix above (A/B/C + test bench to FOSS United; WP2–WP5 to NLnet; nothing billed twice).++**If neither is funded:** A/B/C proceed on the project's own cadence in ROADMAP's recommended order; the matrix still holds (the scope simply ships slower).diff --git a/README.md b/README.mdindex 68f3117..ca473fc 100644--- a/README.md+++ b/README.md@@ -985,11 +985,11 @@ tool descriptions so agents pick the right format.NLnet's [generative-AI policy](https://nlnet.nl/foundation/policies/generativeAI) expects projects with prior AI-generated code to say so publicly, in the repository itself. This is Canvix's complete disclosure — both of how the codebase was built and of the standard every future contribution is held to.-**Historical development (v0.1 – v0.23.2).** Canvix was rapid-prototyped by a solo maintainer using AI coding assistants: drafting editor modules, unit tests and documentation at a pace (23 minor releases in 14 days) that would not otherwise have been possible for one person around classes. **No AI output was ever merged unreviewed.** Every line landed through the human review loop: the maintainer reads, edits and takes authorship responsibility for all of it; CI gates every PR on typecheck, lint, and the full test wall — **1,411 unit tests (108 files) and 32 end-to-end Playwright specs** — plus the production-build guard added in v0.16.1. Where AI-generated code failed that gate, it was fixed or rewritten before merge (the [changelog](CHANGELOG.md) records the honest incidents, e.g. the plugin-ceiling misses). The AI features in the product are runtime capabilities behind provider keys — they are not the development process.+**Historical development (v0.1 – v0.23.2).** Canvix was rapid-prototyped by a solo maintainer using AI coding assistants: drafting editor modules, unit tests and documentation at a pace (23 minor releases in 14 days) that would not otherwise have been possible for one person around classes. **No AI output was ever merged unreviewed.** Every line landed through the human review loop: the maintainer reads, edits and takes authorship responsibility for all of it; CI gates every PR on typecheck, lint, and the full test wall — **1,575 unit tests (156 files) and 39 end-to-end Playwright specs** — plus the production-build guard added in v0.16.1. Where AI-generated code failed that gate, it was fixed or rewritten before merge (the [changelog](CHANGELOG.md) records the honest incidents, e.g. the plugin-ceiling misses). The AI features in the product are runtime capabilities behind provider keys — they are not the development process.**Grant-funded milestones (WP1–WP5).** Any code funded through the proposed NLnet grant will be **human-authored engineering**. AI tools are restricted to read-only review of human-authored code and tests, including identifying defects, security issues, and potential test-coverage gaps. AI may recommend additional test scenarios, but all test cases, code, fixes, and documentation must be independently authored by human contributors. The grant funds **zero AI development**: the entire AI-provider path — removing the `z-ai-web-dev-sdk` dependency and the provider-neutral adapter that replaces it — proceeds as unfunded project work outside the grant, and the budget requests **€0 for AI subscriptions or API credits** (AI costs are not reimbursable under the policy). To keep this auditable we adopt a commit convention: grant-funded commits carry a `Grant: NLnet WP#` trailer identifying the work package, and the maintainer is the sole recorded author of every commit. When an AI tool contributed to a commit's review, that fact is noted in plain prose in the commit message body (`AI-assisted: …`) — a commit note, never a `Co-authored-by` trailer — so the authorship record stays unambiguous: one human, responsible for every line. Anyone can audit the funding boundary with `git log --grep='Grant: NLnet'`.-**Also disclosed:** the [funding.json](funding.json) manifest (three milestones, USD 7,000 total) exists for transparency about non-grant funding; it is not a revenue stream for the project.+**Also disclosed — funding.** Canvix has applied for FOSS United project support: a **₹5,00,000 (INR) six-month, milestone-based application** covering design-output correctness, a reproducible public design-quality evaluation harness, and creator education. The full proposal is [CANVIX-FOSS-UNITED-PROPOSAL.md](CANVIX-FOSS-UNITED-PROPOSAL.md); the machine-readable [funding.json](funding.json) manifest (fundingjson.org v1.1.0) carries the four milestone plans, and [FUNDING-SCOPE-MATRIX.md](FUNDING-SCOPE-MATRIX.md) documents the boundary against the pending NLnet application so no hour is billed to two funders. **These are applications, not awards — nothing has been approved or disbursed**, and the manifest is not a revenue stream for the project. Interested supporters can learn more from the proposal document or the [grants-directory profile](https://fossunited.org/grants/directory/ashiq_hussain_mir).## 🧭 Roadmapdiff --git a/docs/FUNDING-INQUIRY-DRAFT.md b/docs/FUNDING-INQUIRY-DRAFT.mdnew file mode 100644index 0000000..d4fd2ab--- /dev/null+++ b/docs/FUNDING-INQUIRY-DRAFT.md@@ -0,0 +1,35 @@+# FOSS United — Application Status Inquiry (draft)++**To:** [email protected]+**From:** Ashiq Hussain Mir <[email protected]>+**Subject:** Canvix grant application — manifest updated, confirm listing refresh & review status++---++Dear FOSS United grants team,++I am the maintainer of **Canvix** (https://canvix.app, https://github.com/mir-ashiq/canvix, MIT-licensed), whose funding.json application is listed in your grants directory under my profile (entry dated 12 November 2026: https://fossunited.org/grants/directory/ashiq_hussain_mir).++I am writing to inform you that I have **substantially revised the funding manifest and proposal** at the canonical URL your directory links to:++- Manifest: https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json+- Full proposal: https://github.com/mir-ashiq/canvix/blob/main/CANVIX-FOSS-UNITED-PROPOSAL.md++The revision replaces the earlier USD 7,000 draft with a **₹5,00,000 INR, six-month, four-milestone project-grant application** (design-output correctness, a reproducible public design-quality evaluation harness, and creator education), with a documented scope boundary against a pending NLnet application so that no work is double-billed.++I would appreciate your guidance on three points:++1. **Listing refresh** — I understand the directory auto-updates manifests weekly; could you confirm the revised manifest will flow into my existing entry without any resubmission? An earlier submission attempt returned the error *"funding json must be unique"*, so I have deliberately **not** created a new application, only updated the existing manifest.+2. **Review status** — is the 12 November listing currently in queue for evaluation, and is there anything my application should add for the reviewers (the proposal document above is the substantive submission I'd like considered)?+3. **Bank details** — the manifest intentionally carries a placeholder channel with no private financial data; I will provide account details securely on request upon any approval.++Thank you for the work FOSS United does for Indian FOSS maintainers — the program is exactly the kind of support projects like mine need.++With gratitude,+**Ashiq Hussain Mir**+Maintainer, Canvix — https://canvix.app[email protected] · https://github.com/mir-ashiq++---++*Maintainer note: send from [email protected]. Adjust the greeting/name sign-off as you prefer. Nothing in this draft claims the grant was approved, rejected or reviewed — only that the listing exists and the manifest was updated.*diff --git a/docs/FUNDING-VALIDATION.md b/docs/FUNDING-VALIDATION.mdnew file mode 100644index 0000000..7688a31--- /dev/null+++ b/docs/FUNDING-VALIDATION.md@@ -0,0 +1,73 @@+# Canvix FOSS United Application — Validation Report++**Validated:** 24 November 2026 · **Scope:** every file this funding PR ships.+**Rule:** a check that did not run is marked **UNVERIFIED**, never "passed".++## 1. JSON / schema validation++| Check | Method | Result |+|---|---|---|+| Syntax parsing | `python3 json.load` on `funding.json` | ✅ parses |+| **Official schema validation** | `fastjsonschema` against `https://fundingjson.org/schema/v1.1.0.json` (the official v1.1.0 schema document, fetched and compiled locally) | ✅ **valid** — one violation found and fixed during validation (a plan guid of 34 chars vs the 32-char limit) |+| **Official directory validator** | `https://dir.fundingjson.org/validate` (the same validator FOSS United's grants directory ingests through) — manifest body pasted, hosted-URL field set to the canonical raw GitHub URL | ✅ **"✓ Manifest is valid"** (browser-driven, 2026-11-24) |+| Required properties / enums / max-lengths | the unit test `src/lib/funding-manifest.test.ts` (6 tests: entity shape, project shape, plan enums INR/one-time/active, guid + tag patterns, ≤2000 descriptions, ≤32 guids/tags) | ✅ 6/6 — now permanent CI |+| GUID uniqueness | all four plan guids + channel guid distinct; project guid `canvix` unchanged (stable) | ✅ |+| Channel reference consistency | every `plans[].channels` entry resolves to `funding.channels[].guid` | ✅ (`to-be-confirmed`, type `bank`) |+| Currency / amount / frequency formats | ISO 4217 `INR`; integer amounts; enum `one-time` | ✅ |+| URL formats | `https://canvix.app` (project webpage), `https://github.com/mir-ashiq/canvix` (repo), `https://github.com/mir-ashiq` (entity webpage) | ✅ all https, within 250 chars |+| Budget arithmetic | 130000 + 120000 + 120000 + 130000 = **500000 INR** — matches the proposal §12 total and the README statement | ✅ computed, not eyeballed |++## 2. Repository consistency++| Check | Result |+|---|---|+| Maintainer identity / email | ✅ `Ashiq Hussain Mir` / `[email protected]` (the old manifest's `[email protected]` was a stale commit email — fixed) |+| GitHub repo / website / license | ✅ `mir-ashiq/canvix`, `canvix.app` in `projects[0].webpageUrl` (the old manifest pointed the webpage at the repo), `spdx:MIT` (matches `LICENSE`) |+| No stale grant amounts | ✅ the README's "three milestones, USD 7,000 total" replaced; `grep -rn "7,000\|USD" funding.json README.md` finds only the changelog's historical v0.22.1 entry (accurate history, intentionally kept) |+| No contradicting funding statements | ✅ README, ROADMAP, proposal, manifest and scope matrix all state: FOSS United = application, NLnet = pending application, nothing awarded |+| Test-wall figures | ✅ README updated to 1,575 unit tests / 39 e2e specs (verified: `vitest run` full suite 1575/1575; 39 spec files counted) |+| Commit-trailer convention | ✅ proposal declares `Grant: FOSSUnited M#` mirroring the existing `Grant: NLnet WP#` convention |++## 3. Grant consistency++| Check | Result |+|---|---|+| Budget reconciles | ✅ ₹3,60,000 + ₹70,000 + ₹70,000 = ₹5,00,000 = sum of the four tranches |+| Scope distinct from NLnet | ✅ line-by-line in `FUNDING-SCOPE-MATRIX.md`; zero overlap (A/B/C + test bench vs WP2–WP5) |+| Every milestone has acceptance criteria | ✅ proposal §14 table (pass/fail per milestone) |+| Costs labeled as estimates | ✅ budget table + the recorded ₹5,40,000 → ₹5,00,000 revision (proposal §12) |+| No double-funding claims | ✅ matrix + trailer-audit commitment; shipped v0.29.4 work explicitly marked "not billed to this grant" (proposal §13) |+| No invented approvals | ✅ "application, not an award" stated in the manifest description, proposal header, README and this report |+| No private financial data | ✅ unit test asserts no long digit-runs / IFSC / SWIFT / IBAN in the channel; placeholder channel only |++## 4. Website verification (well-known)++| 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) |+| 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 | ✅ new assertion step added to the CI **docker** job (the real production container); will prove it on this PR's CI run |+| **Live at https://canvix.app** | ⏳ **NOT YET VERIFIED — pending VPS deploy** (the deploy is blocked on the SSH key, see `docs/VPS-DEPLOY-RUNBOOK.md` §1). The manifest's `wellKnown` property is **deliberately withheld** until the public URL returns the file; the exact remaining step is runbook §5 |++## 5. Application status (FOSS United)++| Check | Result |+|---|---|+| Directory listing | ✅ verified in-browser: profile `https://fossunited.org/grants/directory/ashiq_hussain_mir`, entry dated **12 Nov 2026**, currently rendering the OLD manifest (pulled from the raw GitHub URL above) |+| Listing semantics | ✅ listing = registration of the manifest; **no status badge exists** (no approved/rejected/under-review marker is shown) — so submission ≠ review ≠ approval; nothing is claimed either way |+| Update mechanism | ✅ the apply page states "The manifest gets auto updated weekly for latest changes" — updating the repo manifest updates the listing **without resubmission**, which is how the "funding json must be unique" constraint is respected (no duplicate application created) |+| Reviewer contact | ⏳ **UNVERIFIED** — whether the revised proposal reaches active reviewers automatically is not documented publicly; the status-inquiry email draft (`docs/FUNDING-INQUIRY-DRAFT.md`) is prepared for the maintainer to send to [email protected] |++## 6. CI status for this branch++- **lint-unit** (typecheck + lint + 1,575+ unit tests + production build): expected green — unit suite including the 6 new manifest tests passes locally; typecheck/lint clean.+- **e2e**: the ONE failing spec on main (`wave2-assets-templates.spec.ts:171`, broken by v0.26 lazy mounting) is fixed in this PR — verified locally (16.7 s pass). Full local suite re-run in progress at validation time; result recorded in the PR.+- **docker**: gains the well-known assertion (§4); image build unchanged otherwise.++## 7. Honest limitations++1. The live canvix.app well-known verification and the VPS deploy await the SSH key (runbook §1).+2. The FOSS United review status is unknown — no public signal exists; the inquiry draft is the path.+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).diff --git a/docs/VPS-DEPLOY-RUNBOOK.md b/docs/VPS-DEPLOY-RUNBOOK.mdnew file mode 100644index 0000000..12ab00b--- /dev/null+++ b/docs/VPS-DEPLOY-RUNBOOK.md@@ -0,0 +1,75 @@+# VPS Deploy Runbook — canvix.app (132.226.127.65)++**Who runs this:** the maintainer (or an agent session holding the SSH key).+**State:** the deploy automation itself is ready; the ONLY missing piece is the SSH private key (see §1).++## 0. What is deployed where++| Piece | Value |+|---|---|+| Host | `132.226.127.65` (Oracle Cloud), user `ubuntu` |+| Auth | SSH key `oracle_vm1.key` (was uploaded to the sandbox at `/tmp/oracle_vm1.key` — `/tmp` is wiped on sandbox recycle, so it must be re-provided) |+| Site | https://canvix.app → this VPS |+| App | Next.js standalone build, local Postgres (`127.0.0.1`, database `canvix`) |+| Deploy pattern | build on the VPS from `main`, migrations via `prisma migrate deploy`, standalone snapshot + restore-on-failure (ROADMAP, 2026-11-07 hardening) |+| Helper scripts | `/home/z/my-project/scripts/vps.py` and `vps_ssh.py` (paramiko runners, key at `/tmp`) |++## 1. The one blocker++The sandbox that prepared this runbook lost the SSH key in a recycle (`/tmp/oracle_vm1.key` no longer exists; the key was never stored anywhere durable, by design). **To execute a deploy, re-attach the key** — either:++- upload it to the sandbox again (it will land in the upload dir and can be moved to `/tmp/oracle_vm1.key` for the helper scripts), or+- run §3 by hand from your own machine where the key already exists.++No credentials, tokens or secrets are stored in this repository.++## 2. What this deploy ships (merge commit of the funding PR)++- The complete v0.29.4 agent-correctness work (already merged to `main` as PR #85).+- **v0.29.5 funding application artifacts**, including `public/.well-known/funding-manifest-urls`.+- The e2e + docker CI jobs now verify the `.well-known` file in dev-mode AND the production standalone container, so a regression is caught before deploy.++## 3. Deploy steps (run on the VPS, as `ubuntu`)++```bash+cd ~/canvix # or wherever the repo checkout lives+git fetch origin+git checkout main && git reset --hard origin/main++# snapshot the current standalone build (restore-on-failure safety net)+cp -a .next/standalone ~/standalone-backup-$(date +%Y%m%d%H%M) 2>/dev/null || true++npm ci --no-audit --no-fund+npm run build # standalone output (CI already proved this build green)+npx prisma migrate deploy # idempotent; template sync happens on boot++# restart the service — use whichever manager this VPS runs:+systemctl restart canvix 2>/dev/null || pm2 restart canvix 2>/dev/null || \+ (pkill -f 'node .*standalone' || true; nohup node .next/standalone/server.js &)+```++## 4. Post-deploy verification (must all pass)++```bash+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:+# https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json+```++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.++## 5. Well-known activation (after §4 passes)++Once `https://canvix.app/.well-known/funding-manifest-urls` returns the exact manifest URL in production:++1. Edit `funding.json`: add `"wellKnown": "https://canvix.app/.well-known/funding-manifest-urls"` inside `projects[0].webpageUrl`.+2. Update the honesty guard in `src/lib/funding-manifest.test.ts` (the test that asserts `wellKnown` is *absent* — flip it to assert presence).+3. Commit, push, let CI re-validate, merge. The grants directory picks it up on its weekly manifest refresh.++This is the exact "remaining step" referenced in `docs/FUNDING-VALIDATION.md` §website — the ownership claim is deliberately withheld until the public URL actually serves the file.++## 6. Rollback++The snapshot in §3 plus `git reset --hard <previous-tag>` rebuilds the prior state; database migrations are additive (no destructive migration in this deploy). `prisma migrate deploy` is a no-op when already applied.diff --git a/funding.json b/funding.jsonindex 56694c2..4116ec5 100644--- a/funding.json+++ b/funding.json@@ -5,8 +5,8 @@"type": "individual","role": "maintainer","name": "Ashiq Hussain Mir",- "email": "[email protected]",- "description": "Solo maintainer of Canvix. Final-year student building the free, open-source design tool full-time around classes, and looking for a development runway to keep that pace through v1.0.",+ "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"}@@ -15,9 +15,9 @@{"guid": "canvix","name": "Canvix",- "description": "Free & open-source graphic design tool — a community-built Canva alternative. A browser-based drag-and-drop editor with a 366-template library, real-time collaboration, local exports (PNG, JPG, SVG, PDF, PPTX, GIF, video) and a modular AI layer split into text, vision, image and video capability slots that plug into any provider. MIT-licensed; every feature free forever, no watermarks, no paywalls.",+ "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://github.com/mir-ashiq/canvix"+ "url": "https://canvix.app"},"repositoryUrl": {"url": "https://github.com/mir-ashiq/canvix"@@ -39,39 +39,49 @@"channels": [{"guid": "to-be-confirmed",- "type": "other",- "address": "To be confirmed with the funder",- "description": "Placeholder payment channel. The concrete rail (bank transfer or payment provider) will be finalized together with the funding organization before any disbursement, and this manifest will be updated in the open."+ "type": "bank",+ "address": "Indian bank transfer — account details to be shared securely after grant approval",+ "description": "Public placeholder channel: this manifest intentionally carries no private financial data. The concrete account details will be provided directly to FOSS United administrators upon approval, and this channel will then be updated in the open."}],"plans": [{- "guid": "final-year-tuition",+ "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": "Final-year tuition — full-time development runway",- "description": "Milestone 1 of 3 (USD 4,000). Covers final-year tuition so the maintainer can keep building Canvix at full-time pace instead of trading development hours for part-time work. Deliverable: sustained weekly release cadence through the academic year.",- "amount": 4000,- "currency": "USD",+ "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": "local-hardware-upgrade",+ "guid": "m3-grounded-visual-review","status": "active",- "name": "Local hardware upgrade — faster build & test loops",- "description": "Milestone 2 of 3 (USD 2,000). RAM and CPU upgrade for the local dev machine. Direct effect: faster compiles and test runs — the 1,400+ unit tests and the Playwright e2e suite gate every release, so shorter loops mean shorter release cycles and faster security fixes.",- "amount": 2000,- "currency": "USD",+ "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": "v1-living-expenses",+ "guid": "m4-community-final-report","status": "active",- "name": "Living expenses — ship Canvix v1.0",- "description": "Milestone 3 of 3 (USD 1,000). Living-expense support for the final push to v1.0: API stabilization, documentation, and the first stable, semver-committed release.",- "amount": 1000,- "currency": "USD",+ "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/public/.well-known/funding-manifest-urls b/public/.well-known/funding-manifest-urlsnew file mode 100644index 0000000..f56796b--- /dev/null+++ b/public/.well-known/funding-manifest-urls@@ -0,0 +1 @@+https://raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json\ No newline at end of filediff --git a/src/lib/funding-manifest.test.ts b/src/lib/funding-manifest.test.tsnew file mode 100644index 0000000..a90ba3c--- /dev/null+++ b/src/lib/funding-manifest.test.ts@@ -0,0 +1,103 @@+// ─────────────────────────────────────────────────────────────+// funding.json manifest guard (v0.29.5).+//+// The FOSS United application rides entirely on this manifest —+// the grants directory pulls it weekly from+// raw.githubusercontent.com/mir-ashiq/canvix/refs/heads/main/funding.json.+// A silent regression (bad field, broken reference, drifted total)+// would propagate to the public listing with nobody noticing. This+// test validates the manifest against the fundingjson.org v1.1.0+// contract offline (the official schema's rules, restated here so+// 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.+// ─────────────────────────────────────────────────────────────++import { describe, expect, it } from 'vitest'+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 wellKnown = readFileSync(path.join(ROOT, 'public/.well-known/funding-manifest-urls'), 'utf8')++const GUID_RE = /^[a-z0-9]+(-[a-z0-9]+)*$/+const TAG_RE = /^[a-z0-9]+(-[a-z0-9]+)*$/++describe('funding.json — fundingjson.org v1.1.0 contract', () => {+ it('entity: individual maintainer with the correct identity and contact', () => {+ const e = manifest.entity as Record<string, unknown>+ expect(e.type).toBe('individual')+ expect(e.role).toBe('maintainer')+ expect(e.name).toBe('Ashiq Hussain Mir')+ expect(e.email).toBe('[email protected]')+ expect(String(e.description).length).toBeLessThanOrEqual(2000)+ expect((e.webpageUrl as Record<string, unknown>).url).toBe('https://github.com/mir-ashiq')+ })++ it('project: canvix with canvix.app webpage, MIT license, schema-shaped tags', () => {+ const p = (manifest.projects as Record<string, unknown>[])[0]+ expect(p.guid).toMatch(GUID_RE)+ expect(String(p.guid).length).toBeLessThanOrEqual(32)+ expect(p.name).toBe('Canvix')+ expect(String(p.description).length).toBeLessThanOrEqual(2000)+ expect((p.webpageUrl as Record<string, unknown>).url).toBe('https://canvix.app')+ expect((p.repositoryUrl as Record<string, unknown>).url).toBe('https://github.com/mir-ashiq/canvix')+ expect(p.licenses).toEqual(['spdx:MIT'])+ const tags = p.tags as string[]+ expect(tags.length).toBeLessThanOrEqual(10)+ for (const t of tags) {+ expect(t).toMatch(TAG_RE)+ expect(t.length).toBeLessThanOrEqual(32)+ }+ })++ it('funding plans: four INR milestones, valid guids, referenced channels, ₹5,00,000 total', () => {+ const f = manifest.funding as Record<string, unknown>+ const channels = f.channels as Record<string, unknown>[]+ const plans = f.plans as Record<string, unknown>[]+ const channelGuids = new Set(channels.map((c) => c.guid as string))+ const TYPES = ['bank', 'payment-provider', 'cheque', 'cash', 'other']+ for (const c of channels) {+ expect(c.guid).toMatch(GUID_RE)+ expect(TYPES).toContain(c.type)+ expect(String(c.address ?? '').length).toBeLessThanOrEqual(250)+ }+ expect(plans).toHaveLength(4)+ let total = 0+ for (const plan of plans) {+ expect(String(plan.guid)).toMatch(GUID_RE)+ expect(String(plan.guid).length).toBeLessThanOrEqual(32)+ expect(plan.status).toBe('active')+ expect(plan.currency).toBe('INR')+ expect(plan.frequency).toBe('one-time')+ for (const ref of plan.channels as string[]) expect(channelGuids).toContain(ref)+ expect(String(plan.description ?? '').length).toBeLessThanOrEqual(2000)+ total += plan.amount as number+ }+ // M1 1,30,000 · M2 1,20,000 · M3 1,20,000 · M4 1,30,000 — one-time ₹5,00,000+ expect(plans.map((p) => p.amount)).toEqual([130000, 120000, 120000, 130000])+ expect(total).toBe(500000)+ })++ it('no private financial data ships in the manifest (placeholder channel only)', () => {+ const channels = (manifest.funding as Record<string, unknown>).channels as Record<string, string>[]+ for (const c of channels) {+ const blob = `${c.guid} ${c.type} ${c.address ?? ''} ${c.description ?? ''}`+ expect(/\d{9,}/.test(blob)).toBe(false) // no account/IFSC-style digit runs+ expect(/ifsc|swift|iban/i.test(blob)).toBe(false)+ }+ })++ it('the .well-known verification file authorizes exactly the canonical manifest URL', () => {+ 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'])+ })++ it('wellKnown ownership claim is withheld until production serves the file (honesty guard)', () => {+ // When canvix.app/.well-known/funding-manifest-urls is verified live,+ // flip this to 'include' — see docs/FUNDING-VALIDATION.md §website.+ const p = (manifest.projects as Record<string, unknown>[])[0]+ expect((p.webpageUrl as Record<string, unknown>).wellKnown).toBeUndefined()+ })+})diff --git a/tests/e2e/smoke.spec.ts b/tests/e2e/smoke.spec.tsindex bb8d43e..c8dbe07 100644--- a/tests/e2e/smoke.spec.ts+++ b/tests/e2e/smoke.spec.ts@@ -13,6 +13,18 @@ test.describe('Canvix smoke', () => {).toBeVisible()})+ 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.+ 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',+ )+ })+test('Start designing opens the dashboard', async ({ page }) => {await page.goto('/')await page.getByRole('button', { name: /start designing/i }).first().click()diff --git a/tests/e2e/wave2-assets-templates.spec.ts b/tests/e2e/wave2-assets-templates.spec.tsindex e3d9fe2..3571035 100644--- a/tests/e2e/wave2-assets-templates.spec.ts+++ b/tests/e2e/wave2-assets-templates.spec.ts@@ -173,14 +173,39 @@ test.describe('Wave 2 — assets & templates', () => {await page.getByRole('button', { name: /start designing/i }).first().click()await expect(page.getByLabel('Create a design')).toBeVisible()- // dashboard template grid: 122 originals render in "All"- const cards = page.locator('section:has(h2:text("Templates")) [aria-label^="Open template"]')+ // v0.26 lazy mounting: every template in "All" owns a grid slot (a+ // LazyCard wrapper div), but only cards near the viewport mount their+ // button — mounting all ~370 Konva stages at once was seconds of jank.+ // So the library SIZE is the slot count, and this test asserts both+ // halves of the contract: the full listing is present in the DOM, and+ // scrolling progressively mounts more of it.+ const grid = page.locator('section:has(h2:text("Templates")) div.mt-4.grid')+ await expect(grid).toBeVisible()+ const slots = await grid.locator('> div').count()+ expect(slots).toBeGreaterThanOrEqual(300)++ // the mounted subset carries the open-template affordance…+ const cards = grid.locator('[aria-label^="Open template"]')await expect(cards.first()).toBeVisible()- const count = await cards.count()- expect(count).toBeGreaterThanOrEqual(100)-- // a computed variant exists: Aurora colourway of the first template- await expect(cards.filter({ hasText: '· Aurora' }).first()).toBeVisible()- await expect(cards.filter({ hasText: '· Ink' }).first()).toBeVisible()+ const mounted = await cards.count()+ expect(mounted).toBeGreaterThanOrEqual(12)++ // …and lazy mounting is real: one wheel of scrolling mounts more+ await page.mouse.wheel(0, 2400)+ await page.waitForTimeout(500)+ expect(await cards.count()).toBeGreaterThan(mounted)++ // a computed variant exists: Aurora colourway of the first template.+ // Variants are appended AFTER the 122 originals, so the viewport has+ // to travel to them — LazyCard mounts rows as they approach (600 px+ // rootMargin), which is exactly the user's scroll journey.+ const aurora = cards.filter({ hasText: '· Aurora' })+ const ink = cards.filter({ hasText: '· Ink' })+ for (let i = 0; i < 40 && ((await aurora.count()) === 0 || (await ink.count()) === 0); i++) {+ await page.mouse.wheel(0, 600)+ await page.waitForTimeout(200)+ }+ await expect(aurora.first()).toBeVisible()+ await expect(ink.first()).toBeVisible()})})