Skip to content
Projets

À propos

Fonds d’écran interactifs et vivants pour le bureau

Outils de développement

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
+1
in 7 days
+2
in 15 days
+4
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Deskworlds

Riverbed, Bonfire, Plasma globe and Cherry blossom on a Mac desktop, each answering the cursor

Deskworlds puts a small living 3D world on your Mac desktop. The creatures in each world react to your cursor, and you can feed them from the menu bar. Everything runs locally with Three.js and WebGL2, with no account, analytics or internet connection.

Install on Mac

You need macOS 13 or newer and the Xcode command line tools (xcode-select --install). Clone the repository, then run this from the project folder:

sh wallpaper/install.sh

This builds the app, installs it at ~/Applications/Deskworlds.app, and adds a login item. The first frame takes about 20 seconds to appear. Your desktop picture is not changed; the world draws on top of it.

To update, pull the latest source and run the installer again. To remove it, run sh wallpaper/uninstall.sh.

Usage

Click the Deskworlds icon in the menu bar to switch worlds, feed the creatures, stir the fire, switch on the holiday lights, send a breeze through the cherry tree, or pause. Desktop icons and clicks work as usual.

The wallpaper lowers its frame rate on battery or when windows cover the desktop, and stops when the desktop is hidden, the screen is locked, or Low Power Mode is on. It reads your cursor position and window sizes for this, but does not record keystrokes or request any special permissions.

Run in a browser

All worlds also run in any browser with WebGL2. With Node.js 20 or newer:

npm start

Then open http://127.0.0.1:8080. Click a scene to drop food (or a pebble in the lake), or switch worlds from the menu at the top right. Space pauses, F toggles fullscreen, and H hides the controls.

Development

There are no dependencies to install. Each world lives in scenes/<name>/, the gallery in ui/, and the macOS app in wallpaper/. The list of worlds that the gallery and the world menu show is ui/worlds.js; the macOS app keeps its own in wallpaper/Wallpaper.swift, and a test checks the two agree.

npm run check
npm test

License

MIT. Three.js is bundled under its MIT license.

Explorer des projets similaires

Chargement…