Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.
Rust apple-notesapple-reminderscloudkitcrdtdesktop-appicloudicloud-calendaricloud-driveicloud-notesicloud-photosiphonelinuxlinux-desktoplocal-firstoffline-firstprivacyrusttauritauri-appwindows
README images as WebP: half the bytes, same look
Yashwanth Kamireddi2185587603cc
diff --git a/.uiverify/readme-shots.mjs b/.uiverify/readme-shots.mjsindex 0d6cdae..f36044a 100644--- a/.uiverify/readme-shots.mjs+++ b/.uiverify/readme-shots.mjs@@ -5,8 +5,8 @@// node .uiverify/readme-shots.mjs notes hero only those scenes//// It builds the interface and previews it on PORT (4220) unless something already answers-// there. Needs ImageMagick (`magick`) and ffmpeg. PNGs are optimised with pngquant and oxipng-// when installed, or the same engines through `uv`. Every picture is drawn; no photo file is read.+// there. Needs ImageMagick (`magick`) and ffmpeg (with libwebp). Stills and the loop are written+// as WebP. Every picture is drawn; no photo file is read.import { spawn, execFileSync } from "node:child_process";import fs from "node:fs";import os from "node:os";@@ -209,28 +209,16 @@ async function sizeOf(png) {return { w, h };}-/** A PNG for the README, WIDTH px wide (sharp at the README's 880 on a 2x screen), stripped and optimised. */+/** A WebP for the README, WIDTH px wide (sharp at the README's 880 on a 2x screen), stripped.+ * At quality 90 the interface's text is indistinguishable from the PNG at half the bytes,+ * and the README loads that much sooner. */function publish(framed, name) {- const png = path.join(OUT, `${name}.png`);- sh("magick", [framed, "-strip", "-filter", "Lanczos", "-resize", `${WIDTH}x`, "-define", "png:compression-level=9", `PNG24:${png}`]);- optimise(png);- console.log(`${path.relative(ROOT, png)} ${Math.round(fs.statSync(png).size / 1024)} KB`);+ const webp = path.join(OUT, `${name}.webp`);+ sh("magick", [framed, "-strip", "-filter", "Lanczos", "-resize", `${WIDTH}x`, "-quality", "90", "-define", "webp:method=6", webp]);+ console.log(`${path.relative(ROOT, webp)} ${Math.round(fs.statSync(webp).size / 1024)} KB`);}const has = (cmd) => { try { execFileSync("sh", ["-c", `command -v ${cmd}`], { stdio: "ignore" }); return true; } catch { return false; } };-/** pngquant then oxipng when installed; otherwise the same two engines (libimagequant and- * oxipng) through `uv`, in a throwaway environment; otherwise the PNG stays as written. */-function optimise(png) {- if (has("pngquant")) { sh("pngquant", ["--force", "--skip-if-larger", "--quality", "80-95", "--strip", "--output", png, png]); if (has("oxipng")) sh("oxipng", ["-o", "4", "--strip", "all", png]); return; }- if (!has("uv")) return;- const py = `import sys, imagequant, oxipng-from PIL import Image-p = sys.argv[1]-q = imagequant.quantize_pil_image(Image.open(p).convert("RGBA"), dithering_level=1.0, max_colors=256, min_quality=80, max_quality=95)-q.save(p, optimize=True)-oxipng.optimize(p, level=4, strip=oxipng.StripChunks.all())`;- sh("uv", ["run", "--quiet", "--python", "3.12", "--no-project", "--with", "imagequant", "--with", "pillow", "--with", "pyoxipng", "python", "-I", "-c", py, png]);-}// ---- Stills.const stills = { notes: ["light", "dark"], reminders: ["light", "dark"], calendar: ["light", "dark"], contacts: ["light", "dark"],@@ -344,7 +332,11 @@ if (want("hero")) {sh("ffmpeg", ["-y", "-loglevel", "error", ...inputs, "-filter_complex", `${comp},palettegen=max_colors=192:stats_mode=diff`, "-update", "1", "-frames:v", "1", palette]);sh("ffmpeg", ["-y", "-loglevel", "error", ...inputs, "-i", palette, "-filter_complex",`${comp}[c];[c][3:v]paletteuse=dither=bayer:bayer_scale=5:diff_mode=rectangle`, "-t", dur, "-loop", "0", gif]);- console.log(`${path.relative(ROOT, gif)} ${Math.round(fs.statSync(gif).size / 1024)} KB`);+ // The README shows it as animated WebP: the same frames at about half the GIF's size.+ const webp = path.join(OUT, "hero.webp");+ sh("ffmpeg", ["-y", "-loglevel", "error", "-i", gif, "-c:v", "libwebp_anim", "-lossless", "0", "-q:v", "80", "-compression_level", "6", "-loop", "0", webp]);+ fs.rmSync(gif);+ console.log(`${path.relative(ROOT, webp)} ${Math.round(fs.statSync(webp).size / 1024)} KB`);}await browser.close();diff --git a/README.md b/README.mdindex 26f29bf..bc852b1 100644--- a/README.md+++ b/README.md@@ -24,7 +24,7 @@ Notes, Reminders, Calendar, Contacts, Drive and Photos as fast desktop apps that<br>-<img src="docs/media/hero.gif" alt="Skykeep ticking off a reminder, switching to the week in Calendar, opening a note that has just arrived from an iPhone, then a contact card, an iCloud Drive folder and the photo library" width="880">+<img src="docs/media/hero.webp" alt="Skykeep ticking off a reminder, switching to the week in Calendar, opening a note that has just arrived from an iPhone, then a contact card, an iCloud Drive folder and the photo library" width="880"></div>@@ -34,15 +34,15 @@ Notes, Reminders, Calendar, Contacts, Drive and Photos as fast desktop apps that<tr><td width="50%" align="center"><picture>- <source media="(prefers-color-scheme: dark)" srcset="docs/media/reminders-dark.png">- <img src="docs/media/reminders-light.png" alt="Skykeep Reminders showing a list with sections, subtasks, flags, tags, a link and a place, beside coloured lists and smart lists">+ <source media="(prefers-color-scheme: dark)" srcset="docs/media/reminders-dark.webp">+ <img src="docs/media/reminders-light.webp" alt="Skykeep Reminders showing a list with sections, subtasks, flags, tags, a link and a place, beside coloured lists and smart lists"></picture><b>Reminders</b></td><td width="50%" align="center"><picture>- <source media="(prefers-color-scheme: dark)" srcset="docs/media/calendar-dark.png">- <img src="docs/media/calendar-light.png" alt="Skykeep Calendar in week view with events from four calendars, an all-day trip, a birthday and reminders">+ <source media="(prefers-color-scheme: dark)" srcset="docs/media/calendar-dark.webp">+ <img src="docs/media/calendar-light.webp" alt="Skykeep Calendar in week view with events from four calendars, an all-day trip, a birthday and reminders"></picture><b>Calendar</b></td>@@ -50,15 +50,15 @@ Notes, Reminders, Calendar, Contacts, Drive and Photos as fast desktop apps that<tr><td width="50%" align="center"><picture>- <source media="(prefers-color-scheme: dark)" srcset="docs/media/contacts-dark.png">- <img src="docs/media/contacts-light.png" alt="Skykeep Contacts showing contacts with photos and a full card with phones, emails, related names, an address and a birthday">+ <source media="(prefers-color-scheme: dark)" srcset="docs/media/contacts-dark.webp">+ <img src="docs/media/contacts-light.webp" alt="Skykeep Contacts showing contacts with photos and a full card with phones, emails, related names, an address and a birthday"></picture><b>Contacts</b></td><td width="50%" align="center"><picture>- <source media="(prefers-color-scheme: dark)" srcset="docs/media/drive-dark.png">- <img src="docs/media/drive-light.png" alt="Skykeep Drive showing a folder of pictures and documents with thumbnails in grid view">+ <source media="(prefers-color-scheme: dark)" srcset="docs/media/drive-dark.webp">+ <img src="docs/media/drive-light.webp" alt="Skykeep Drive showing a folder of pictures and documents with thumbnails in grid view"></picture><b>iCloud Drive</b></td>@@ -66,15 +66,15 @@ Notes, Reminders, Calendar, Contacts, Drive and Photos as fast desktop apps that<tr><td width="50%" align="center"><picture>- <source media="(prefers-color-scheme: dark)" srcset="docs/media/photos-dark.png">- <img src="docs/media/photos-light.png" alt="Skykeep Photos showing the library by month with favourites, videos and albums">+ <source media="(prefers-color-scheme: dark)" srcset="docs/media/photos-dark.webp">+ <img src="docs/media/photos-light.webp" alt="Skykeep Photos showing the library by month with favourites, videos and albums"></picture><b>Photos</b></td><td width="50%" align="center"><picture>- <source media="(prefers-color-scheme: dark)" srcset="docs/media/notes-dark.png">- <img src="docs/media/notes-light.png" alt="Skykeep Notes showing folders, pinned notes and a trip note with a tag, a link, a picture, a checklist and a table">+ <source media="(prefers-color-scheme: dark)" srcset="docs/media/notes-dark.webp">+ <img src="docs/media/notes-light.webp" alt="Skykeep Notes showing folders, pinned notes and a trip note with a tag, a link, a picture, a checklist and a table"></picture><b>Notes</b></td>diff --git a/docs/media/README.md b/docs/media/README.mdindex 4ed2cd8..0c33df1 100644--- a/docs/media/README.md+++ b/docs/media/README.md@@ -8,20 +8,20 @@ node .uiverify/readme-shots.mjs notes calendar # only those scenesPORT=4330 node .uiverify/readme-shots.mjs # preview on another port```-Needs ImageMagick and ffmpeg. Each still is a 1200 × 760 window drawn at 2x, framed, then written 1760 px wide (sharp at the README's 880 on a 2x screen), stripped, and optimised with pngquant and oxipng when installed, or the same engines through `uv`. The script waits for fonts and every picture in view before it takes a still.+Needs ImageMagick and ffmpeg. Each still is a 1200 × 760 window drawn at 2x, framed, then written 1760 px wide (sharp at the README's 880 on a 2x screen) as WebP at quality 90, about half the size of an optimised PNG with the same look. The script waits for fonts and every picture in view before it takes a still.## Files| File | Shows ||---|---|-| `notes-light.png`, `notes-dark.png` | Folders, pinned notes, and a note with a #tag, a link, a picture, a checklist and a table |-| `reminders-light.png`, `reminders-dark.png` | A list with sections, subtasks, a priority, flags, tags, a link and a place; smart lists and tags beside it |-| `calendar-light.png`, `calendar-dark.png` | A week with four calendars, an all-day trip, a birthday and reminders |-| `contacts-light.png`, `contacts-dark.png` | Contacts with photos, lists, and a full card with related names |-| `drive-light.png`, `drive-dark.png` | A folder in grid view with picture and document thumbnails |-| `photos-light.png`, `photos-dark.png` | The library by month, with videos, favourites and albums |-| `settings-light.png`, `settings-dark.png` | Account, storage and sync |-| `signin-light.png`, `signin-dark.png` | Signing in with a demo Apple Account |+| `notes-light.webp`, `notes-dark.webp` | Folders, pinned notes, and a note with a #tag, a link, a picture, a checklist and a table |+| `reminders-light.webp`, `reminders-dark.webp` | A list with sections, subtasks, a priority, flags, tags, a link and a place; smart lists and tags beside it |+| `calendar-light.webp`, `calendar-dark.webp` | A week with four calendars, an all-day trip, a birthday and reminders |+| `contacts-light.webp`, `contacts-dark.webp` | Contacts with photos, lists, and a full card with related names |+| `drive-light.webp`, `drive-dark.webp` | A folder in grid view with picture and document thumbnails |+| `photos-light.webp`, `photos-dark.webp` | The library by month, with videos, favourites and albums |+| `settings-light.webp`, `settings-dark.webp` | Account, storage and sync |+| `signin-light.webp`, `signin-dark.webp` | Signing in with a demo Apple Account |## Rules for every imagediff --git a/docs/media/calendar-dark.png b/docs/media/calendar-dark.pngdeleted file mode 100644index 83ca4b0..0000000Binary files a/docs/media/calendar-dark.png and /dev/null differdiff --git a/docs/media/calendar-dark.webp b/docs/media/calendar-dark.webpnew file mode 100644index 0000000..4e44f8eBinary files /dev/null and b/docs/media/calendar-dark.webp differdiff --git a/docs/media/calendar-light.png b/docs/media/calendar-light.pngdeleted file mode 100644index 6cff1ee..0000000Binary files a/docs/media/calendar-light.png and /dev/null differdiff --git a/docs/media/calendar-light.webp b/docs/media/calendar-light.webpnew file mode 100644index 0000000..d5acb30Binary files /dev/null and b/docs/media/calendar-light.webp differdiff --git a/docs/media/contacts-dark.png b/docs/media/contacts-dark.pngdeleted file mode 100644index 9bb2d16..0000000Binary files a/docs/media/contacts-dark.png and /dev/null differdiff --git a/docs/media/contacts-dark.webp b/docs/media/contacts-dark.webpnew file mode 100644index 0000000..b70402fBinary files /dev/null and b/docs/media/contacts-dark.webp differdiff --git a/docs/media/contacts-light.png b/docs/media/contacts-light.pngdeleted file mode 100644index 680cf0f..0000000Binary files a/docs/media/contacts-light.png and /dev/null differdiff --git a/docs/media/contacts-light.webp b/docs/media/contacts-light.webpnew file mode 100644index 0000000..ca5ce07Binary files /dev/null and b/docs/media/contacts-light.webp differdiff --git a/docs/media/drive-dark.png b/docs/media/drive-dark.pngdeleted file mode 100644index 787d508..0000000Binary files a/docs/media/drive-dark.png and /dev/null differdiff --git a/docs/media/drive-dark.webp b/docs/media/drive-dark.webpnew file mode 100644index 0000000..061a24aBinary files /dev/null and b/docs/media/drive-dark.webp differdiff --git a/docs/media/drive-light.png b/docs/media/drive-light.pngdeleted file mode 100644index abc4e77..0000000Binary files a/docs/media/drive-light.png and /dev/null differdiff --git a/docs/media/drive-light.webp b/docs/media/drive-light.webpnew file mode 100644index 0000000..9be4ec5Binary files /dev/null and b/docs/media/drive-light.webp differdiff --git a/docs/media/hero.gif b/docs/media/hero.gifdeleted file mode 100644index 3a9633d..0000000Binary files a/docs/media/hero.gif and /dev/null differdiff --git a/docs/media/hero.webp b/docs/media/hero.webpnew file mode 100644index 0000000..a13ec95Binary files /dev/null and b/docs/media/hero.webp differdiff --git a/docs/media/notes-dark.png b/docs/media/notes-dark.pngdeleted file mode 100644index a930760..0000000Binary files a/docs/media/notes-dark.png and /dev/null differdiff --git a/docs/media/notes-dark.webp b/docs/media/notes-dark.webpnew file mode 100644index 0000000..31438e3Binary files /dev/null and b/docs/media/notes-dark.webp differdiff --git a/docs/media/notes-light.png b/docs/media/notes-light.pngdeleted file mode 100644index be188b0..0000000Binary files a/docs/media/notes-light.png and /dev/null differdiff --git a/docs/media/notes-light.webp b/docs/media/notes-light.webpnew file mode 100644index 0000000..1f5f311Binary files /dev/null and b/docs/media/notes-light.webp differdiff --git a/docs/media/photos-dark.png b/docs/media/photos-dark.pngdeleted file mode 100644index 5caf7c9..0000000Binary files a/docs/media/photos-dark.png and /dev/null differdiff --git a/docs/media/photos-dark.webp b/docs/media/photos-dark.webpnew file mode 100644index 0000000..45db5efBinary files /dev/null and b/docs/media/photos-dark.webp differdiff --git a/docs/media/photos-light.png b/docs/media/photos-light.pngdeleted file mode 100644index a0bd1ce..0000000Binary files a/docs/media/photos-light.png and /dev/null differdiff --git a/docs/media/photos-light.webp b/docs/media/photos-light.webpnew file mode 100644index 0000000..0e6c5bcBinary files /dev/null and b/docs/media/photos-light.webp differdiff --git a/docs/media/reminders-dark.png b/docs/media/reminders-dark.pngdeleted file mode 100644index b564a7f..0000000Binary files a/docs/media/reminders-dark.png and /dev/null differdiff --git a/docs/media/reminders-dark.webp b/docs/media/reminders-dark.webpnew file mode 100644index 0000000..39081c9Binary files /dev/null and b/docs/media/reminders-dark.webp differdiff --git a/docs/media/reminders-light.png b/docs/media/reminders-light.pngdeleted file mode 100644index dee0940..0000000Binary files a/docs/media/reminders-light.png and /dev/null differdiff --git a/docs/media/reminders-light.webp b/docs/media/reminders-light.webpnew file mode 100644index 0000000..17f4498Binary files /dev/null and b/docs/media/reminders-light.webp differdiff --git a/docs/media/settings-dark.png b/docs/media/settings-dark.pngdeleted file mode 100644index b807e0d..0000000Binary files a/docs/media/settings-dark.png and /dev/null differdiff --git a/docs/media/settings-dark.webp b/docs/media/settings-dark.webpnew file mode 100644index 0000000..2eefdd8Binary files /dev/null and b/docs/media/settings-dark.webp differdiff --git a/docs/media/settings-light.png b/docs/media/settings-light.pngdeleted file mode 100644index 9c0e76a..0000000Binary files a/docs/media/settings-light.png and /dev/null differdiff --git a/docs/media/settings-light.webp b/docs/media/settings-light.webpnew file mode 100644index 0000000..985b1a8Binary files /dev/null and b/docs/media/settings-light.webp differdiff --git a/docs/media/signin-dark.png b/docs/media/signin-dark.pngdeleted file mode 100644index 520675e..0000000Binary files a/docs/media/signin-dark.png and /dev/null differdiff --git a/docs/media/signin-dark.webp b/docs/media/signin-dark.webpnew file mode 100644index 0000000..78d82d8Binary files /dev/null and b/docs/media/signin-dark.webp differdiff --git a/docs/media/signin-light.png b/docs/media/signin-light.pngdeleted file mode 100644index 9189438..0000000Binary files a/docs/media/signin-light.png and /dev/null differdiff --git a/docs/media/signin-light.webp b/docs/media/signin-light.webpnew file mode 100644index 0000000..769865bBinary files /dev/null and b/docs/media/signin-light.webp differ