lljz66 commited on
Commit
aa60bf0
Β·
verified Β·
1 Parent(s): 65c2561

figcraft: space card

Browse files
Files changed (1) hide show
  1. README.md +36 -17
README.md CHANGED
@@ -1,34 +1,53 @@
1
  ---
2
- title: desigma
3
  emoji: 🎨
4
  colorFrom: gray
5
- colorTo: indigo
6
  sdk: docker
7
  app_port: 7860
8
  pinned: false
9
  license: apache-2.0
10
- short_description: The desigma design editor, running in your browser
11
  ---
12
 
13
- # desigma
14
 
15
- The real [desigma](https://github.com/deepfounder-ai/desigma) editor β€” the native Rust
16
- application, not a web port β€” running on a virtual display and streamed to your browser.
17
 
18
- πŸ‘‰ **https://lljz66-api.hf.space** β€” open it, click once inside the canvas, and use it.
19
 
20
- ## Notes
 
21
 
22
- - Boots on the built-in **showcase** file, so there is something to edit immediately.
23
- - Only **:7860** is public. VNC (`:5900`) and the websocket bridge (`:5901`) are bound to
24
- loopback and never exposed; nginx is the single front door and proxies the WebSocket upgrade.
25
- - Free CPU + llvmpipe software OpenGL, so it is slower than the desktop build. This is the
26
- real editor, just on modest hardware.
27
- - The session is **ephemeral**: no account, no storage. Save your file and download it before
28
- the Space sleeps. Do not type secrets into it.
29
- - Source is vendored at `/opt/desigma-src`; the binary is `/usr/local/bin/desigma`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  ## Links
32
 
33
- - Source: https://github.com/deepfounder-ai/desigma
 
34
  - License: MIT OR Apache-2.0
 
1
  ---
2
+ title: figcraft
3
  emoji: 🎨
4
  colorFrom: gray
5
+ colorTo: blue
6
  sdk: docker
7
  app_port: 7860
8
  pinned: false
9
  license: apache-2.0
10
+ short_description: Design and prototype in the browser, in pure Rust
11
  ---
12
 
13
+ # FigCraft
14
 
15
+ An open-source interface design and prototyping tool β€” the whole engine and UI compiled to
16
+ **WebAssembly**, running natively in your browser.
17
 
18
+ πŸ‘‰ **https://lljz66-api.hf.space**
19
 
20
+ Nothing runs on the server: this Space only serves static files (nginx). The editor, its
21
+ renderer, layout engine and plugin interpreter all execute on your device.
22
 
23
+ ## Using it
24
+
25
+ - It opens with a new document β€” draw a frame (<kbd>F</kbd>), then shapes, text, auto layout.
26
+ - **WebGPU** is used when available, with a **WebGL2** fallback. Any current browser works
27
+ (Safari 16.4+).
28
+ - Save/export is local: SVG, PNG, JPG, WebP, PDF.
29
+ - `.fig` files open best-effort.
30
+
31
+ ## What is served
32
+
33
+ | File | Size |
34
+ |---|---|
35
+ | `index.html` | the page |
36
+ | `figcraft-web-<hash>.js` | wasm-bindgen glue |
37
+ | `figcraft-web-<hash>_bg.wasm` | the app, ~18 MiB raw / ~7 MiB gzipped |
38
+
39
+ `.wasm` is served as `application/wasm` with gzip and immutable caching, which is what
40
+ browsers require to stream-compile it.
41
+
42
+ ## Why not desigma
43
+
44
+ An earlier revision ran the native Rust desktop app **desigma** inside Xvfb and streamed it
45
+ over noVNC. Hugging Face's abuse scanner pauses remote-desktop streaming, so that build was
46
+ retired (it is preserved in `novnc/` and in git history). FigCraft solves the same need
47
+ without streaming anything: it is a genuine browser build.
48
 
49
  ## Links
50
 
51
+ - Source: https://github.com/storytold/figcraft
52
+ - Releases: https://github.com/storytold/figcraft/releases
53
  - License: MIT OR Apache-2.0