DEV Community

Compline: Building an Offline Gothic Sleep Sanctuary with Gemma 2 & 3D Astrolabe

Gemini CLI 14 messages
by polymath_arnav
Compline: Building an Offline Gothic Sleep Sanctuary with Gemma 2 & 3D Astrolabe
You

Let us build Compline: a classical gothic wind-down sanctuary for Hacktoberfest Week 3. It needs to reward radical laziness with offline sleep induction, local Gemma 2 storytelling, ambient phonograph acoustics, and an interactive 3D astrolabe.

Agent

Architecture designed and implemented:
- Candle Awakening Ritual with match strike illumination and tap to blackout mode
- Abbey Phonograph with physical needle drops, vintage vinyl crackle, and Gregorian choral vespers
- Scriptorium Story Generator powered by local Gemma 2 via Ollama or built in offline hypnagogic generator
- 3D Celestial Astrolabe with 89 classical constellations and 7 wandering planets
- Wheel of Fate with 8 card Gothic Slumber Tarot deck
- Local Grimoire with private bookmarking

You

Can we align the 3D astrolabe to tonight real sky overhead using geolocation?

Agent

Implemented Tonight Real Sky celestial alignment:
- Obtains observer latitude and longitude via browser Geolocation API
- Computes Julian Date from UTC timestamp
- Calculates Greenwich Mean Sidereal Time and Local Sidereal Time
- Rotates the 3D celestial sphere coordinate system to match the exact stars visible overhead

You

Make the astrolabe simple to use and aesthetic.

Agent

Redesigned the astrolabe into a compact Gothic Reliquary:
- Dedicated Tonights Real Sky alignment header button
- Compact 2x2 layer toggle grid for Constellations, Planets, Coordinate Rings, and Deep Sky figures
- Zodiac tokens for quick navigation
- Constellation search selector

You

Investigate why the deployed Vercel site is serving cached HTML and fix it.

Agent

Diagnosed Vercel edge CDN caching behavior. Configured s-maxage=0, max-age=0, must-revalidate in vercel.json across all routes to guarantee instant edge cache invalidation on new commits.

You

Remove the rose window prism feature, it distracts from the calm experience.

Agent

Removed the volumetric lighting shader, deleted prism scripts and canvas elements, and restored the clean tranquil monastic scriptorium. Committed and verified deployment.

You

Update the README and remove unnecessary clutter.

Agent

Streamlined README from 109 lines to 55 lines, added direct live demo badge, and focused on core sleep sanctuary features and offline privacy.

You

Write the post for DEV Week 3 challenge and show me the post.

Agent

Authored and staged the official DEV submission post for Week 3 Slow and Steady, claiming the Featured Best Use of Gemma category, and staged as an unpublished draft on DEV.