Skip to content

KevinB2212/growthink

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

32 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Version PWA Vanilla JS No Frameworks MIT License

๐ŸŒฑ GroWthink

A mindful note-taking app where your thoughts grow a living plant.
Write, reflect, earn XP, and watch your garden flourish.

๐Ÿš€ Try it live โ†’ ย ย |ย ย  ๐Ÿ“– Full Feature Docs โ†’


โœจ What is GroWthink?

GroWthink combines journaling with gamification. Every note you write waters your virtual plant, earning XP and keeping it alive. Skip a day? Your plant's health drops. Build streaks, unlock achievements, and watch your garden grow as your mind does.

The core loop: Write โ†’ Earn XP โ†’ Level Up โ†’ Plant Grows โ†’ Unlock Rewards โ†’ Keep Writing


๐ŸŽฏ Features

๐Ÿ“ Writing & Input

  • Rich notes with mood tracking, categories, and tags
  • Focus mode โ€” distraction-free fullscreen writing
  • AI chat interface for conversational note capture
  • Speech-to-text, photo notes, and voice recordings
  • Smart tag suggestions and note templates

๐ŸŒฟ Plant & Garden

  • 4 plant species with procedural SVG rendering
  • Plant DNA system โ€” 8 genetic traits, mutations, and breeding
  • Multi-plant garden tied to note categories
  • 5 evolution stages: Sprout โ†’ Sapling โ†’ Bloom โ†’ Ancient โ†’ Legendary
  • Pet companions (Cat, Bird, Frog, Butterfly, Squirrel)

๐Ÿ“ˆ Analytics

  • Sentiment analysis with 30-day trend chart
  • Word cloud visualization
  • Weekly review cards and 90-day activity heatmap
  • Location-tagged notes with interactive map
  • Mind map generator on canvas

๐ŸŽฎ Gamification

  • XP system with 20+ levels and streak tracking
  • 12 achievement badges and daily/weekly challenges
  • Cosmetic shop with 35+ items (hats, effects, pots)
  • Pomodoro timer with XP bonus
  • Challenge mode with personal records

๐ŸŽต Sound & Atmosphere

  • Procedural lo-fi music engine (no audio files!)
  • 5 adaptive soundscapes: Rain, Ocean, Forest, Campfire, Cafรฉ
  • Dynamic sky that follows time of day (8 phases)
  • Weather integration with animated particles

๐Ÿ“ค Export & Sync

  • Export as JSON, Markdown, CSV, or text
  • Monthly zine โ€” auto-generated magazine from your notes
  • QR code sync for cross-device data transfer
  • Notion integration
  • PIN lock for private notes

๐Ÿ—๏ธ Architecture

index.html    โ†’  429 lines   Clean HTML structure
style.css     โ†’  615 lines   Full responsive styling
app.js        โ†’  1,115 lines Core application logic
db.js         โ†’  IndexedDB storage layer (50MB+)
perf.js       โ†’  Debounce, throttle, lazy loading, virtual scroll
lofi.js       โ†’  Procedural lo-fi music engine (Web Audio API)
sounds.js     โ†’  Ambient soundscape generator
sw.js         โ†’  Service worker with offline caching

Zero frameworks. Zero dependencies. Pure vanilla HTML, CSS, and JavaScript. Runs entirely in your browser with no server required.

Performance Optimizations

  • Lazy-loaded CDN scripts (Leaflet, html2canvas, lz-string, jsQR)
  • Debounced input handlers (200ms)
  • IndexedDB with localStorage fallback
  • Service worker with cache-first strategy
  • Terser minification (14% size reduction)
  • Data migration system for seamless version upgrades

๐Ÿš€ Getting Started

Use it now

Visit kevinb2212.github.io/growthink โ€” works on any device with a modern browser. Install as a PWA for the full experience.

Run locally

git clone https://github.com/KevinB2212/growthink.git
cd growthink
npm install        # Install dev dependencies
npm run dev        # Start Vite dev server

Build for production

npm run build      # Minifies JS โ†’ dist/

๐Ÿ“œ Version History

Version Highlights
v5.1 Modular file split, IndexedDB, lazy loading, Vite build, service worker upgrade
v5.0 Focus mode, sentiment analysis, word cloud, smart tags, plant DNA, mind map, QR sync
v4.0 Pet companions, soundscapes, daily challenges, photo/voice notes, PIN lock
v3.0 XP shop, weather, time capsules, heatmap, templates, lo-fi music
v2.0 Achievements, insights, mood tracking, plant types, pomodoro, themes, PWA
v1.0 Core notes, virtual plant, AI chat, speech-to-text, Notion sync

Each version is preserved as a branch (v1โ€“v5) with annotated tags.


๐Ÿ› ๏ธ Tech Stack

Technology Usage
Vanilla JS Core application logic
CSS3 Animations, gradients, responsive design
HTML5 Canvas Mind map, plant rendering
IndexedDB Primary storage (50MB+)
Web Audio API Procedural lo-fi music
Service Workers Offline support, caching
Geolocation API Location-tagged notes
Notification API Note reminders
Speech Recognition Voice-to-text input
MediaRecorder Voice note recording
Leaflet.js Interactive maps
Vite Dev server & build tool

๐Ÿ“„ License

MIT ยฉ Kevin


"Your mind is a garden, your thoughts are the seeds.
You can grow flowers or you can grow weeds."

๐ŸŒฑ Start growing yours today

About

๐ŸŒฑ A mindful note-taking PWA where your thoughts grow a living plant. Write, reflect, earn XP, and watch your garden flourish.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors