Repository navigation
feat(artcraft): add ArtCraft Studio, AI image and video creation (ai.artcraft.app) - #1030
Conversation
…artcraft.app) ArtCraft Studio is a creative desktop workspace for generating AI images and video with connected AI providers. Repackages official Linux release builds from storytold/artcraft (x86_64 and aarch64) in extra-data mode on org.gnome.Platform 51.
Review: ArtCraft Studio (
|
| # | Phase | Check | Tier | Verdict | Evidence |
|---|---|---|---|---|---|
| 0 | Safety | Static-only; artifacts handled in an isolated dir | ★ | ✅ | Both tarballs fetched as bytes into a scratch dir. Entries listed before extraction, then extracted with --no-same-owner --no-same-permissions. Nothing in them executed |
| 1.1 | Scope | Classification | ★ | ✅ | New app: 8 files, all under registry/ai.artcraft.app/ (+215/−0) |
| 1.2 | Scope | High-scrutiny surface | ★ | ✅ | No .github/, scripts/, config/ or existing resolver touched (guard-infra passed). The resolver is in the new app dir |
| 2.1 | Provenance | Submitter account | ★ | ✅ | dylanmtaylor (Dylan M. Taylor): account from 2010-05, 226 public repos, 256 followers. 4 merged PRs here before this one (#938, #939, #940, #954: the Storyteller ai.storyteller.* apps) |
| 2.2 | Provenance | Source repo | ★ | ✅ | storytold/artcraft: org-owned, created 2022-03-31, ~39.3k★, ~6.2k forks, homepage getartcraft.com. The submitter is the #2 contributor (7 commits, all CI work) and merged their own upstream PR storytold/artcraft#2758 (merged_by: dylanmtaylor), so they have write access upstream. That supports the "upstream developer" claim in the PR body |
| 2.3 | Provenance | Commit identity | ★ | ✅ | One commit, Dylan M. Taylor <[email protected]>. The domain matches the account's blog. Unsigned, like most contributor commits |
| 2.4 | Provenance | Timeline | ★ | ✅ | The timeline is tight but plausible: upstream #2758, which added the Linux release matrix, was merged 2026-11-07 01:02 UTC. Release artcraft-v0.41.1 was published 02:49 UTC by github-actions[bot], and this PR was opened at 03:04 UTC. The account and repo are years old, and the assets were uploaded by upstream CI, not by a person |
| 2.5 | Provenance | Trust tier | ★ | ✅ | established |
| 2.6 | Provenance | Artifact tier | ★ | ✅ | Tier 1: open source (MIT OR Apache-2.0), official upstream tarball |
| 3.1 | Manifest | Source types | ★ | ✅ | Two extra-data sources (x86_64 / aarch64 via only-arches), each with sha256 and a non-zero size. The rest are local file sources. No git, no archive |
| 3.1b | Manifest | Nothing remote built into /app |
★ | ✅ | buildsystem: simple, and the five install -D lines only copy in-repo files. The payload is extra-data |
| 3.2 | Manifest | finish-args escape perms | ★ | ✅ | None. Grants: wayland, fallback-x11, pulseaudio, ipc, network, dri, xdg-pictures, xdg-videos, xdg-download. All are commented in the manifest and argued in the PR. They are identical to upstream's own packaging/linux/flatpak.yml |
| 3.3 | Manifest | policy: honest |
★ | ✅ | proprietary: false (repo license Apache-2.0, upstream metainfo MIT OR Apache-2.0). dangerous_permissions: [] is correct, since none is used |
| 3.4 | Manifest | build-commands / injected code | ★ | ✅ | Install-only. The wrapper sets WEBKIT_DISABLE_DMABUF_RENDERER (overridable, ${…-1}) and execs /app/extra/artcraft/bin/artcraft. No LD_PRELOAD, no patch |
| 3.4b | Manifest | packaging: declarations |
★ | ✅ | None needed. Per permissions.md, an env-only wrapper is Unmodified. WebKit's sandbox is left on, and there are no host commands |
| 3.5 | Manifest | Source URLs genuine | ★ | ✅ | github.com/storytold/artcraft/releases/download/artcraft-v0.41.1/artcraft-0.41.1-linux-{x86_64,aarch64}.tar.gz |
| 3.6 | Manifest | App id matches vendor | ★ | ✅ | ai.artcraft.app is upstream's own id: Tauri identifier in crates/desktop/artcraft/tauri.conf.json, plus packaging/linux/ai.artcraft.app.metainfo.xml. The binary talks to cdn.artcraft.ai, so the vendor owns the domain |
| 3.7 | Manifest | update.command |
★ | ✅ | ./resolve-update.sh |
| 3.8 | Manifest | Download host | ★ | ✅ | Upstream GitHub releases. Assets uploaded by github-actions[bot] |
| 3.9 | Manifest | Optional caps opt-in | ★ | ✅ | No broad grant. The three XDG dirs are the save targets, and upstream asks for the same three. No home, no host |
| 3.10 | Manifest | Testing record | ★ | "Tested" lists check-apply-extra.sh, audit-descriptor.mjs, the two test scripts and the resolver. It doesn't say the app was installed and launched. The wrapper's DMABUF workaround is stated as needed, but no run is recorded. Please add what was launched and used (and on which arch/session), and what wasn't, per the testing playbook |
|
| 4.1 | Runtime | No fetch-and-exec | ★ | ✅ | No Tauri updater strings in the binary (tauri-plugin-updater / plugin:updater: 0 hits). No shell-out patterns. Generation runs on remote providers |
| 4.2 | Runtime | Resolver as code | ★ | ✅ | Reads /releases of the hard-coded storytold/artcraft (optional GITHUB_TOKEN). Picks the first non-draft artcraft-v* release and the exact asset names artcraft-$version-linux-{x86_64,aarch64}.tar.gz. Prints JSON via jq --arg. No eval, no writes. URLs come from browser_download_url, so they stay on GitHub release storage. It exits 1 if either asset is missing |
| 4.3 | Runtime | Network × filesystem | ★ | ✅ | Network is the core feature. Hosts in the binary are the providers the metainfo names (queue.fal.run, grok.com/assets.grok.com, www.midjourney.com, sora.chatgpt.com/sora.com, api.worldlabs.ai/marble.worldlabs.ai), plus securetoken.googleapis.com, cdn.artcraft.ai, getartcraft.com and cert/schema URLs. Filesystem access is limited to three XDG dirs |
| 5.1 | Artifact | sha256 == pin | ★ | ✅ | x86_64: 149f9748…22a94eb4, 49365185 bytes. aarch64: cb780e02…d9a691ae, 49710171 bytes. Both match the manifest, GitHub's asset digest and upstream's SHA256SUMS.txt |
| 5.2 | Artifact | Inspected per type | ★ | ✅ | tar.gz, 19 entries per arch: 13 dirs and 6 regular files under one artcraft-0.41.1-linux-<arch>/ top dir. The files are bin/artcraft (0755), three icon PNGs, .desktop and metainfo. No symlinks, no .., no absolute paths, no setuid/setgid |
| 5.3 | Artifact | Open-source: nothing injected | 1 | ✅ | The binary runs unmodified. apply_extra.sh only untars, renames the version dir to artcraft/ and deletes the archive. The shipped icon is the same logo as upstream's 256x256@2/apps/artcraft.png (re-rendered at 512×512, different bytes). The desktop file and metainfo are FlatPark's own, with the content taken from upstream's |
| 5.4 | Artifact | Shipped == official | ★ | ✅ | Re-fetched both URLs and hashed them (5.1). Nothing in the payload is rewritten |
| 5.5 | Artifact | Bundled runtime vs upstream | ★ | ✅ | No bundled runtime: one Tauri binary. Its NEEDED list (gtk3, webkit2gtk-4.1, javascriptcoregtk-4.1, soup-3, glib, cairo, pango, dbus, libc) is fully present in the local org.gnome.Platform//51 x86_64 runtime (15/15) |
| 5.6 | Artifact | IOC scan | ★ | ✅ | Both arches have no hits for xmrig, stratum+, /dev/tcp, nc -e, bash -i, crontab, .bashrc, autostart, systemctl, LD_PRELOAD. Neither has RPATH/RUNPATH. In x86_64 the second \x7fELF match (offset 0x44f875b) is inside .text (0x28a7a00–0x4534c20) as the immediate of a cmp dword [rsi], 0x464c457f, i.e. code that checks an ELF header, not an embedded binary. aarch64 has only the header at 0. The dotted quads are 127.0.0.1/0.0.0.0 plus version-table noise (N.0.0.0) |
| 6.1 | Compliance | Purpose | ★ | ✅ | Frontend for AI image/video generation through the user's own provider accounts. Open-source license allows redistribution, and extra-data keeps the bytes off FlatPark storage |
| 6.2 | Compliance | Non-FOSS not a reason | ★ | ➖ | Open source |
| 7.1 | Verdict | Overall | ★ | PASS once 3.10 is filled in and build-changed (aarch64) is green |
|
| 7.2 | Verdict | Hard-fail triggers | ★ | ✅ | None |
| 7.3 | Verdict | Recommends only | ★ | ✅ | Recommendation only. A maintainer merges |
Files read
ai.artcraft.app.yml: finish-args and their comments, the one module, both extra-data sources in the MANAGED block, the five local files.flatpark.yml: both arches,update.command,policy:. Nopackaging:, which is correct (3.4b).apply_extra.sh:set -eu, checks the archive exists,tar --no-same-owner -xzf, finds the singleartcraft-*dir, renames it toartcraft/, fails loudly ifartcraft/bin/artcraftisn't executable, deletes the archive.artcraft-wrapper: one overridable env var plusexec.resolve-update.sh: see 4.2.ai.artcraft.app.desktop,ai.artcraft.app.metainfo.xml,ai.artcraft.app.png: compared against the files in the tarball (5.3). The<release version="0.41.1" date="2026-11-07">entry matches the release'spublished_at.- Upstream, for comparison:
packaging/linux/flatpak.yml(same finish-args) and the release asset list (assets uploaded bygithub-actions[bot], with a signedSHA256SUMS.txt).
Reproduce
base=https://github.com/storytold/artcraft/releases/download/artcraft-v0.41.1
for a in x86_64 aarch64; do curl -fsSLo artcraft-$a.tar.gz $base/artcraft-0.41.1-linux-$a.tar.gz; done
curl -fsSLO $base/SHA256SUMS.txt
sha256sum artcraft-*.tar.gz; stat -c '%n %s' artcraft-*.tar.gz; grep 'linux-.*tar\.gz$' SHA256SUMS.txt
tar -tvzf artcraft-x86_64.tar.gz # 19 entries, no links, no setuid
mkdir x && tar -xzf artcraft-x86_64.tar.gz -C x --no-same-owner --no-same-permissions
B=x/artcraft-0.41.1-linux-x86_64/bin/artcraft
readelf -d $B | grep -E 'NEEDED|RPATH|RUNPATH'
LC_ALL=C grep -aobP '\x7fELF' $B # 0 and 72320859 (inside .text)
readelf -S -W $B | grep ' \.text '
strings -n6 $B | grep -E 'xmrig|stratum\+|/dev/tcp|nc -e|bash -i|crontab|\.bashrc|autostart|LD_PRELOAD'
gh api repos/storytold/artcraft/pulls/2758 --jq .merged_by.login # dylanmtaylorNot covered
- Nothing was built or run here (runbook Phase 0). The build,
check-apply-extra.shand the rest ofpr-checks.ymlare covered by CI. aarch64 was still pending at the time of review. - ArtCraft's Rust/TS source wasn't audited (Tier 1: looked at only through the artifact).
- Real provider logins and generation, the WebKit DMABUF behaviour, and aarch64 at runtime. See 3.10.
Nits (non-blocking)
- Affiliation wording. The PR body says this is submitted by the upstream developer, but the metainfo says "maintained independently and unaffiliated with the ArtCraft project". That matches the submitter's other
ai.storyteller.*packages, so it's consistent with what's already merged. But since the submitter has merge rights upstream (ci: add signed Linux release matrix, packaging lint, and FreeBSD CI storytold/artcraft#2758), this could instead go the "approved by construction" route: setcatalog.upstream_approved: true, add a row indocs/reference/upstream-approvals.mdciting this PR, and drop "unaffiliated" from the description. Maintainer's call. Either way, the two texts should agree. resolve-update.shdoesn't skip prereleases. It only filtersdraft == false. Upstream has published no prereleases so far, but addingand .prerelease == falsewould keep a future RC from being pinned.- Desktop entry.
Categories=Graphics;AudioVideo;names two main categories.desktop-file-validategives a hint that the app may show up twice in menus. Upstream's own entry is justGraphics;.Exec=artcraft %Udeclares URI arguments, but there's noMimeType=/scheme handler, and upstream uses a plainExec=artcraft.
…rereleases - Set catalog.upstream_approved: true and add entry in docs/reference/upstream-approvals.md - Update metainfo description to reflect official upstream package - Align desktop categories and Exec command - Skip prereleases in resolve-update.sh
|
Thank you for the thorough review! Updated:
|
ArtCraft hardcodes its data root to $HOME/Artcraft (settings, provider credentials, task state, assets) with no override. With no home grant it was created in the sandbox's throwaway home on every launch, so logins and settings never survived a restart. --persist keeps it under ~/.var/app/ai.artcraft.app/Artcraft.
Test run: ArtCraft Studio (
|
| Check | Result |
|---|---|
| Unpacks as a system install | ✅ check-apply-extra.sh: "apply_extra OK as root with no capabilities". audit-descriptor.mjs passes |
| Install | ✅ publish.sh --verify: built and installed from the local signed repo |
| Starts and draws | ❌ → ✅ with b18e577; see 2. Native Wayland window (xwayland=false, title "ArtCraft"), web process alive (WebKitWebProcess, WebKitNetworkProcess) |
| Data survives a restart | ❌ → ✅ with c97218f; see 1 |
| Nothing new in the home folder | ✅ ls -A ~, ~/.config/autostart, ~/.local/share/applications, ~/Desktop: same before and after |
| Window class | ✅ X11 WM_CLASS is artcraft / Artcraft, and the Wayland app_id is artcraft. Both match StartupWMClass=artcraft (by instance on X11) |
| Bus names | ✅ --log-session-bus: the only Filtering lines are for org.gtk.vfs.Daemon (gvfs, not a name the app owns). No tray icon, no single-instance name |
| Main feature | ⬜ Not tested. Generation needs an ArtCraft account plus provider accounts (Fal, Grok, Midjourney, Sora, WorldLabs), which I don't have. Since you're the developer, could you confirm one generation and save into ~/Pictures works from this build (with c97218f)? |
Also seen in the logs (harmless): discord_rich_presence … could not find pipe every 10 s, because the Discord IPC socket isn't exposed. Nothing to grant for this.
Not tested: aarch64, NVIDIA/AMD, GNOME/KDE sessions, audio playback/MPRIS.
On org.gnome.Platform//51 the unaccelerated path (DMABUF renderer off)
draws the ArtCraft window wrong; with DMABUF and compositing left on it
renders correctly. Same fix as dev.aninsomniacy.rayburst, documented in
docs/packagers/solutions/rendering-and-fonts.md. Defaults use ${VAR:-0}
so a user can take the old path back with flatpak override.
|
After testing, I pushed two fixes to the branch. The details are in the test run comment. I've edited section 2 there: my first version blamed DMABUF, based on something my test display caused.
Two things are left for you:
|
|
Thanks @jing2uo!
|
What
ai.artcraft.appArtCraft Studio is a creative desktop workspace for generating AI images and video with connected AI providers.
Packaging
extra-dataunpacking official Linux releases (artcraft-0.41.1-linux-{x86_64,aarch64}.tar.gz).org.gnome.Platform51.WEBKIT_DISABLE_DMABUF_RENDERER="${WEBKIT_DISABLE_DMABUF_RENDERER:-0}"andWEBKIT_DISABLE_COMPOSITING_MODE="${WEBKIT_DISABLE_COMPOSITING_MODE:-0}"), avoiding GNOME 51 rendering glitches while allowing users to override if needed.resolve-update.shqueries GitHub API for latestartcraft-v*release and pins tarball URLs and sha256 hashes.Sandbox
--socket=waylandand--socket=fallback-x11: Wayland display with X11 fallback.--device=dri: GPU acceleration.--socket=pulseaudio: Audio playback for video generations.--share=network: Network access to AI generation providers.--filesystem=xdg-pictures,--filesystem=xdg-videos,--filesystem=xdg-download: For saving generated artwork and video.--persist=Artcraft: Persists user settings, provider credentials, and task state (~/Artcraft) under~/.var/app/ai.artcraft.app/Artcraft.Tested
scripts/check-apply-extra.sh ai.artcraft.apppassed cleanly in bwrap sandbox without capabilities.scripts/audit-descriptor.mjs registry/ai.artcraft.app/flatpark.ymlpassed.tests/test_registry.shandtests/test_audit_descriptor.shpassed.scripts/publish.sh --verify ai.artcraft.appbuilt, signed, packaged, and verified install.resolve-update.shoutputs valid metadata for version 0.41.1.--persist=Artcraft).Developer Note
Submitted by the upstream developer / maintainer of ArtCraft Studio (
storytold/artcraft).