Skip to content

ayanimea/aurorae-haven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

193 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🌌 Aurorae Haven

A calm, astro-themed productivity app designed for neurodivergent users. Manage routines, tasks, habits, notes, and stats with Markdown import/export, reminders, gamification, and secure local/mobile use.


✨ Features

  • Progressive Web App (PWA): Install on any device, works offline
  • Routines: Create, edit, and run daily routines with timers. Create routines from templates via an integrated library modal
  • Tasks: Prioritise using the Eisenhower matrix
  • Template Library: 13+ predefined task and routine templates to get started quickly. Access from Settings or inline when creating routines
  • Habits: Track streaks and small wins
  • Notes & Brain Dump: Markdown-ready with comprehensive import/export (.json for full backup, .md for content only)
  • Stats Foundation: Track routine time and structured progress with IndexedDB
  • Auto-Backup: Automatic backups every 24 hours to prevent data loss
  • IndexedDB Storage: Fast, reliable structured data storage (up to 50MB+)
  • File Attachments: OPFS support for attaching files to notes
  • Gamification (v2.0+): XP, levels, achievements, confetti/haptics
  • Reminders (v2.0+): Tasks, routines, and habits notifications
  • Secure by design: Strict CSP, modular code, no inline scripts
  • Multi-mode builds: Android packaging, offline desktop distribution, and online web deployment

πŸ› οΈ Roadmap

See the ROADMAP.md for detailed milestones (Alpha, Beta, v1.0, v2.0, and beyond).


πŸš€ Quick Start

  1. Clone the repository:

    git clone https://github.com/ayanimea/aurorae-haven.git
    cd aurorae-haven
  2. Install dependencies:

    npm install
  3. Start the Vite development server:

    npm run dev

    The app will open at http://localhost:3000

  4. Build for production:

    npm run build

    The production build will be in the dist/ directory

  5. Test the production build locally:

    npm run preview

    This will start a local server to preview the production build


πŸ“¦ Installation

PWA Installation (Recommended)

Aurorae Haven is now a Progressive Web App! You can install it on your device:

  1. Visit the app in a modern browser (Chrome, Firefox, Edge, Safari)
  2. Look for the "Install" or "Add to Home Screen" prompt
  3. Click install to add the app to your device
  4. Launch from your home screen or app drawer

Benefits: Works offline, faster loading, native app experience

Offline Download Package

Download the full website for offline use without build tools!

  1. Go to the GitHub Actions page

  2. Click on the latest successful workflow run

  3. Scroll down to "Artifacts" section

  4. Download offline-package

  5. Extract the .tar.gz file:

    tar -xzf aurorae-haven-offline-*.tar.gz
  6. Double-click index.html to open in your browser - no server needed!

    # Optional: Serve with a local server for PWA installation
    python3 -m http.server 8000

What's included: Complete static website with all assets, service worker, and PWA manifest. Built with relative paths so it works directly from your file system!

Development Setup

  • Dependencies:

    • Node.js 14+ (for building)
    • Modern browser (Chrome, Firefox, Edge, Safari)
  • Build Instructions:

    npm install
    npm run build
    npm run preview  # Preview production build locally
  • Install Methods:

    • βœ… Progressive Web App (PWA) installation
    • βœ… Offline desktop package (npm run build:mode:desktop)
    • βœ… Android packaging flow (npm run build:mode:android + npm run package:android)
    • βœ… Online web deployment (npm run build:mode:web + Docker)

πŸ’Ύ Data Management

Storage Architecture

  • IndexedDB: Primary storage for structured data (tasks, habits, schedules, stats)
  • OPFS: File attachments with metadata references in IndexedDB
  • localStorage: Fallback and UI state (brain dump content, tags, version history)
  • Automatic Backups: Daily backups stored in IndexedDB (keeps last 10)

Features

  • βœ… Export: Download all data as JSON file with timestamp and UUID
  • βœ… Import: Restore from any previous export with validation
  • βœ… Auto-Migration: Automatic migration from localStorage to IndexedDB
  • βœ… Backward Compatible: Works with both old and new storage systems

Storage Limits

  • localStorage: ~5-10 MB (fallback)
  • IndexedDB: ~50 MB+ (primary, varies by browser)
  • OPFS: Limited by available disk space

Documentation

See the User Manual for complete documentation on features and usage.


πŸ—οΈ Architecture

  • Progressive Web App (PWA): Installable, offline-capable, app-like experience
  • ReactJS: Modular component-based architecture for maintainability
  • HTML5 & CSS: Modern web standards with responsive design
  • IndexedDB: Structured data storage with indexes and transactions
  • OPFS: File system access for attachments
  • Service Worker: Enables offline functionality and caching strategies
  • Web Manifest: Provides app metadata for installation
  • Modular Components: Organized codebase with clear separation of concerns

Deployment

The app is automatically deployed to GitHub Pages when changes are pushed to main, feature-*, or hotfix-* branches. The deployment workflow:

  1. Runs tests and security audits
  2. Installs Node.js dependencies
  3. Builds the React application with Vite (npm run build)
  4. Automatically generates PWA assets (service worker, manifest, icons) via vite-plugin-pwa
  5. Deploys to GitHub Pages

Build Tool: Vite (fast, modern bundler with HMR) Live URL: https://aurorae-haven.github.io/aurorae-haven/


πŸ”’ Security & Privacy

  • Strict Content Security Policy (CSP): No inline scripts or styles
  • No external dependencies: All resources served locally or with SRI
  • No tracking: Your data never leaves your device
  • Local-only storage: IndexedDB + OPFS, all data stays on your device
  • Export anytime: JSON export for backup and migration
  • Open source: Auditable codebase
  • Automatic backups: Daily backups to prevent data loss
  • Regular audits: Security scanning and vulnerability checks

πŸ“„ License

MIT License


πŸ“š Documentation

User Guides

Data Management

  • Export/Import: Use the Settings page to export your data as JSON for backup or migration
  • Automatic Backups: Daily backups stored locally in IndexedDB
  • Storage: All data stored locally on your device using IndexedDB and OPFS
  • Future server schema: PostgreSQL account-scoped design draft
  • Optional backend integration draft: Backend integration requirements (for future/custom sync work; local-first app works without backend auth)

Feature Specifications

Project Information


πŸ™Œ Contributing

Contributions, feedback, and ideas are welcome!

Adding Templates

Want to contribute task or routine templates? We welcome community contributions!

  • Templates are stored in src/data/templates/ as JSON files
  • 13+ predefined templates already included to help users get started
  • Easy to add: just follow the schema in existing templates, test locally, and submit a PR
  • See the template files in src/data/templates/ for examples

About

Aurorae Haven is a calm, astro-themed productivity app for neurodivergent users. It supports routines, tasks, habits, notes, and stats with Markdown import/export, reminders, gamification, and strong security for local and mobile use.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages