Back to home

Self-Host FigCraft on Your Own Server

Last updated: 2026-10-30

October 30, 2026 · FigCraft v0.10.0 · Community guide

The quickest way to self-host FigCraft is to serve its prebuilt static web release. The standalone editor needs neither a Rust toolchain nor an application server. Public hosting still needs correct file types, HTTPS, a suitable upload limit and a cache policy that lets upgrades reach visitors.

The steps below cover obtaining, serving and verifying the open-source web package. Commands and header rules are setup examples for you to adapt. They are not a report of a newly provisioned host.

1. Get and preserve the release

Open the official v0.10.0 release and download figcraft-web-0.10.0.zip. Keep the archive and record which release you installed.

Extract it and keep the contents together: index.html, the hashed JavaScript module, the hashed WASM application, hosting examples and license notices. Preserve LICENSE-MIT, LICENSE-APACHE, NOTICE and the bundled font license texts. Consult the bundled notices for branding restrictions rather than treating the software license as permission to adopt upstream names or logos.

2. Check the uncompressed file size

For the v0.10.0 artifact observed in the October 30 record, the WASM decoded/identity body is 24,876,457 bytes. The bundled hosting guide states that Cloudflare Pages and Workers static assets reject a file over 25 MiB = 26,214,400 bytes. This artifact is 1,337,943 bytes below that threshold.

Use the file you will actually upload for the comparison. A smaller gzip or Brotli transfer does not demonstrate that the original uploaded file fits. Check again for every upgrade and check your chosen host's current limits before deploying.

Example local checks after extraction:

wc -c figcraft-web-*_bg.wasm
shasum -a 256 figcraft-web-*_bg.wasm

The hash gives you a local identifier to record; it verifies provenance only when compared with a trusted expected value. The bundled hosting guide also describes a 24 MiB packaging guard (25,165,824 bytes), below the host's 25 MiB threshold. The observed v0.10.0 file is 289,367 bytes below that guard. These are different thresholds: check actual bytes for every release rather than relying on a past version's size.

3. Run a local smoke test

From the directory containing the downloaded archive, the following is an example local serving recipe:

unzip figcraft-web-0.10.0.zip
cd figcraft-web-0.10.0
python3 -m http.server 8767 --bind 127.0.0.1

Open http://localhost:8767/. Browsers treat localhost as a secure context. The upstream build needs WebGPU or WebGL2 and documents ?webgl as the option to request WebGL2 when troubleshooting graphics problems.

Wait for the interface, create a rectangle and undo it. Verify that the shape actually disappears; the mere existence of a canvas element does not prove that the editor is ready. These are steps for you to perform, not new test results reported by this guide. Stop the local server with Ctrl+C after the check.

4. Choose a directory and upload the full package

The upstream HTML uses relative asset URLs. Serve the extracted folder contents at a domain root or a directory such as https://example.com/editor/app/. Preserve the trailing slash so relative URLs resolve beneath the application directory. Check any slash-normalization redirects and ensure that the final page still resolves the matching hashed JS and WASM files.

Upload the HTML and matching assets as one release. An HTML document from one version paired with missing or differently hashed files from another can fail before the editor appears. Retain old hashed assets as needed for visitors who still have older HTML open.

5. Set exact MIME, cache and transport behavior

The bundled guide specifies:

| Response | Required or recommended setting | | ----------------------------------------------- | ------------------------------------------------------------------------------ | | WASM | Content-Type: application/wasm | | JavaScript module | Content-Type: text/javascript | | HTML | Content-Type: text/html | | Content-hashed WASM and JS | Cache-Control: public, max-age=31536000, immutable | | Application directory response and index.html | Cache-Control: no-cache | | Compressed response | Matching Content-Encoding: gzip or br, with the correct original MIME type |

no-cache permits storage but requires revalidation before reuse; it does not mean no-store. Use the long immutable policy only for assets whose URL changes when their content changes. Serve public pages over HTTPS for WebGPU and clipboard secure-context requirements.

