Fusion of Pixel Art and Meditation -- relax and unplug.
Go to file
Brian Fertig 15817f7c35 Add Docker support and new audio tracks
- Multi-stage Dockerfile: deps → dev (Vite hot reload) / build (typecheck + bundle) → runtime (nginx)
- docker-compose.yml with a default `web` service (port 8080) and a `dev` profile for hot reload (port 5173); ports overridable via PIXELTATION_PORT / PIXELTATION_DEV_PORT
- nginx config with gzip, immutable cache for fingerprinted /assets, and SPA fallback
- .dockerignore to keep the build context lean
- README: Docker Compose run instructions and a file reference table; note to rebuild the image after adding audio files
- Add coastline.mp3 and fx-waves.mp3 tracks under public/audio/
2026-10-29 19:44:09 -06:00
docker Add Docker support and new audio tracks 2026-10-29 19:44:09 -06:00
public/audio Add Docker support and new audio tracks 2026-10-29 19:44:09 -06:00
scripts Initial commit for Pixeltation pixel art meditation app 2026-10-29 19:33:35 -06:00
src Initial commit for Pixeltation pixel art meditation app 2026-10-29 19:33:35 -06:00
.dockerignore Add Docker support and new audio tracks 2026-10-29 19:44:09 -06:00
.gitignore Initial commit for Pixeltation pixel art meditation app 2026-10-29 19:33:35 -06:00
Dockerfile Add Docker support and new audio tracks 2026-10-29 19:44:09 -06:00
README.md Add Docker support and new audio tracks 2026-10-29 19:44:09 -06:00
docker-check.png Add Docker support and new audio tracks 2026-10-29 19:44:09 -06:00
docker-compose.yml Add Docker support and new audio tracks 2026-10-29 19:44:09 -06:00
index.html Initial commit for Pixeltation pixel art meditation app 2026-10-29 19:33:35 -06:00
package-lock.json Initial commit for Pixeltation pixel art meditation app 2026-10-29 19:33:35 -06:00
package.json Initial commit for Pixeltation pixel art meditation app 2026-10-29 19:33:35 -06:00
tsconfig.json Initial commit for Pixeltation pixel art meditation app 2026-10-29 19:33:35 -06:00
vite.config.ts Initial commit for Pixeltation pixel art meditation app 2026-10-29 19:33:35 -06:00

README.md

Pixeltation

Calm pixel art meditations for the browser. Pick a journey from the main menu, settle in, and watch.

Run

With Node (local)

npm install
npm run dev        # http://localhost:5173
npm run build      # static site in dist/

With Docker Compose

docker compose up --build -d              # production build served by nginx → http://localhost:8080
docker compose --profile dev up --build dev   # Vite dev server with hot reload → http://localhost:5173
docker compose down                       # stop

Change the host ports with PIXELTATION_PORT / PIXELTATION_DEV_PORT (e.g. PIXELTATION_PORT=3000 docker compose up -d). The dev service bind-mounts the project, so edits on the host reload in the browser; don't run it and npm run dev on the same port at once.

File Purpose
Dockerfile Multi-stage: deps → dev (Vite) / build (typecheck + bundle) → runtime (nginx)
docker-compose.yml web service (default) and dev service (dev profile)
docker/nginx.conf Static serving, gzip, long-cache for fingerprinted /assets

Meditations

id Title Length
northern-cabin Northern Cabin — winter sunset by a quiet lake 5 min

Each meditation lives in src/meditations/<id>/ and is registered in src/meditations/registry.ts. A scene is a pure function of time (render(surface, t)), drawn pixel by pixel into a 320×180 buffer that is scaled up crisply, so all art is generated in code.

Music

Drop an audio file in public/audio/ and set music: 'audio/<file>.mp3' on the meditation (e.g. in src/meditations/northern-cabin/index.ts). It fades in at the start and out over the last 10 seconds. With Docker, rebuild the web image (docker compose up --build -d) so the file is included.

Dev tools

  • #/m/northern-cabin?t=150&speed=10 starts at 150 s and plays at 10× (dev server only).
  • [ / ] skip back/forward 10 s while playing (dev server only).
  • npm run snapshot -- northern-cabin 0 120 200 renders frames to snapshots/ as PNGs without a browser.