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
release(v0.31.0): the first tag since v0.23.1 — the security fix, the DesignAgent arc, version reconciliation
Ashiq Hussain Mir5f3948926c04
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b47e20a..3784ba2 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -3,7 +3,20 @@All notable changes to Canvix will be documented in this file.The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).-## [Unreleased]+## [0.31.0] — 2026-11-25++> **Version reconciliation, stated not papered over:** this is the first+> tagged release since v0.23.1 (2026-11-13). The 75 commits it carries+> were developed under interim labels the tags never followed — the+> changelog recorded v0.24–v0.29.5, `package.json` sat at 0.29.1, and the+> DesignAgent work landed under `v0.31` labels. This tag reconciles all+> frames at **0.31.0** (the era label the code already uses); nothing+> between 0.23.1 and 0.31.0 was ever published, and tags follow+> `RELEASE-CHECKLIST.md`, not the changelog's working labels. The Word+> Cloud plugin's `engines.canvix` ceiling is bumped to `<0.32.0` in this+> release — the first-party consistency suite+> (`src/lib/plugins/firstparty.test.ts`) proves the shipped bundle+> validates against this exact host build.### Security — stored XSS via `/api/media` closed (CWE-79)@@ -24,7 +37,35 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).coordinated disclosure. A GitHub Security Advisory and CVE request are incoordinated disclosure with the reporter; identifiers will be linked hereonce public. Self-hosters on any build between 2026-10-29 and 2026-11-25- should update to current `main`.+ should update to **v0.31.0** (this release) or later.++### Added — the DesignAgent generation panel (v0.31)++- **The P1 gap from `docs/DESIGN-AGENT-ACCEPTANCE-REPORT.md`, closed: the+ autonomous design pipeline now has its dedicated user surface**+ (`2ae7e24`). `DesignAgentApp` (apps/registry) runs the full loop in the+ editor — prompt → live run view (fixed stage order, elapsed time, stop+ via the pipeline's abort seam) → **review gate** → Apply. Nothing lands+ on the canvas unreviewed (the house rule every generative feature+ obeys): the review gate shows the brief contract (verbatim texts and+ colors), per-page enable toggles with honest geometry wireframes,+ brief→spec conformance failures and warnings, and the full run report —+ stages, model calls, revision rounds, the cycle guard, and each visual+ pass with what it concluded. A failed run shows its evidence (best+ attempt pages plus the exact unmet requirements), never a shrug and+ never a fake pass. **fit-pages** gives every applied page a+ deterministic canvas fit: the pipeline compiles for the format the+ brief demanded (e.g. 1080×1350) and the panel uniformly rescales and+ centers pages onto the design's canvas. 14 new tests (fit-pages+ invariants + client status mapping). Underneath, the full Phase B arc+ ships here: the DesignSpec v2 engine (wrap-aware reflow, semantic seed+ placement), the autonomous pipeline (plan → compile → self-correct →+ visual-verify, with checks outranking critique and every unavailable+ seam disclosed rather than faked), BYOK production wiring+ (`POST /api/ai/design-agent` riding the same provider resolution chain+ as the shipped design-spec normalizer), and the 22-brief+ instruction-fidelity benchmark. Gates: tsc clean, eslint clean,+ 1,693/1,693 unit tests, production build clean.### Added — FOSS United funding application (v0.29.5)diff --git a/README.md b/README.mdindex d2dd80d..00a3163 100644--- a/README.md+++ b/README.md@@ -992,7 +992,7 @@ 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,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.+**Historical development (v0.1 – v0.23.2, plus the unreleased-to-v0.31.0 arc).** 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,693 unit tests (127 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'`.diff --git a/ROADMAP.md b/ROADMAP.mdindex 049527b..0c161df 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -1,20 +1,20 @@# Canvix Roadmap — where we are, what's next-> **Status date:** 2026-11-24 · **Changelog state:** v0.29.5 · `package.json` 0.29.1 · **latest published GitHub release:** v0.23.1 · **Test posture:** 1,653 unit tests across 123 test files (verified full run, 24 Nov, after the DesignAgent merge) · 38 e2e specs · CI gates every PR (`lint-unit` incl. production build + `e2e`) · `npm audit` **0 vulnerabilities**.+> **Status date:** 2026-11-25 · **Changelog state:** v0.31.0 · `package.json` 0.31.0 · **latest published GitHub release:** v0.31.0 · **Test posture:** 1,693 unit tests across 127 test files (verified full run, 25 Nov, the v0.31.0 release run) · 39 e2e spec files + the plugins & stock-video gated suites · CI gates every PR (`lint-unit` incl. production build + `e2e` running all three suites) · `npm audit` **0 vulnerabilities**.>-> **Version-numbering state (documented, not silently papered over):** the changelog records development through v0.29.5, `package.json` sits at 0.29.1, and the last tagged GitHub release is v0.23.1 — unreleased development has accumulated without tags. Tags follow `RELEASE-CHECKLIST.md`, not the changelog; the next tag is cut only when the checklist passes, not to make the numbers match.+> **Version-numbering state:** reconciled at **v0.31.0** (2026-11-25) — the first tag since v0.23.1. The 75 commits between were developed under interim working labels the tags never followed (changelog sections v0.24–v0.29.5, `package.json` 0.29.1, the DesignAgent era's v0.31); v0.31.0 aligns all frames in one release, and the Word Cloud plugin's `engines.canvix` ceiling was bumped to `<0.32.0` in the same commit — the first-party consistency suite (`src/lib/plugins/firstparty.test.ts`) verifies the shipped bundle against this exact host build. Tags follow `RELEASE-CHECKLIST.md`; this one passed it.>> 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).----## 0. Current state — four tracks (2026-11-24)+## 0. Current state — four tracks (2026-11-25)Where every active effort actually stands, in one place. The sections below remain the full record.| Track | State | Contents ||---|---|---|-| **Shipped on `main`** | Deployed at canvix.app; tagged through v0.23.1, changelog at v0.29.5 | WP1 complete — scoped API keys (v0.24, PR #77) + Docker/compose self-hosting; auto-snapshots (v0.24); the v0.29.4 agent-correctness arc; v0.29.5 funding & trust documentation: SECURITY.md, GOVERNANCE.md, CODE_OF_CONDUCT.md, `funding.json` with **live wellKnown domain verification** (PR #87), the FOSS United proposal, and the grantee research record; **the DesignAgent merge (24 Nov 2026, unfunded work)** — DesignSpec v2 + the deterministic design engine + the autonomous design pipeline (plan → compile → self-correct → visual-verify) with BYOK production wiring (`/api/ai/design-agent`) and the 22-brief instruction-fidelity benchmark, 1,653 unit tests green |+| **Shipped on `main`** | Deployed at canvix.app; tagged through **v0.31.0**, changelog at v0.31.0 | WP1 complete — scoped API keys (v0.24, PR #77) + Docker/compose self-hosting; auto-snapshots (v0.24); the v0.29.4 agent-correctness arc; v0.29.5 funding & trust documentation: SECURITY.md, GOVERNANCE.md, CODE_OF_CONDUCT.md, `funding.json` with **live wellKnown domain verification** (PR #87), the FOSS United proposal, and the grantee research record; **the DesignAgent merge (24 Nov 2026, unfunded work)** — DesignSpec v2 + the deterministic design engine + the autonomous design pipeline (plan → compile → self-correct → visual-verify) with BYOK production wiring (`/api/ai/design-agent`) and the 22-brief instruction-fidelity benchmark; **the CWE-79 media-XSS closure (25 Nov 2026, `fde7f25`)** — the project's first coordinated security disclosure (reported by @hackchang), four defense layers + 40 regression tests, private GHSA + CVE request in flight; **the v0.31.0 release** reconciling all version frames || **Merged feature branches** | `feat/design-spec-foundation` + `feat/design-agent` — **merged into `main`** 24 Nov 2026 | DesignSpec v2 (types, model-output parser, brief mapper), the deterministic design engine (palette/typography/layout/compositions/compile — dedicated builders for every block kind), the re-runnable **real-model + real-browser acceptance harness** (`scripts/designspec-compile.ts`, `scripts/designspec-render.cjs`, `scripts/designspec-agent-run.ts`), the seed-guarantee engine fix, `docs/DESIGNSPEC-ACCEPTANCE-REPORT.md` + `docs/DESIGN-AGENT-ACCEPTANCE-REPORT.md`, and `research/AUTONOMOUS-AGENT-RESEARCH.md` (the ReAct / OpenAI-SDK / PosterGen pattern study the pipeline architecture follows) || **Pending funding — decision outstanding** | Submitted; **not awarded — never represent it as such** | **FOSS United project grant** (INR 5,00,000, milestones M1–M4, submitted 12 Nov 2026 via the funding.json mechanism): design-output correctness, reproducible design evaluation, creator education. **NLnet** (WP1–WP5, ~€12,600 labour-only): deployment trust, collaboration scale, mobile editing, sharing, v1.0 stabilization. The two scopes are deliberately disjoint — no hour or deliverable is funded twice || **Unfunded development** | Proceeds on its own cadence | AI-provider track (vendor-SDK removal + direct OpenAI-compatible adapter, ~65 h — outside NLnet scope by its connectors policy), media GC, D8/D10 depth, Wave-5 remainder sequencing |@@ -116,12 +116,14 @@ Not in the original plan, forced by operating canvix.app in production:| — | **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 |-| — | **WebP export** — the fourth raster format (Wave 5 remainder): browser-native encoder, feature-detected card (hidden where the canvas lies — Safari's silent PNG fallback), honest-degradation guard on the captured bytes, 1×/2×/3× + all-pages parity with PNG/JPG | ✅ | Unreleased (Wave 5 slice) |-| — | **Docker/compose self-hosting (WP1 completion)** — the one-command self-host: three-stage image around the standalone artifact, migrate-on-boot entrypoint (P3005 auto-baseline), boot-time template sync, compose pg17 + app, CI docker job on every PR (health + register + landing through the real containers) | ✅ | Unreleased (WP1) |+| — | **WebP export** — the fourth raster format (Wave 5 remainder): browser-native encoder, feature-detected card (hidden where the canvas lies — Safari's silent PNG fallback), honest-degradation guard on the captured bytes, 1×/2×/3× + all-pages parity with PNG/JPG | ✅ | v0.31.0 |+| — | **Docker/compose self-hosting (WP1 completion)** — the one-command self-host: three-stage image around the standalone artifact, migrate-on-boot entrypoint (P3005 auto-baseline), boot-time template sync, compose pg17 + app, CI docker job on every PR (health + register + landing through the real containers) | ✅ | v0.31.0 |+| — | **The DesignAgent arc (unfunded)** — DesignSpec v2 + the deterministic design engine, the autonomous design pipeline (plan → compile → self-correct → visual-verify; checks outrank critique, unavailable seams disclosed) with BYOK production wiring (`/api/ai/design-agent`), the 22-brief instruction-fidelity benchmark, and the v0.31 generation panel with its review gate and fit-pages | ✅ | v0.31.0 |+| — | **Security: the CWE-79 media-upload stored XSS closed (`fde7f25`)** — exact MIME allowlist, magic-byte finalize check, upload ownership enforcement, hardened delivery (nosniff + sandboxing CSP + octet-stream downgrade for unprovable bytes); 40 regression tests; the project's first coordinated disclosure (reporter: @hackchang, private GHSA + CVE request in flight, 90-day window to 2027-02-23) | ✅ | v0.31.0 |### 2.3 Where that leaves the numbers-| Metric | v0.11.7 (roadmap baseline) | **Now (v0.23.1)** |+| Metric | v0.11.7 (roadmap baseline) | **Now (v0.31.0)** ||---|---|---|| Element types | 16 | **19** (+ polygon, plugin, chart) || Templates | 110 | **366** |@@ -130,7 +132,7 @@ Not in the original plan, forced by operating canvix.app in production:| MCP agent tools | 20 | **22** (+ `vision_ground`, `generate_design`) || Export formats | PNG/JPG/PDF-raster/SVG/MP4-WebM | + **vector-text PDF, GIF, WebCodecs WebM, PPTX** (11 formats total) || Stock content | 42 bundled photos | + Pexels/Pixabay video, Freesound, 562 icons, 48 illustrations, 126 stickers, 16 sounds |-| Unit / e2e tests | 302 / 28 | **1402 / 32** |+| Unit / e2e tests | 302 / 28 | **1,693 / 39** || CI | none | PR-gated, build + e2e, branch protection || Security posture | P0 open | headers/CSP, rate limits, SSRF corpus, plugin sandbox, 0 audit vulns, disclosure policy || Hand-written LOC | ≈33,000 | ≈91,000 |diff --git a/package-lock.json b/package-lock.jsonindex 5d39cdf..8b46ef2 100644--- a/package-lock.json+++ b/package-lock.json@@ -1,12 +1,12 @@{"name": "canvix",- "version": "0.23.2",+ "version": "0.31.0","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "canvix",- "version": "0.23.2",+ "version": "0.31.0","hasInstallScript": true,"dependencies": {"@imgly/background-removal": "^1.7.0",diff --git a/package.json b/package.jsonindex 567f9d2..d01ba1f 100644--- a/package.json+++ b/package.json@@ -1,6 +1,6 @@{"name": "canvix",- "version": "0.29.1",+ "version": "0.31.0","private": false,"description": "Canvix — free & open-source graphic design tool. A community-built Canva alternative.","scripts": {diff --git a/public/plugins/wordcloud/manifest.json b/public/plugins/wordcloud/manifest.jsonindex 94f9e42..bbd27ce 100644--- a/public/plugins/wordcloud/manifest.json+++ b/public/plugins/wordcloud/manifest.json@@ -9,7 +9,7 @@"url": "https://github.com/mir-ashiq/canvix"},"engines": {- "canvix": ">=0.13.4 <0.30.0"+ "canvix": ">=0.13.4 <0.32.0"},"entry": {"panel": "panel.html",