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): the NLnet application layer — AI disclosure, WP1–WP5 roadmap track, release checklist
Ashiq Hussain Mir2defdbcff9e1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 068e4f5..d20d7a9 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -5,6 +5,37 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).## [Unreleased]+### Added++- **NLnet application trust layer** — the repository now matches the+ NLnet proposal (deadline 2027-01-03):+ - `README.md` gains a dedicated **"AI & Development Disclosure"**+ section (NLnet policy v2.0 requires prior AI-generated code to be+ disclosed publicly in the repo): historical development v0.1–v0.23.2+ (AI-assisted rapid prototyping, all output human-reviewed, gated by+ 1,411 unit tests + 32 e2e specs) and the grant-funded standard —+ WP1–WP5 milestones human-authored, AI tools restricted to read-only+ review/flaw detection, with a `Grant: NLnet WP#` commit-trailer+ convention (AI review assistance, where used, is noted in the+ commit body — never as a co-author) so the human/assist boundary+ stays auditable. Linked from the canvix.app landing footer ("AI+ Disclosure").+ - `RELEASE-CHECKLIST.md` (root) — the four-step release discipline+ from the roadmap's E9: bump host version → update the Word Cloud+ plugin `engines` ceiling → sweep for untracked route files (the+ `.gitignore` casualty, with the exact audit loop) → run the full+ CI wall and verify on the live deployment. Cross-linked from+ CONTRIBUTING.md and ROADMAP.md §5.+ - `ROADMAP.md` — status line to v0.23.2 / 1,411 tests; the v0.23.2+ row in the shipped map; §3 rewritten as **"The NLnet grant track+ (WP1–WP5) — the active priority order"** (WP1 Docker/compose ++ scoped API keys, WP2 Postgres LISTEN/NOTIFY collab fan-out ++ op-level undo, WP3 mobile/touch editing, WP4 share-link roles ++ `.canvix` portable bundle, WP5 v1.0 quality gate + removing the+ vendor-locked `z-ai-web-dev-sdk`), each mapped to the epics it+ absorbs; §6 recommended order reframed as the unfunded expression+ of the same sequence.+## [0.23.2] — 2026-11-13### Fixeddiff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 6e1d7ed..30ed955 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -56,6 +56,12 @@ browser suite either. The deploy pipelines (Vercel, Cloudflare WorkersBuilds, Netlify) publish `main` directly — CI is the only test gate theyget, which is why it exists.+**Cutting a release?** Follow [`RELEASE-CHECKLIST.md`](RELEASE-CHECKLIST.md)+(host bump → plugin `engines` ceiling → untracked-route-file sweep → full+CI wall → tag). It exists because three releases shipped with a gap CI+cannot see — a plugin ceiling the host outgrew (×2) and a route file the+scaffold-era `.gitignore` silently skipped.+**One-time setup for maintainers — make the gate binding.** Branchprotection cannot be enabled from a PR, so after merging the CI workflow:diff --git a/README.md b/README.mdindex 551daba..d82e7e8 100644--- a/README.md+++ b/README.md@@ -955,6 +955,16 @@ tool descriptions so agents pick the right format.rail and (since v0.11.8) the collaboration events rail; see thesecurity audit and `research/V0118-ROADMAP-RESEARCH.md` §3.7+## 🤖 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.++**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'`.++**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.+## 🧭 Roadmap- [x] Canva-accurate dark theme & 8-tab editor rail *(v0.2.0)*diff --git a/RELEASE-CHECKLIST.md b/RELEASE-CHECKLIST.mdnew file mode 100644index 0000000..089f4fe--- /dev/null+++ b/RELEASE-CHECKLIST.md@@ -0,0 +1,51 @@+# Release Checklist++> Born from three real incidents: the **plugin-ceiling misses** (v0.22.0 and v0.23.0 both bumped the host version and forgot the shipped Word Cloud plugin's `engines` ceiling — fixed same-day each time) and the **`.gitignore` casualty** (v0.23.0's `/api/profile/ai-providers/test` route was silently never committed: the scaffold-era bare `test` rule matched the route directory, the button 404'd on every deployment until v0.23.1). Every step below exists because skipping it broke a real release.++---++## 1. Bump the host version++- [ ] Update `version` in `package.json` (semver: patch for fixes, minor for features).+- [ ] Update `CHANGELOG.md`: new version heading, dated, entries in the house style — what shipped, why, honest incident notes where relevant.+- [ ] Update `ROADMAP.md` per its own footer rule: move §3 items into §2 (the shipped map), re-rank the open map, refresh the status-date line and test-posture numbers.+- [ ] Grep the docs for stale version references: `grep -rn "v0\.2[0-3]" docs/ README.md` — fix any that name the old release as current.++## 2. Update the plugin engines ceiling++- [ ] Check `public/plugins/wordcloud/manifest.json`: the `engines.canvix` range must **include the new host version** (e.g. `">=0.13.4 <0.24.0"` covers 0.23.x but not 0.24.0).+- [ ] If the release changes plugin-facing surface (renderer contract, RPC broker, element schema), bump the ceiling deliberately and port the plugin in the same release.+- [ ] Verify with the plugin e2e suite: `PLAYWRIGHT_PLUGINS=1 npx playwright test -c playwright.plugins.config.ts` (install flow, sandbox, element render).++## 3. Sweep for untracked route files++The `.gitignore` incident: `git add` **silently skips** ignored paths — a route directory can be working locally, tested locally, and still missing from the release.++- [ ] `git status --short` — **must be empty** before tagging (no `??`, no ` M`, no deleted).+- [ ] Diff the API surface against the tree: every directory under `src/app/api/` must contain its `route.ts` **in git**:+ ```bash+ for d in $(find src/app/api -type d); do+ [ -f "$d/route.ts" ] && git ls-files --error-unmatch "$d/route.ts" >/dev/null 2>&1 \+ || echo "UNTRACKED: $d/route.ts"+ done+ ```+- [ ] If anything prints: fix the `.gitignore` rule (root-anchor it, e.g. `/test` not `test`), `git add` the file, and add a unit/e2e guard if the gap was user-visible.+- [ ] `git check-ignore -v <path>` names the exact rule when in doubt.++## 4. Run the full CI wall locally, then tag++- [ ] `npm run typecheck` — `tsc --noEmit`, zero errors.+- [ ] `npm run lint` — eslint, zero errors **and zero warnings** (the bar CI enforces).+- [ ] `npm test` — the full unit suite (1,411 tests / 108 files at v0.23.2; the number in `ROADMAP.md` §status must match this run).+- [ ] `npm run build` — the production-build guard (added v0.16.1 after the edge-instrumentation Prisma regression); if targeting Cloudflare, also `npm run verify:deploy` for the Workers bundle-size ceiling (~3 MB gz).+- [ ] e2e (needs a reachable `DATABASE_URL`): `npm run test:ui` — the 32-spec Playwright suite; optional gated suites when touched: plugins (`PLAYWRIGHT_PLUGINS=1`), stock video (`PLAYWRIGHT_STOCK_VIDEO=1`).+- [ ] Tag and push: `git tag vX.Y.Z && git push origin main --tags`, cut the GitHub Release from the changelog entry.+- [ ] Post-deploy verification on the live instance: `/api/health?v=2` returns `"ok":true` with fresh counts; the release's own headline features work in the deployed build (the v0.23.1 lesson: verify *on the deployment*, not just locally).++---++### House rules++- **CI is the gate, not the alibi** — every step above is enforced on PRs (`lint-unit` incl. production build + `e2e` on main); this checklist exists because some failures (untracked files, live-deploy gaps) only manifest *after* merge.+- **Same-day fix policy** — a release-blocking miss on the live instance gets a patch release the same day (the precedent: v0.22.1, v0.23.1, v0.23.2).+- **Grant-funded releases** additionally follow the commit-trailer convention in [README § AI & Development Disclosure](README.md#-ai--development-disclosure) (`Grant: NLnet WP#` trailers).diff --git a/ROADMAP.md b/ROADMAP.mdindex 566cf9d..b2654a7 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -1,6 +1,6 @@# Canvix Roadmap — where we are, what's next-> **Status date:** 2026-11-13 · **Current release:** [v0.23.1](https://github.com/mir-ashiq/canvix/releases/tag/v0.23.1) · **Test posture:** 1402 unit tests (108 files) · 32 e2e specs · CI gates every PR (`lint-unit` incl. production build + `e2e`) · `npm audit` **0 vulnerabilities**.+> **Status date:** 2026-11-14 · **Current release:** [v0.23.2](https://github.com/mir-ashiq/canvix/releases/tag/v0.23.2) · **Test posture:** 1411 unit tests (108 files) · 32 e2e specs · CI gates every PR (`lint-unit` incl. production build + `e2e`) · `npm audit` **0 vulnerabilities**.>> This is the living map of the project: the two planning eras (the original **v0.11.8 → v1.0 roadmap** and the **consolidation programme** that overtook it), exactly what shipped under each, what remains open, and the recommended order for finishing the job. The full research it synthesizes: `research/V0118-ROADMAP-RESEARCH.md` (the original decision record) and `docs/COMPETITIVE-ANALYSIS.md` (the wave plan + five-cluster reanalysis).@@ -100,6 +100,7 @@ Not in the original plan, forced by operating canvix.app in production:| — | Grant-application trust layer (SECURITY / GOVERNANCE / CONDUCT / funding.json) | ✅ | v0.22.1 || — | **Bring your own key** — profile page, per-user AI providers (`UserAIProvider`, migration 0012), user-aware capabilities, key-before-instance resolution | ✅ | v0.23.0 || — | v0.23.1 patch: admin video-slot save fix (the `SLOT_ORDER` omission), BYOK failure hints on all five AI surfaces, the missing `/test` route shipped (a `.gitignore` casualty) | ✅ | v0.23.1 |+| — | v0.23.2 patch: the admin "Test video generation" button answered `Unknown slot` (v0.16-era slot lists never learned the v0.19 video slot) — fixed + 9 regression tests | ✅ | v0.23.2 |### 2.3 Where that leaves the numbers@@ -121,11 +122,25 @@ Not in the original plan, forced by operating canvix.app in production:----## 3. In flight / recently landed (watch these)+## 3. The NLnet grant track (WP1–WP5) — the active priority order-- **v0.23.x BYOK polish** — the feature works end-to-end (verified live on canvix.app: save → mask echo → capabilities → test route → per-slot precedence), and v0.23.1 hardened the console round-trip. Optional next polish: usage accounting per user (`AIUsage` rows already carry the actor), and an admin-visible "N users have BYOK providers" stat.+> **This section is the current plan of record.** If funded, these five work packages run in this order and absorb the recommended §6 order below (each WP *is* that recommendation, funded). If not funded, §6 remains the plan and the same items ship on the project's own cadence. Development standards for grant-funded code: [README § AI & Development Disclosure](README.md#-ai--development-disclosure) — human-authored engineering, AI tools read-only, `Grant: NLnet WP#` commit trailers.++| 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 |+| **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 |++**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.++**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.- **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 both argue for a small **release checklist** doc: bump host → check plugin `engines` ceiling → `git status` for untracked route files → cut tag + release notes. (Enhancement E9 below.)+- **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.---@@ -199,20 +214,20 @@ This is the largest *new* surface, and the audit's biggest measured deficit (Acc6. **Rich-text merge coarseness (risk #5).** Two offline editors of one text box still whole-box LWW — documented at R1 ship. Per-span stamps or a Yjs sub-document are the post-1.0 evaluation, only if real usage demands.7. **Video slot is code-complete but provider-dependent.** `videoGeneration: false` on canvix.app is a *configuration* state (no live video provider key), not missing code — worth an admin-console callout so operators don't misread it.8. **Workers bundle headroom (risk #1).** Still the standing constraint at ~2.1–2.9 MB gz vs the 3 MB cap — every wave re-verifies via `verify-deploy-readiness`; keep dynamic-importing new subsystems.-9. **Release checklist** (new, from the two plugin-ceiling incidents + the gitignore casualty): host bump → plugin `engines` ceiling → untracked-file sweep → tag + release notes. S, and prevents repeat incidents.+9. **Release checklist** — ✅ *closed 2026-11-14:* [`RELEASE-CHECKLIST.md`](RELEASE-CHECKLIST.md) (from the two plugin-ceiling incidents + the gitignore casualty): host bump → plugin `engines` ceiling → untracked-file sweep → tag + release notes.10. **Template/plugin ecosystem depth.** One first-party plugin (Word Cloud) proves the rail; the ecosystem wants 2–3 more reference plugins exercising different permission sets (the original P3 ask, partially met) — good first-contributor work.---## 6. Recommended order (the "what next" verdict)-If only three things happen next, in order:+**The NLnet grant track (§3) is the funded expression of this order — WP1–WP5 in sequence.** Without funding, the same three moves stand, in order:-1. **Wave 6 core slice — Docker/compose + email/password reset + scoped API keys.** The enterprise wall is the biggest measured deficit and Docker is the highest-frequency self-hoster ask. (M-sized each, independent.)-2. **The M-block, led by M4 (collab fan-out).** LISTEN/NOTIFY removes the scaling wall while staying Postgres-only; M1–M3 close the last README promise; M5/M6 double as Wave-6 items.-3. **Wave 5 remainder (share roles first).** Roles+password+expiry sharing is the feature the competitive matrix scores hardest against Canva.+1. **Wave 6 core slice — Docker/compose + scoped API keys.** The enterprise wall is the biggest measured deficit and Docker is the highest-frequency self-hoster ask. (M-sized each, independent.) *(= WP1)*+2. **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 S1–S4 as the gate to v1.0. 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 — 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.---diff --git a/src/components/landing/Landing.tsx b/src/components/landing/Landing.tsxindex 8c2c9b3..36f0e0a 100644--- a/src/components/landing/Landing.tsx+++ b/src/components/landing/Landing.tsx@@ -355,6 +355,7 @@ export function Landing() {<a href="https://github.com/mir-ashiq/canvix" target="_blank" rel="noreferrer" className="hover:text-foreground transition-colors inline-flex items-center gap-1.5"><Github size={15} /> GitHub</a>+ <a href="https://github.com/mir-ashiq/canvix#-ai--development-disclosure" target="_blank" rel="noreferrer" className="hover:text-foreground transition-colors">AI Disclosure</a><a href="#features" className="hover:text-foreground transition-colors">Features</a><a href="#templates" className="hover:text-foreground transition-colors">Templates</a></div>