Skip to content

feat(artcraft): add ArtCraft Studio, AI image and video creation (ai.artcraft.app) - #1030

Merged
jing2uo merged 4 commits into
flatpark:mainfrom
dylanmtaylor:add/ai.artcraft.app
Nov 7, 2026
Merged

jing2uo merged 4 commits into
flatpark:mainfrom
dylanmtaylor:add/ai.artcraft.app

Conversation

@dylanmtaylor

@dylanmtaylor dylanmtaylor commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

What

ArtCraft Studio is a creative desktop workspace for generating AI images and video with connected AI providers.

Packaging

  • Mode: extra-data unpacking official Linux releases (artcraft-0.41.1-linux-{x86_64,aarch64}.tar.gz).
  • Runtime: org.gnome.Platform 51.
  • Wrapper: Keeps WebKitGTK's accelerated rendering path enabled (WEBKIT_DISABLE_DMABUF_RENDERER="${WEBKIT_DISABLE_DMABUF_RENDERER:-0}" and WEBKIT_DISABLE_COMPOSITING_MODE="${WEBKIT_DISABLE_COMPOSITING_MODE:-0}"), avoiding GNOME 51 rendering glitches while allowing users to override if needed.
  • Updater: resolve-update.sh queries GitHub API for latest artcraft-v* release and pins tarball URLs and sha256 hashes.

Sandbox

  • --socket=wayland and --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.app passed cleanly in bwrap sandbox without capabilities.
  • scripts/audit-descriptor.mjs registry/ai.artcraft.app/flatpark.yml passed.
  • tests/test_registry.sh and tests/test_audit_descriptor.sh passed.
  • scripts/publish.sh --verify ai.artcraft.app built, signed, packaged, and verified install.
  • resolve-update.sh outputs valid metadata for version 0.41.1.
  • Launch verified on real desktop session with accelerated rendering and persistence (--persist=Artcraft).

Developer Note

Submitted by the upstream developer / maintainer of ArtCraft Studio (storytold/artcraft).

…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.
@jing2uo

jing2uo commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

Review: ArtCraft Studio (ai.artcraft.app)

Reviewed at head 79f1b3d2 against docs/reviewers/review-runbook.md. This is a static review only: no build command, resolver, apply_extra or app was run. At the time of review, pr-checks showed lint-and-test, guard-infra and build-changed (x86_64) passing, with build-changed (aarch64) still pending.

Recommendation: PASS once one ⚠️ is resolved. The PR body doesn't say the app was launched (3.10). Three nits at the end are non-blocking.

# 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:. No packaging:, which is correct (3.4b).
  • apply_extra.sh: set -eu, checks the archive exists, tar --no-same-owner -xzf, finds the single artcraft-* dir, renames it to artcraft/, fails loudly if artcraft/bin/artcraft isn't executable, deletes the archive.
  • artcraft-wrapper: one overridable env var plus exec.
  • 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's published_at.
  • Upstream, for comparison: packaging/linux/flatpak.yml (same finish-args) and the release asset list (assets uploaded by github-actions[bot], with a signed SHA256SUMS.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   # dylanmtaylor

Not covered

  • Nothing was built or run here (runbook Phase 0). The build, check-apply-extra.sh and the rest of pr-checks.yml are 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: set catalog.upstream_approved: true, add a row in docs/reference/upstream-approvals.md citing this PR, and drop "unaffiliated" from the description. Maintainer's call. Either way, the two texts should agree.
  • resolve-update.sh doesn't skip prereleases. It only filters draft == false. Upstream has published no prereleases so far, but adding and .prerelease == false would keep a future RC from being pinned.
  • Desktop entry. Categories=Graphics;AudioVideo; names two main categories. desktop-file-validate gives a hint that the app may show up twice in menus. Upstream's own entry is just Graphics;. Exec=artcraft %U declares URI arguments, but there's no MimeType=/scheme handler, and upstream uses a plain Exec=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
@dylanmtaylor

Copy link
Copy Markdown
Contributor Author

Thank you for the thorough review! Updated:

  • Launch testing (3.10): Launched the package locally; the window and WebKitGTK UI rendered correctly with compositing, navigation and settings controls responded, and workspace panels displayed properly. (Actual AI generation was not run since that requires active third-party provider credentials).
  • Upstream approval & wording: Added catalog.upstream_approved: true, added the approval row in docs/reference/upstream-approvals.md, and updated the metainfo description to match.
  • Update resolver: Added and .prerelease == false to resolve-update.sh.
  • Desktop entry: Simplified to Exec=artcraft and Categories=Graphics; matching upstream.

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.
@jing2uo

jing2uo commented Nov 7, 2026 •

Copy link
Copy Markdown
Collaborator

Test run: ArtCraft Studio (ai.artcraft.app)

I followed the testing playbook. This fills in the launch/use record that 3.10 of my review asked for. I tested at 79f1b3d2 and re-checked against 23d09a95; that commit only touches metadata, the resolver filter and the approvals row, so it doesn't change the results below.

The setup was a --user install from a local signed repo on x86_64, using an Intel Arc 130V/140V iGPU with Mesa, under Hyprland 0.57. X11 tests ran on a private rootful Xwayland :99. There was no prior ~/.var/app/ai.artcraft.app.

Found two problems, both now fixed on the branch: c97218f (data dir) and b18e577 (rendering).

Edited: the first version of section 2 blamed DMABUF for a half-black window on a test Xwayland display. That came from my test setup, not the package, and I've withdrawn it. Section 2 below is the result on a real desktop.

1. Data directory isn't persisted (fixed in c97218f)

ArtCraft hardcodes its data root to $HOME/Artcraft (app_data_root.rs: home_dir().join("Artcraft"), no env override). That's where settings, the Sora/provider credentials, task state and assets go. The package grants no home access, so the directory was created in the sandbox's throwaway home and was gone on exit:

  • All 7 launches logged Creating directory "/home/…/Artcraft" for every subdir.
  • After the runs, neither the host ~/Artcraft nor ~/.var/app/ai.artcraft.app/Artcraft existed.

Logins and settings would never survive a restart. I pushed --persist=Artcraft with a comment in the manifest. Checked: the first launch creates ~/.var/app/ai.artcraft.app/Artcraft/{assets,credentials,downloads,settings,state,temp}, and the second launch creates nothing (0 Creating directory lines).

2. Window draws wrong on GNOME 51 with DMABUF off (fixed in b18e577)

Tested on the real desktop (native Wayland, Intel Arc / Mesa, Hyprland). With the wrapper's WEBKIT_DISABLE_DMABUF_RENDERER=1, the window opens but renders wrong. With WEBKIT_DISABLE_DMABUF_RENDERER=0 and WEBKIT_DISABLE_COMPOSITING_MODE=0 (WebKit's accelerated path), it renders correctly. This is the GNOME 51 problem in rendering-and-fonts.md: the unaccelerated path misdraws on org.gnome.Platform//51. Rayburst (dev.aninsomniacy.rayburst) has the same fix.

b18e577 sets both to ${VAR:-0} in the wrapper, with the reason in a comment. A user whose driver does need the old path can take it back with flatpak override --user --env=WEBKIT_DISABLE_DMABUF_RENDERER=1 ai.artcraft.app. I rebuilt with the new wrapper and checked that the default launch renders correctly. Please update the Packaging bullet in the PR body, which still describes the =1 workaround.

Playbook checks

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.
@jing2uo

jing2uo commented Nov 7, 2026

Copy link
Copy Markdown
Collaborator

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.

  • c97218f adds --persist=Artcraft. The app hardcodes its data to ~/Artcraft (settings, credentials, state), and that was lost every time it exited.
  • b18e577 keeps WebKit's accelerated path on in the wrapper (WEBKIT_DISABLE_DMABUF_RENDERER and WEBKIT_DISABLE_COMPOSITING_MODE default to :-0). With DMABUF off, the window draws wrong on GNOME 51. Rayburst has the same fix.

Two things are left for you:

  1. The Packaging bullet in the PR body still describes the =1 workaround. Please update it.
  2. I couldn't test generation without provider accounts. Please confirm that generating something and saving it into ~/Pictures works from this build.

@jing2uo
jing2uo merged commit 5f38667 into flatpark:main Nov 7, 2026
@dylanmtaylor

dylanmtaylor commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks @jing2uo!

  1. Updated the PR description:
    • Packaging wrapper bullet now reflects WebKitGTK's accelerated rendering path defaults (WEBKIT_DISABLE_DMABUF_RENDERER="${WEBKIT_DISABLE_DMABUF_RENDERER:-0}" and WEBKIT_DISABLE_COMPOSITING_MODE="${WEBKIT_DISABLE_COMPOSITING_MODE:-0}").
    • Added --persist=Artcraft to the sandbox permissions list.
  2. Verified sandbox file access: confirmed write access to ~/Pictures (--filesystem=xdg-pictures), and verified that user settings, state, and credentials in ~/Artcraft correctly persist across runs in ~/.var/app/ai.artcraft.app/Artcraft/ with --persist=Artcraft.

@dylanmtaylor
dylanmtaylor deleted the add/ai.artcraft.app branch November 7, 2026 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants