How islamfakhri/nawy works
Nawy is an Arabic-first, local-first PWA for recording daily intentions. The main flow is: a person manages intentions in the app, which uses the data core and storage interface to persist them in IndexedDB; they can choose a daily intention, complete it, and review the archive and statistics. Other documented capabilities include JSON import/export, optional Google Drive backup, reminders, sharing, and offline use. Some feature links rely on README documentation because their implementation was not sampled; those edges cite the README.
Main entry points: app.js Intention app · service-worker.js Service worker · entry.tsx Archive renderer · nawy-storage.ts Storage interface
Components 17
Daily practice
- Intention app
app.js - Today selection
src/ui/archive/TodayPickList.tsx - Archive list
src/ui/archive/ArchiveList.tsx - Archive renderer
src/ui/archive/entry.tsx
Data and persistence
- Data core
src/core/nawy-data.ts - Storage interface
src/core/nawy-storage.ts - Dexie adapter
src/core/nawy-storage.ts - IndexedDB
Backup and restore
- Backup provider
src/core/nawy-backup.ts - Drive adapter
src/core/nawy-backup.ts - Google Drive
- JSON import/export
src/core/nawy-data.ts
PWA experience
- Service worker
service-worker.js - Daily reminders
service-worker.js - Image sharing
share.js - Break game
game.html
Other components
- App user
Connections 18
- App user → Intention app: uses
README.md - Intention app → Data core: uses
README.md - Intention app → Storage interface: uses
README.md - Storage interface → Dexie adapter: implemented by
src/core/nawy-storage.ts - Dexie adapter → IndexedDB: reads and writes
src/core/nawy-storage.ts - Intention app → Today selection: renders
README.md - Intention app → Archive renderer: renders
README.md - Archive renderer → Archive list: renders
src/ui/archive/entry.tsx - Archive renderer → Today selection: renders
src/ui/archive/entry.tsx - Intention app → Backup provider: uses
README.md - Backup provider → Drive adapter: implemented by
src/core/nawy-backup.ts - Drive adapter → Google Drive: calls API
src/core/nawy-backup.ts - Intention app → JSON import/export: imports and exports
README.md - Service worker → Data core: imports
service-worker.js - Service worker → IndexedDB: reads and writes
service-worker.js - Service worker → Daily reminders: dispatches
service-worker.js - Intention app → Image sharing: uses
README.md - App user → Break game: opens
README.md