lightweight, client-only calendar web application. All data persists in the URL hash for instant sharing, No backend required. Optional AES-GCM password protection keeps shared links locked without a server
JavaScript
update readme
Supun Lakmal47bef79f09b6
diff --git a/README.md b/README.mdindex e681d37..102feca 100644--- a/README.md+++ b/README.md@@ -1,55 +1,92 @@-# hash-calendar--hash-calendar is a lightweight, client-only calendar. Your calendar state lives entirely in the URL hash, so sharing is as simple as copying the link. No backend, no accounts.+<p align="center">+ <img src="logo.png" alt="hash-calendar logo" width="160">+</p>++# hash-calendar++hash-calendar is a lightweight, privacy-first, client-only calendar. Your calendar state lives entirely in the URL hash, so sharing is as simple as copying the link. No backend, no accounts.Live site: https://hash-calendar.netlify.app/GitHub: https://github.com/supunlakmal/hash-calendar--## Features--- URL-based storage with LZ-String compression-- Day, week, month, and year views-- Create, edit, and delete events-- All-day events and duration-based events-- Recurring events (daily, weekly, monthly, yearly)-- Copy-link sharing-- Export calendar to JSON-- Import events from .ics files-- Optional password lock (AES-GCM + PBKDF2)-- Theme toggle (light/dark)-- Week start toggle (Sunday/Monday)--## How it works--- The calendar state is serialized to JSON and compressed into the URL hash.-- If a password is set, the compressed payload is encrypted using AES-GCM.-- No data leaves the browser unless you share the link.--Encrypted links start with `#ENC:`. Clearing the hash resets the calendar.--## Getting started--Open `index.html` in your browser.--For clipboard and file import features, run a local server:--```bash-npx serve .-```--## Project structure--- `index.html` - UI markup-- `styles.css` - Styles-- `script.js` - App logic-- `modules/`- - `calendarRender.js` - Calendar rendering- - `recurrenceEngine.js` - Recurring event expansion- - `icsImporter.js` - .ics parsing- - `hashcalUrlManager.js` - URL read/write + compression- - `cryptoManager.js` - Encryption helpers- - `lz-string.min.js` - Compression library--## License--MIT. See `LICENSE`.++## Features++- URL hash storage with LZ-String compression+- Optional password lock with AES-GCM + PBKDF2 (150k SHA-256) encryption+- Day, week, month, year, and agenda views+- Focus mode dashboard with live countdown and "up next" list+- "Up Next" countdown widget for the next event+- Create, edit, and delete events+- All-day events and duration-based events+- Recurring events (daily, weekly, monthly, yearly)+- Event color palette and editable calendar title (saved in the URL)+- Copy-link sharing and QR sharing (with length guard)+- View or copy JSON and URL hash+- Export calendar to JSON+- Import events from .ics files+- World clock sidebar with saved timezones+- Theme toggle (light/dark)+- Week start toggle (Sunday/Monday)+- URL length meter with warnings++## Screenshots++<table>+ <tr>+ <td><img src="demo/demo-1.png" alt="hash-calendar demo 1" width="420"></td>+ <td><img src="demo/demo-2.png" alt="hash-calendar demo 2" width="420"></td>+ </tr>+ <tr>+ <td><img src="demo/demo-3.png" alt="hash-calendar demo 3" width="420"></td>+ <td><img src="demo/demo-4.png" alt="hash-calendar demo 4" width="420"></td>+ </tr>+ <tr>+ <td><img src="demo/demo-5.png" alt="hash-calendar demo 5" width="420"></td>+ <td><img src="demo/demo-6.png" alt="hash-calendar demo 6" width="420"></td>+ </tr>+ <tr>+ <td><img src="demo/demo-7.png" alt="hash-calendar demo 7" width="420"></td>+ <td></td>+ </tr>+</table>++## How it works++- The calendar state is serialized to JSON and compressed into the URL hash.+- If a password is set, the compressed payload is encrypted using AES-GCM with PBKDF2 key derivation.+- No data leaves the browser unless you share the link.++Encrypted links start with `#ENC:`. Clearing the hash resets the calendar.++## Getting started++Open `index.html` in your browser.++For clipboard and file import features, run a local server:++```bash+npx serve .+```++## Project structure++- `index.html` - UI markup and modals+- `styles.css` - Styles+- `script.js` - App logic and state+- `modules/`+ - `calendarRender.js` - Month, week, day, and year grids+ - `agendaRender.js` - Agenda list view+ - `recurrenceEngine.js` - Recurring event expansion+ - `countdownManager.js` - Up next countdown widget+ - `focusMode.js` - Focus mode overlay+ - `timezoneManager.js` - World clock helpers+ - `qrCodeManager.js` - QR sharing+ - `icsImporter.js` - .ics parsing+ - `hashcalUrlManager.js` - URL read/write + compression+ - `cryptoManager.js` - Encryption helpers+ - `lz-string.min.js` - Compression library+- `demo/` - Screenshot assets++## License++MIT. See `LICENSE`.diff --git a/demo/demo-1.png b/demo/demo-1.pngnew file mode 100644index 0000000..70c9e92Binary files /dev/null and b/demo/demo-1.png differdiff --git a/demo/demo-2.png b/demo/demo-2.pngnew file mode 100644index 0000000..ee412cdBinary files /dev/null and b/demo/demo-2.png differdiff --git a/demo/demo-3.png b/demo/demo-3.pngnew file mode 100644index 0000000..1aaa69dBinary files /dev/null and b/demo/demo-3.png differdiff --git a/demo/demo-4.png b/demo/demo-4.pngnew file mode 100644index 0000000..ca6c5d4Binary files /dev/null and b/demo/demo-4.png differdiff --git a/demo/demo-5.png b/demo/demo-5.pngnew file mode 100644index 0000000..4144b96Binary files /dev/null and b/demo/demo-5.png differdiff --git a/demo/demo-6.png b/demo/demo-6.pngnew file mode 100644index 0000000..0a09e8eBinary files /dev/null and b/demo/demo-6.png differdiff --git a/demo/demo-7.png b/demo/demo-7.pngnew file mode 100644index 0000000..dc06079Binary files /dev/null and b/demo/demo-7.png differ