Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
eb32413
feat: audio clips are a third media kind in the engine
gbarnai Nov 29, 2026
41dee03
feat: trim, export and share audio like video
gbarnai Nov 29, 2026
b4f2bef
feat: audio section, player and trim in the window
gbarnai Nov 29, 2026
75a8d6e
docs: note audio formats and what ffmpeg adds for audio
gbarnai Nov 29, 2026
735b347
fix: audio shares redraw the cover and late caches of protected items…
gbarnai Nov 29, 2026
7811d0e
feat: Form project files are a kind with previews made in the background
gbarnai Nov 29, 2026
92fed1d
feat: more still and video formats, and numbered frames as one sequence
gbarnai Nov 29, 2026
bf4a2a9
fix: file kinds leave the library without location only when it is ru…
gbarnai Nov 29, 2026
941f5c5
fix: bound every archive read and check top-level files by allowlist
gbarnai Nov 29, 2026
81beeef
fix: refuse files with a stored location and PDF streams that cannot …
gbarnai Nov 29, 2026
c46ec80
feat: fonts, colour LUTs, captions, palettes and Lottie as design res…
gbarnai Nov 29, 2026
4a7cb62
fix: refuse location-stripped PDFs instead of scanning them
gbarnai Nov 29, 2026
f847e9d
feat: documents with page images, facts and full-text search
gbarnai Nov 29, 2026
9c7b83e
fix: workbook previews stream the first rows and fit cells by binary …
gbarnai Nov 29, 2026
4b69d8d
feat: 3D models with a drawn still, a turntable and their facts
gbarnai Nov 29, 2026
c04be15
fix: 3D readers stop at their caps and check glTF accessor bounds
gbarnai Nov 29, 2026
cae7edf
fix: parse XML through expat with DTDs refused and UTF-8 only
gbarnai Nov 29, 2026
e58bd50
fix: 3D model totals are capped before they grow
gbarnai Nov 29, 2026
c745f86
fix: XML text is gathered once per element and capped
gbarnai Nov 29, 2026
57cdbd5
fix: photos, videos and audio import as previewed
gbarnai Nov 29, 2026
1438904
feat: PDFs leave without location as a checked clean copy
gbarnai Nov 29, 2026
913a225
fix: PDF clean copies drop attachments and late JPEG segments
gbarnai Nov 29, 2026
d777cbd
fix: rebuild the PDF clean copy from its pages
gbarnai Nov 29, 2026
cdfd03c
fix: PDF rebuild copies only known kinds of object
gbarnai Nov 29, 2026
3fcb547
feat: third-party notices with full licence texts
gbarnai Nov 29, 2026
77c4976
fix: PDF rebuild checks Type 3 glyphs and indexed colour tables
gbarnai Nov 29, 2026
bfe1af8
feat: referenced originals move into the vault when protected
gbarnai Nov 29, 2026
1684977
fix: clear the lint findings on the branch
gbarnai Nov 29, 2026
22cbbb6
fix: harden vaulting of referenced originals and waveform decodes
gbarnai Nov 29, 2026
ce6a929
fix: bound file-kind readers and fail closed on odd inputs
gbarnai Nov 29, 2026
cb315dc
fix: asset bodies keep their size and players stay out of the way
gbarnai Nov 29, 2026
79cc1c9
Merge main into the audio and file types branch
gbarnai Nov 29, 2026
abd7658
refactor: keep the edit-file check beside the other edit helpers
gbarnai Nov 29, 2026
8ab04cb
fix: sealed WAV waveforms decode without ffmpeg
gbarnai Nov 29, 2026
68d5053
feat: offer to flatten PDFs that cannot leave without location
gbarnai Nov 29, 2026
0390da5
feat: find plain copies that older vault seals left behind
gbarnai Nov 29, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ jobs:
run: |
npm ci
npm test
- name: Third-party notices cover what ships
run: python setup/notices.py --check

window:
runs-on: ubuntu-latest
Expand Down
13 changes: 10 additions & 3 deletions LICENSES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# formDAM license ledger

