Zen is a deliberately minimal codebase: three source files and a handful of assets are all it takes to deliver the full experience. Understanding the layout makes it straightforward to fork the project, swap out scenery, change the audio track, or restyle the palette without ever touching a build tool.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mr-sunset/zen/llms.txt
Use this file to discover all available pages before exploring further.
Directory layout
File reference
index.html
The single HTML entry point. Renders the welcome screen, holds all scene
markup, and loads
style.css and script.js with cache-busting query
strings.script.js
Handles all DOM interaction: the fade-out transition after the welcome
screen is dismissed and the show/hide toggle for the audio controls panel.
style.css
Contains every style rule the project needs — layout, keyframe animations,
responsive sizing via
100dvh/100dvw, and a prefers-color-scheme: dark
media query for automatic dark mode.assets/black-noise.ogg
The looping ambient audio track served as an OGG file, which is natively
supported in all modern browsers without any codec plugin.
assets/group-tree.svg
An inline-ready SVG illustration of a cluster of trees used as the main
foreground scenery element in the relaxation scene.
assets/sand.svg
An SVG illustration of sand and shoreline that forms the ground layer of
the scene composition.
favicon.png and apple-touch-icon.png in the assets/ folder are purely
presentational — they set the browser tab icon and the iOS home screen icon
respectively, and have no effect on the scene itself.Cache busting
When a browser loads Zen for the first time it cachesstyle.css and
script.js aggressively. To guarantee that returning visitors pick up your
latest changes, the <link> and <script> tags in index.html append a
version query string:
?v=3 suffix is treated by the browser as part of the URL, so it fetches
a fresh copy whenever the number changes. It has no effect on the server —
static hosts simply ignore unknown query parameters.
No build step
Zen has no bundler, transpiler, or package manager — there is nopackage.json, no node_modules, and no compilation phase. Every file is
served to the browser exactly as it is written on disk. This keeps the project
auditable at a glance, trivially forkable, and deployable to any static host
in seconds.
Because there is no build step, you can open
index.html directly in a
browser for a quick look at the markup — though for full audio and
autoplay support you should use a local HTTP server. See the
Self-Hosting guide for quick server options.