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
docs(grants): GenAI-policy alignment — WP5 vendor-independence rescope, adapter out of funded scope
Ashiq Hussain Mir9cadaf5384ab
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex d20d7a9..fc3b618 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -36,6 +36,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).absorbs; §6 recommended order reframed as the unfunded expressionof the same sequence.+- **GenAI-policy alignment refinement** — scope aligned with NLnet's+ published policy v2.0 and GenAI FAQ (verified 2026-11-14):+ - README disclosure: policy link fixed (the old `nlnet.nl/policy/`+ path 404s; correct URL is+ `nlnet.nl/foundation/policies/generativeAI`), and the grant-standard+ paragraph now states the exact boundary — read-only review of+ human-authored code and tests (defects, security issues,+ test-coverage gaps); AI may recommend additional test scenarios,+ but all test cases, code, fixes and documentation are independently+ human-authored; zero AI development in the funded scope; €0 for AI+ subscriptions/credits (non-reimbursable).+ - ROADMAP WP5 rescoped to **"v1.0 quality gate & vendor+ independence"**: funded scope = removing the vendor-locked+ `z-ai-web-dev-sdk` from core (one production file,+ `src/lib/ai/provider.ts`; the SDK-free BYOK rail is the migration+ path) + S1–S4 (CI perf budgets, WCAG a11y audit, self-hoster+ handbook, 1.0 definition pass). The provider-neutral AI adapter is+ **outside the funded scope** (FAQ: AI connectors stay out of funded+ work) and proceeds as unfunded project work — §3 sequencing note,+ §5 item 1 and §6 updated to match.+ - WP2/WP4 language grounded in shipped work: WP2 builds on the HLC+ LWW merge + deletion tombstones of v0.10.0; WP4 notes vector-text+ PDF (v0.15.3) and native editable PPTX (v0.21.0) as the shipped+ export track record the `.canvix` open format extends.+## [0.23.2] — 2026-11-13### Fixeddiff --git a/README.md b/README.mdindex d82e7e8..f040c85 100644--- a/README.md+++ b/README.md@@ -957,11 +957,11 @@ tool descriptions so agents pick the right format.## 🤖 AI & Development Disclosure-NLnet's [generative-AI policy](https://nlnet.nl/policy/) 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.+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.-**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 assistance — review, flaw detection, and test-case brainstorming — and never for authoring shipped code. 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'`.+**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**: no AI connector work is in the funded scope (the provider-neutral adapter, where it happens, is unfunded project work), 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.diff --git a/ROADMAP.md b/ROADMAP.mdindex b2654a7..8f1cb54 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -129,16 +129,16 @@ Not in the original plan, forced by operating canvix.app in production:| WP | Scope | Absorbs | Effort | v1.0 unblocks ||---|---|---|---|---|| **WP1 — Deployment & API trust** | Docker image + compose file (Postgres + app, single `docker compose up`) · scoped API keys for self-hosters (read-only/read-write per key, revocable) | Wave 6 core (Docker), Wave 6 (scoped keys via the MCP-rail model) | M | Docker/compose is the single most-asked self-hoster item; the M-block and every deployment story after it get cheaper |-| **WP2 — Real-time collaboration at scale** | Postgres `LISTEN/NOTIFY` → in-process hub → SSE fan-out (kills the per-connection poll loop) · **op-level undo broadcast** (undo syncs as ops, not `pages:replace`) | M4 + M6 | M/L | The scaling wall (~0.31–1.25 q/s per client); live-session correctness for shared editing |+| **WP2 — Real-time collaboration at scale** | Postgres `LISTEN/NOTIFY` → in-process hub → SSE fan-out (kills the per-connection poll loop) · **op-level undo broadcast** that preserves concurrent remote edits rather than clobbering them (undo syncs as ops, not `pages:replace`) — building on the HLC last-write-wins merge + deletion tombstones shipped in v0.10.0 | M4 + M6 | M/L | The scaling wall (~0.31–1.25 q/s per client); live-session correctness for shared editing || **WP3 — Mobile & touch editing** | Touch-first editing (large handles, 1-finger drag vs 2-finger pan, double-tap zoom, long-press menu) · bottom-sheet properties · gesture polish (pinch-rotate, momentum pan, edge-pinch) | M1 + M2 + M3 — **the last unchecked README promise** | M | Closes the displaced v0.16 mobile block; parity with Canva mobile web |-| **WP4 — Sharing roles & portability** | Share links with view/comment/edit roles (+ optional password & expiry) · `.canvix` portable project file (design JSON + embedded media, single-file backup/transfer) | Wave 5 remainder (share roles, `.canvix`) | M | The feature the competitive matrix scores hardest against Canva; the backup story self-hosters ask for |-| **WP5 — v1.0 quality gate & vendor freedom** | The AI adapter interface — any OpenAI-compatible provider first-class, **removing the vendor-locked `z-ai-web-dev-sdk`** (the last pre-1.0 dependency) · S1–S4 stabilization (perf budgets in CI, a11y audit, self-hoster handbook, the 1.0 definition pass) | Debt #9 + §4.5 | M | The gate itself: vendor-neutral AI, then tag v1.0.0 |+| **WP4 — Sharing roles & portability** | Share links with view/comment/edit roles (+ optional password & expiry) · `.canvix` portable project file — a **documented, open archive format** (design JSON + embedded media, single-file backup/transfer). Vector-text PDF (v0.15.3) and native editable PPTX (v0.21.0) already shipped — they are the export track record this WP extends, not its scope | Wave 5 remainder (share roles, `.canvix`) | M | The feature the competitive matrix scores hardest against Canva; the backup story self-hosters ask for |+| **WP5 — v1.0 quality gate & vendor independence** | **Removing the vendor-locked `z-ai-web-dev-sdk` from core** (the last pre-1.0 dependency — confined to one production file, `src/lib/ai/provider.ts`, with the SDK-free BYOK rail as the migration path) · S1–S4 stabilization: performance budgets in CI, **WCAG keyboard/screen-reader accessibility audit**, self-hoster handbook, the 1.0 definition pass. **Funded scope contains zero AI connector work** — the provider-neutral adapter is deliberately outside the grant (NLnet policy: optional AI connectors stay out of funded scope) and proceeds as unfunded project work on its own cadence | §4.5 (S1–S4) + the SDK-removal half of debt #9 | M | The gate itself: vendor-free core, then tag v1.0.0 |-**Sequencing:** WP1 → WP2 → WP3 → WP4 → WP5 — deployment trust first (every later WP ships to a reproducible environment), the scaling wall before the traffic that mobile brings, sharing after the sessions it serves are correct, and the vendor-freedom/stabilization gate last, wrapping v1.0. Each WP lands as minor releases with the full CI wall + docs + export-parity checks per the standing acceptance bar.+**Sequencing:** WP1 → WP2 → WP3 → WP4 → WP5 — deployment trust first (every later WP ships to a reproducible environment), the scaling wall before the traffic that mobile brings, sharing after the sessions it serves are correct, and the vendor-independence/stabilization gate last, wrapping v1.0. Each WP lands as minor releases with the full CI wall + docs + export-parity checks per the standing acceptance bar. **Funding boundary:** WP1–WP4 plus WP5's SDK-removal and stabilization items are the funded scope; the provider-neutral AI adapter is not funded work (it proceeds unfunded, outside the grant, per NLnet's rule that AI connectors stay outside funded scope).**Recently landed (context for the WPs):**-- **v0.23.x BYOK arc** — profile page, per-user AI providers (`UserAIProvider`), key-before-instance resolution, admin test round-trips on all five slots (v0.23.2). WP5's adapter generalizes what BYOK proved per-user to the instance level.+- **v0.23.x BYOK arc** — profile page, per-user AI providers (`UserAIProvider`), key-before-instance resolution, admin test round-trips on all five slots (v0.23.2). The BYOK rail is already SDK-free end-to-end — it is the migration path WP5 uses to take the vendor SDK out of core.- **Dependency freshness** — the 2026-11-13 sweep merged 9 Dependabot PRs (Next 16.4.6, babel, Actions bumps, the 79-update dev group); lucide-react 1.x and Prisma 7 were deliberately declined with reasons on the PRs (lucide 1.0 drops brand icons the code imports; Prisma 7 breaks the patched-wasm generation flow). Both need real migration PRs, not bot bumps.- **Release hygiene** — the plugin-ceiling incident (×2) and the `.gitignore`-ate-my-route incident are now covered by `RELEASE-CHECKLIST.md` (root) — the E9 item, closed 2026-11-14.@@ -206,7 +206,7 @@ This is the largest *new* surface, and the audit's biggest measured deficit (Acc## 5. What needs enhancement (shipped, but with known ceilings)-1. **AI provider portability (debt #9, scheduled "v0.15" in the original plan, never done).** `z-ai-web-dev-sdk` remains the only pre-1.0 dependency and is vendor-locked. The admin table + BYOK now wrap it on both sides; the remaining step is the **adapter interface** so any OpenAI-compatible provider is first-class. This is also the prerequisite for a real BYOK model catalog.+1. **AI provider portability (debt #9, scheduled "v0.15" in the original plan, never done).** `z-ai-web-dev-sdk` remains the only pre-1.0 dependency and is vendor-locked. The admin table + BYOK now wrap it on both sides; the remaining step is the **adapter interface** so any OpenAI-compatible provider is first-class. This is also the prerequisite for a real BYOK model catalog. *Deliberately outside the NLnet funded scope* (policy: AI connectors stay out of funded work) — the grant funds only the SDK's removal from core (WP5); the adapter itself proceeds as unfunded project work.2. **eslint posture (debt #11).** ~25 rules disabled incl. `react-hooks/exhaustive-deps`. The whole-store subscriptions (debt #3) were never fixed either — `PropertiesBar` ×2, `ToolsPanel`, `BrandPanel`, `context-menu` still re-render on every mutation. Both are perf/quality multipliers; both are "real refactor" sized.3. **God files (debt #6).** `mcp/tools.ts` (1,316 → now larger), `editor-store.ts` (1,240), `Dashboard.tsx` (992), `CanvasStage`/`PropertiesBar` — the change-velocity tax compounds; each split is M-sized and safe to do opportunistically.4. **Media lifecycle (debt #4/H6 residue).** bytea-in-Postgres works (32 MB cap) but there is no user-facing media delete/GC; orphans accumulate. An S-sized "delete on element delete + GC sweep" closes the loop; object storage (S3/R2) stays the documented post-1.0 option.@@ -227,7 +227,7 @@ This is the largest *new* surface, and the audit's biggest measured deficit (Acc2. **The M-block, led by M4 (collab fan-out) with M6 (op-level undo).** LISTEN/NOTIFY removes the scaling wall while staying Postgres-only; M1–M3 close the last README promise; M5/M6 double as Wave-6 items. *(= WP2 + WP3)*3. **Wave 5 remainder (share roles first, then `.canvix`).** Roles+password+expiry sharing is the feature the competitive matrix scores hardest against Canva. *(= WP4)*-Then the v1.0 gate — AI adapter + S1–S4 *(= WP5)*. The enhancement list (§5) runs opportunistically alongside — items 1 (AI adapter), 4 (media GC) and 9 (release checklist) are the ones with disproportionate leverage.+Then the v1.0 gate — SDK removal from core + S1–S4 *(= WP5's funded scope; the AI adapter itself is deliberately unfunded)*. The enhancement list (§5) runs opportunistically alongside — items 1 (AI adapter, unfunded), 4 (media GC) and 9 (release checklist, closed) are the ones with disproportionate leverage.---