formDAM itself is Apache-2.0, copyright 2026 NodeAgentc, Inc. (see LICENSE and NOTICE.md; MIT until v1.27.5). Every dependency & binary that enters the tree is classified here before use, per dev-rules licensing policy. Runtime web deps are also tabled in README.md.
formDAM itself is Apache-2.0, copyright 2026 NodeAgentc, Inc. (see LICENSE and NOTICE.md; MIT until v1.27.5). Every dependency & binary that enters the tree is classified here before use, per dev-rules licensing policy. The full licence texts of everything shipped are in THIRD-PARTY-NOTICES.txt, written and checked by `setup/notices.py`.

## Adobe DNG patent licence

Expand Down Expand Up @@ -45,6 +45,11 @@ Adobe, Bridge, Lightroom and Photoshop are either registered trademarks or trade
| pyobjc-core, pyobjc-framework-Cocoa, pyobjc-framework-ImageCaptureCore, pyobjc-framework-Quartz | MIT | Python bridge to Apple's ImageCaptureCore (the Photos.app device-import framework) for iPhone/iPad import + ImageIO thumbnail encode for the device browse grid; macOS only |
| YuNet model | MIT | bundled via --add-data |
| SFace model | Apache-2.0 | bundled via --add-data |
| resvg_py 0.5.0 | MIT (binding); resvg and its crates MIT OR Apache-2.0, with Zlib, BSD-2-Clause, BSD-3-Clause, Unlicense OR MIT, Apache-2.0 WITH LLVM-exception and Unicode-3.0 parts, read from the wheel's CycloneDX SBOM 2026-11-29 | SVG and SVGZ thumbnails and renders (services/imagex.py). One compiled library in the wheel, no system dependency; references resolve inside an empty folder |
| fonttools 4.69.1 | MIT | font names, glyph counts, outlines and variable axes for the font resource facts (services/fontres.py), and WOFF and WOFF2 unpacking before a font is checked for location (services/filestrip.py) |
| brotli 1.2.1 | MIT | WOFF2 decompression under fontTools |
| pypdfium2 5.15.2 | Apache-2.0 OR BSD-3-Clause (bindings); the bundled PDFium build BSD-3-Clause with its third-party parts (FreeType, libjpeg-turbo, OpenJPEG, Little CMS, zlib, ICU, Abseil and the like) under permissive licences listed in the wheel's LICENSES folder | PDF page count, text for search, first-page thumbnail and page images (services/docres.py). One shared library in the wheel, used under a process-wide lock because PDFium is not thread-safe |
| pypdf 7.2.0 | BSD-3-Clause | pure Python, no compiled parts. Builds the location-free copy of a PDF that leaves the library without its location (services/pdfstrip.py, services/pdfcopy.py): a new document holding only the pages, their contents and the resources they use, images rebuilt from their pixels, and the written copy read back and checked before it is used |
| pyzipper 0.4.0 | MIT | AES-256 (WinZip AE-2) zip writing and reading for encrypted share packages, services/packagesvc.py |
| pycryptodomex (pyzipper dependency) | BSD-2-Clause and public domain | AES and HMAC under pyzipper |
| LaMa inpainting (opencv/inpainting_lama, inpainting_lama_2025jan.onnx, revision aee6d22) | Apache-2.0 | Clean Up object removal in services/cleanup.py; fetched by the installers & build script, sha256-pinned, into backend/models; bundled via --add-data like the other models. Without it Clean Up falls back to OpenCV Telea |
Expand All @@ -53,6 +58,8 @@ Adobe, Bridge, Lightroom and Photoshop are either registered trademarks or trade
| BioCLIP species text embeddings (imageomics/bioclip-demo space revision eeb91af, txt_emb_species.npy and .json, 384,490 taxa) | MIT | sha256-pinned download, converted at install to int8 (bioclip_species_int8.npy, about 197 MB) by services/species.py prepare; the fp32 source is deleted |
| Wikidata landmarks, artworks and dishes (backend/app/data/lookup_world.json.gz, built by setup/gen_lookup_data.py via the QLever Wikidata endpoint) | CC0-1.0 | Look Up names, coordinates and artist credits; no attribution required |
| YOLOX-s (opencv/object_detection_yolox, object_detection_yolox_2022nov.onnx, revision 78c368f) | Apache-2.0 | Clean Up distraction suggestions (COCO classes) in services/cleanmodels.py; sha256-pinned like LaMa |
| Form app extensions and identifiers (backend/app/data/form_apps.json) | written for formDAM (Apache-2.0, as the repository) | app ids, names, bundle identifiers and project file extensions, which are facts about the family's apps; no code or text is copied from the FormPortal catalogue it agrees with. App icons are not copied: the engine draws a monogram tile instead |
| lottie-web 5.12.2 (build/player/lottie_light) | MIT | plays Lottie animations in the viewer, loaded only when one is opened; the light build has no expression support, so animation files cannot run script, and the engine replaces every non-embedded image reference before the window sees the data |
| formDAM icon artwork | user-provided | src-tauri/icons/icon.png, used verbatim |
| rapidocr-onnxruntime 1.2.3 (macOS) | Apache-2.0 | text-in-image search (services/ocrsvc.py); the wheel carries its PP-OCR detection, classification and recognition ONNX models (PaddleOCR, Apache-2.0). Installed only by requirements_macos.txt, so the Linux and Windows engines search text with tesseract on PATH |
| Other Python packages frozen into the engine | MIT: annotated-doc, annotated-types, anyio, fastapi, h11, pydantic, pydantic-core, typing-inspection; MIT-0: cffi; BSD-3-Clause: click, idna, pycparser, protobuf, starlette; BSD: uvicorn; Apache-2.0: flatbuffers; Apache-2.0 OR BSD-2-Clause: packaging; PSF-2.0: typing-extensions; exifread: its own permissive notice (Copyright 2002-2007 Gene Cash) | read from the installed metadata of backend/requirements.txt, 2026-10-23 |
Expand All @@ -68,7 +75,7 @@ Tauri links these crates unedited (no `[patch]` and no vendored copy):
| webpki-roots | CDLA-Permissive-2.0 | root certificates for TLS |
| r-efi | MIT OR Apache-2.0 OR LGPL-2.1-or-later | used under MIT |

The Linux bundles also carry the build machine's WebKitGTK, GTK and GLib (LGPL-2.1-or-later) as separate shared libraries. This ledger and LICENSE ship inside every installer (`bundle.resources`).
The Linux bundles also carry the build machine's WebKitGTK, GTK and GLib (LGPL-2.1-or-later) as separate shared libraries. This ledger, LICENSE and THIRD-PARTY-NOTICES.txt ship inside every installer (`bundle.resources`); THIRD-PARTY-NOTICES.txt is also frozen into the engine, which shows it under Settings > App > About formDAM, Licences and notices.

## Build-time only (never distributed)

Expand All @@ -83,7 +90,7 @@ The Linux bundles also carry the build machine's WebKitGTK, GTK and GLib (LGPL-2

| Component | License | Decision |
| --- | --- | --- |
| ffmpeg / ffprobe 7.1.5 | LGPL-2.1-or-later for the downloaded build; an installed one keeps its own licence | called as subprocess on PATH; never copied into the bundle, keeping the .app proprietary-safe & the binary user-replaceable. When none is installed, the engine downloads the LGPL build (`--disable-gpl --disable-nonfree`; libopus and libvpx BSD-3-Clause) from the nodemode-dev/formai-binaries release on first run (builds made before the repository was renamed use the older name, nodemode-dev/formcut-binaries, which keeps working), checks every file's SHA-256 against `backend/app/ffmpeg_record.py`, and puts it first on PATH; its source is attached to that release |
| ffmpeg / ffprobe 7.1.5 | LGPL-2.1-or-later for the downloaded build; an installed one keeps its own licence | called as subprocess on PATH (video and audio probing, posters, waveforms, cover art, trims and loudness normalising; EXR, HDR, DPX, PSB and, when the build has libjxl, JPEG XL stills; frames of image sequences; VP8 and Opus playable copies of videos the window cannot play); never copied into the bundle, keeping the .app proprietary-safe & the binary user-replaceable. When none is installed, the engine downloads the LGPL build (`--disable-gpl --disable-nonfree`; libopus and libvpx BSD-3-Clause) from the nodemode-dev/formai-binaries release on first run (builds made before the repository was renamed use the older name, nodemode-dev/formcut-binaries, which keeps working), checks every file's SHA-256 against `backend/app/ffmpeg_record.py`, and puts it first on PATH; its source is attached to that release |
| tesseract | Apache-2.0 | OCR for text search; same tier & reasoning as ffmpeg. brew install tesseract |
| pymobiledevice3 (<8) | GPL-3.0-or-later | REMOVED from the bundle at zip v1.15.0: it had been collected into the frozen engine since v0.11.0 w/o a ledger row, & GPL is banned in anything we distribute. The AFC code path remains as an optional dev fallback that only activates if the user pip-installs the package themselves (never bundled); the native ImageCaptureCore path replaces it |