Enable gzip or Brotli for WASM, JS and HTML when supported. If using precompressed files, configure the host to return the right representation and Content-Encoding rather than serving compressed bytes as an unlabelled WASM file. If the same URL varies by Accept-Encoding, check appropriate Vary: Accept-Encoding behavior.

The following is an illustrative Cloudflare Pages _headers fragment, assuming the actual application directory is /editor/app/ and the two named assets match the uploaded release. Place the file at the published site root. This fragment was not applied or validated on a new Cloudflare resource as part of preparing this guide.

/editor/app/figcraft-web-b583abd3bbe727aa_bg.wasm
  Content-Type: application/wasm
  Cache-Control: public, max-age=31536000, immutable

/editor/app/figcraft-web-b583abd3bbe727aa.js
  Content-Type: text/javascript
  Cache-Control: public, max-age=31536000, immutable

/editor/app/
  Cache-Control: no-cache

/editor/app/index.html
  Cache-Control: no-cache

Replace both filenames when upgrading. For Workers, nginx, Apache or another platform, configure equivalent behavior through that platform's supported mechanism and inspect the responses; a Pages fragment is not proof that another platform will apply the rules.

According to the upstream guide, this build does not use SharedArrayBuffer and does not require COOP/COEP isolation headers. If your surrounding site already uses Cross-Origin-Embedder-Policy: require-corp, the guide calls for a suitable Cross-Origin-Resource-Policy on app resources: same-origin for same-origin hosting, or the documented cross-origin arrangement for CDN files. Check the complete policy setup before embedding across origins.

6. Verify the final public responses

Replace the example domain and paths below with your own deployment. These commands are verification examples, not recorded execution results:

curl -sS -L -D - -o /dev/null https://example.com/editor/app/
curl -sS -L -D - -o /dev/null https://example.com/editor/app/index.html
curl -sS -L -D - -o /dev/null https://example.com/editor/app/figcraft-web-b583abd3bbe727aa.js
curl -sS -L -D - -o /dev/null https://example.com/editor/app/figcraft-web-b583abd3bbe727aa_bg.wasm
curl -sS --compressed -L -D - -o /dev/null https://example.com/editor/app/figcraft-web-b583abd3bbe727aa_bg.wasm

Inspect the final response after redirects. Expect successful HTML, JavaScript and WASM responses, exact MIME types, and the cache policy appropriate to each file. Confirm that missing assets do not silently receive an HTML fallback. With --compressed, inspect any Content-Encoding actually selected; do not assume compression from a filename or a host setting alone.

Next use browser developer tools. Disable the browser cache for a network check, reload and inspect statuses, MIME types, transferred bytes and console errors. Then test behavior with a disposable document: create and select a rectangle, change a property and undo it. Test save, export and reopen separately if they are necessary to your work. Repeat with ?webgl if graphics initialization fails, and record the browser version and exact URL with your results.

A warm-cache reload is useful as a separate observation. Resource Timing entries with transferSize: 0 describe cached samples here; they cannot demonstrate a fresh visitor's network download. Keep functional readiness separate from navigation and resource timing.

7. Know what you have hosted

The bundled guide describes a standalone editor that starts with a new document, with native file dialogs not yet wired up. A static host does not itself add accounts, shared storage or a live-session backend. The web build can join a desktop-hosted session according to the upstream guide, but cannot host one; protocol and secure-context restrictions also apply.

Read Figma vs FigCraft for the browser and desktop distinctions, or try the community-hosted editor before setting up your own host. Our official-build interaction check and resource-loading snapshot distinguish observed behavior from timing and network limits. Verify the workflows you need before trusting important work to any early browser build.

Sources: HOSTING.md, NOTICE and the file inventory bundled with the official FigCraft v0.10.0 release, plus our October 30 resource record for the observed WASM size. The bundled guide's older 0.1.0 size table is not a v0.10.0 benchmark. No cloud resource was created and no deployment was performed to prepare this guide.