Skip to content

About

Product website for Arto

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Arto Site

Product website for Arto. Published at arto-app.github.io.

Tech Stack

Development

Recommended: Nix

This project uses Nix Flakes to provide a reproducible development environment.

# Enter development shell (Node.js 22 + just)
nix develop

# Install dependencies
just install

# Start dev server
just dev

# Build for production
just build

# Preview production build
just preview

# Type check
just check

Alternative: npm

If you don't have Nix installed, you can use npm directly:

npm install
npm run dev
npm run build
npm run preview

Project Structure

app/
├── routes/           # File-based routing
│   ├── _renderer.tsx # Layout
│   ├── index.tsx     # Home page
│   ├── features/     # Features page
│   ├── versions/     # Public version tracking page
│   └── install/      # Install page
├── components/       # Shared components
│   ├── Header.tsx
│   ├── Footer.tsx
│   ├── CodeBlock.tsx
│   ├── Figure.tsx    # Figures, theme-paired screenshots, window cascade
│   └── Icons.tsx
├── lib/
│   ├── arto-version.ts # Arto reference versions and sync log data
│   ├── image-size.ts   # Intrinsic size of every asset under public/images
│   └── path.ts         # Base-path helper for hand-written href/src
├── style.css         # Global styles
└── client.ts         # Client-side JS (theme toggle)

public/
├── images/           # Screenshots
└── videos/           # Motion clips and the walkthrough

Screenshots

Every capture exists twice — <name>-light and <name>-dark — and that holds for stills (.webp under images/) and for everything that moves (.mp4 under videos/) alike. Shot and MotionFigure each render both and let CSS show the one matching the reader's theme, which is answered by the site's own theme rather than by prefers-color-scheme: someone reading this site in dark on a light desktop should not be shown the light artwork.

Stills are lossless WebP. On flat-colour interface captures that comes out smaller than WebP at any quality setting — lossy spends its bits ringing around the hard edges these images are made of — so there is no trade being made: about 29% of the PNG for the same pixels. og-image.png is the one exception and stays PNG, because it is read by other people's link unfurlers rather than by a browser.

Clips are H.264 rather than animated GIF. A GIF has to quantise the whole interface to 256 colours, which on this footage cost roughly six times the bytes for a lower SSIM against the recording.

No clip carries autoplay, and none preloads. Both themes are in the markup with CSS hiding one, so an autoplay attribute would fetch a file nobody will see; client.ts starts whichever element is displayed once it scrolls into view, and leaves them all alone — poster showing, controls on — for a reader who asked for reduced motion. Each clip therefore needs a <name>-poster-<theme>.webp, its own first frame, which is what stands in before playback and permanently without JavaScript. WebP because a poster is on screen for an instant: as PNG the posters together cost more than the videos they introduce.

A new or re-cropped asset needs its pixel size recorded in app/lib/image-size.ts, or the page reserves no space for it and jumps as it loads. imageSize throws on a name it does not know, so the omission is loud.

Retaking them

Everything is shot by the scripts in shoot/, on macOS, with CleanShot X doing the capturing:

python3 shoot/setup.py            # set Arto's state aside, put the demo in
python3 shoot/shoot.py light all  # every still and clip, in one theme
python3 shoot/shoot.py dark all
python3 shoot/export.py light all # clips to MP4, as CleanShot renders them
python3 shoot/export.py dark all
python3 shoot/publish.py          # WebP, H.264 and posters into public/
python3 shoot/restore.py          # put the reader's own state back

setup.py replaces Arto's history, bookmarks, pinned searches, highlights and lens answers with the demo set, and copies the documents in shoot/demo/ to ~/Documents, so the pages show demo content rather than whatever the person holding the camera happens to have open. It also uses the stock Default keybindings, since a reader's own mappings.json can predate the actions the site shows. The highlights, the baseline for the changed-RFC shot and the lens answers are made by driving Arto once and kept in arto-backup/shoot-prepared, which every scene starts from.

The shoot types, clicks and moves the pointer: keep hands off the machine while it runs, quit any tiling window manager, and switch macOS's own appearance to match the theme being shot (the script does this). CleanShot's URL scheme API has to be enabled in its settings.

Clips are recorded in CleanShot's Studio Mode and kept as .cleanshotvideo projects under ~/Desktop/Arto Site Captures, not in this repository. A zoom or a background is added there before exporting — shoot/copy_edits.py copies one theme's edits onto the other's project, since both are recorded from the same script. The walkthroughs on the home page get a background; the figures beside the text do not.

Maintainer Notes

Next Migration Checklist

  1. Identify target commit: Compare this repository's last update date with ../Arto, then pin a specific Arto tag/commit.
  2. Diff user-facing features: Review Arto README and recent commits for additions that affect CLI, UI, rendering, and workflow.
  3. Update version metadata first: Change app/lib/arto-version.ts (current target and sync log), then align features/install content.

License

MIT

About

Product website for Arto

Resources

Stars

1 star

Watchers

0 watching

Forks

Contributors

Languages