Expand Down
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<img src="docs/images/formDAM-viewer.webp" alt="The viewer open on a Venice waterfront photo with the info panel showing rating, labels, keywords, location and camera data" width="100%">
<br><sub>The viewer with its info panel.</sub>
<h3>Look closely, organize fast</h3>
Full-size photos and video with ratings, colour labels, keywords, location and exposure beside them. Everything works from the keyboard.
Full-size photos, video and audio with ratings, colour labels, keywords, location and exposure beside them. Everything works from the keyboard.
</td>
<td width="50%" valign="top">
<img src="docs/images/formDAM-editor.webp" alt="The editor with the Adjust tab: lens corrections, light, colour, black and white and detail sliders beside a Venice photo" width="100%">
Expand Down Expand Up @@ -98,11 +98,20 @@
</td>
<td width="33%" valign="top">
<h4>Formats</h4>
Opens: JPEG, PNG, WebP, TIFF, HEIC and HEIF, 23 camera RAW extensions, video via ffmpeg · Saves: JPEG, HEIC, PNG, TIFF, WebP · Sidecars: XMP
Opens: JPEG, PNG, WebP, TIFF, HEIC and HEIF, PSD, TGA, ICO, JPEG 2000, SVG, 23 camera RAW extensions, EXR, HDR, DPX, PSB (embedded preview without ffmpeg) and JPEG XL (when ffmpeg has it) via ffmpeg, video via ffmpeg including MXF, MPEG, WMV, FLV and Ogg (played through a converted copy when the window cannot play them), R3D and BRAW as catalogue entries only, numbered EXR and DPX frames, and PNG and TIFF frames with four-digit numbers and one size, as one image sequence, audio (MP3, M4A, AAC, WAV, AIFF, FLAC, Ogg, Opus, CAF, WMA) via ffmpeg, WAV also without it, Form app project files (preview, manifest and Open in the app), fonts (OTF, TTF, WOFF, WOFF2) with a specimen, colour LUTs (.cube, .3dl) as a before and after, captions (SRT, VTT), ASE palettes and Lottie animations (JSON and .lottie), documents (PDF with page images, DOCX, PPTX, XLSX, CSV, Markdown, TXT, RTF, IDML) with full-text search, 3D models (GLB and glTF, OBJ, STL, PLY, text USD and USDZ drawn and turnable; STEP and IGES as point clouds; FBX, binary USD and Alembic catalogued) · Saves: JPEG, HEIC, PNG, TIFF, WebP · Sidecars: XMP
</td>
</tr>
</table>

## Vault, sharing and files added in place

- **Hidden, Recently Deleted and private albums** are encrypted at rest in the library's vault folder.
- **Files added in place** (Add in place on import) stay in their own folders until you hide, delete or make one private. formDAM then asks first, encrypts the original into the vault, checks the encrypted copy against it and only then removes the plain file from its folder. A sidecar formDAM wrote goes with it.
- **Restoring** puts the file back where it was, or beside that place under a new name when the place is taken.
- **Delete forever** of a file added in place gives the file back to its original place rather than destroying it, because formDAM never deletes a file it was only pointed at. While the vault is locked such an item stays in Recently Deleted until it can be given back.
- **Plain copies from older versions:** before this change, protecting a file added in place copied it into the library and left the original where it was. After the upgrade, formDAM scans the folders it has imported from or browsed (not the whole disk) for files that match protected items by their SHA-256. Settings > Vault & Keychain lists what it found, and each file moves into the vault (the same check, then removal) or is ignored only when you choose. Scan Again repeats the search.
- **Sharing without location:** exports, packages and web galleries rebuild a PDF without its metadata. When a PDF holds something formDAM cannot rebuild safely, it asks whether to flatten it instead: every page becomes a 150 dpi picture in a new PDF with no metadata, so its text can no longer be selected or searched. Nothing is flattened unless you agree; the API and automation flatten only when a request sets `flatten_pdfs`.

## Under the hood

- **Engine:** FastAPI and a SQLite catalog (`dam.db`) in a library folder you choose; originals are copied, moved or referenced in place, SHA-256 fingerprinted.
Expand All @@ -124,7 +133,7 @@ All FormDAM builds are compiled and released from [FormCompiler](https://github.

Prefer it in your browser, or want to contribute? Run the web UI straight from this repo.

**Requires:** Python 3.10+, Node 20.19 or 22.12+. `ffmpeg` on PATH is optional and adds video thumbnails and video scanning. The desktop app, when no ffmpeg is installed, downloads its own LGPL build on first run, from the `formai-binaries` release first and the older `formcut-binaries` address second, and installs nothing that does not match the recorded SHA-256; a source run does not download it unless `FORM_FFMPEG_AUTO=1` is set.
**Requires:** Python 3.10+, Node 20.19 or 22.12+. `ffmpeg` on PATH is optional and adds video thumbnails, video scanning, audio tags, cover art, waveforms for formats other than WAV, and playback of audio formats the window cannot play itself. The desktop app, when no ffmpeg is installed, downloads its own LGPL build on first run, from the `formai-binaries` release first and the older `formcut-binaries` address second, and installs nothing that does not match the recorded SHA-256; a source run does not download it unless `FORM_FFMPEG_AUTO=1` is set.

```sh
git clone git@github.com:nodemode-dev/formDAM.git
Expand Down Expand Up @@ -164,7 +173,7 @@ Code owners are set in [`.github/CODEOWNERS`](.github/CODEOWNERS).

## License

FormDAM is licensed under the Apache License 2.0 ([`LICENSE`](LICENSE), SPDX `Apache-2.0`). Copyright 2026 NodeAgentc, Inc. Third-party notices: [`NOTICE.md`](NOTICE.md), [`LICENSES.md`](LICENSES.md). FormDAM was MIT licensed up to v1.27.5.
FormDAM is licensed under the Apache License 2.0 ([`LICENSE`](LICENSE), SPDX `Apache-2.0`). Copyright 2026 NodeAgentc, Inc. Third-party notices: [`NOTICE.md`](NOTICE.md), [`LICENSES.md`](LICENSES.md) (what each component is and why) and [`THIRD-PARTY-NOTICES.txt`](THIRD-PARTY-NOTICES.txt) (their full licence texts). FormDAM was MIT licensed up to v1.27.5.

This product includes DNG technology under license by Adobe Systems Incorporated.
<sub>Adobe, Bridge, Lightroom and Photoshop are trademarks of Adobe, and Apple and Photos are trademarks of Apple Inc. FormDAM is an independent project and is not affiliated with or endorsed by them; the names describe file formats and compatibility only.</sub>
Expand Down
Loading
Loading