kaushalboii/MyDiary
ๅ ณไบ
MyDiary ๐ โ The Complete Shelf ๐
ๅ ถไป้กน็ฎๅฏไปฅๅไปไน
- Continuous 3D Walnut Shelf (/): Three.js procedural bookshelf with clothbound spines, tactile paper thickness, smooth mouse/keyboard navigation, and 3D pull-forward book inspection.
- Interactive 3D FlipBook Reader (/book): Opens hardcover into synchronized page spreads (desktop) or single-sheet swipe (mobile) with photo zoom lightboxes and an Inline Arrange canvas.
- Book Studio Customizer: Real-time visual editor for bookcloth textures, secondary bands, gold foil accents, motif art, paper rulings (dot grid, lined, graph, smooth), and fonts.
- Flexible Memory Composer (/compose): Freeform memory creation supporting text, note cards, photos, and custom spread placement without mandatory fields.
ๅฎๆตๆๆ ๅข้ฟ
- 24ๅฐๆถ
- 0
- 7ๅคฉ
- 0
- 15ๅคฉ
- 0
- 1ไธชๆ
- ๆญฃๅจๆถ้ๅๅฒ
ๅๅจๆๅ ็ๆๆ ๅๅๅ๏ผๅจๆ็ธไบ้ๅ ๏ผๅนถ้ๆฏๆฅๆฐๅขใ็ผบๅคฑ็ๆต้ไฟๆ็ฉบ็ฝใๆๆ ไปฃ่กจๅ ณๆณจๅบฆ๏ผไธไปฃ่กจ่ฝฏไปถ่ดจ้ใ
README.md
ๅๆMyDiary ๐
An editorial 3D physical memory library & interactive flipbook diary built with Next.js 16, React 19, Three.js, and Tailwind CSS v4. Experience personal diaries, notes, and photo albums as clothbound hardcovers resting on a continuous walnut shelf with synchronized flipbook page turning, full customization, and client-side AES-256-GCM vault security.
Created with โค๏ธ by M Kaushal Maran
๐ Sponsor & Support
MyDiary is an independent open-source creation by M Kaushal Maran. If you love using MyDiary, find it inspiring, or want to support ongoing development, physical book aesthetics, and cloud sync infrastructure, please consider sponsoring!
๐ธ Visual Preview
| 3D Walnut Shelf | Full-Scale 3D FlipBook Reader |
|---|---|
![]() |
![]() |
| Book Studio Customizer | Flexible Memory Composer |
|---|---|
![]() |
![]() |
โจ Features
- Continuous 3D Walnut Shelf (
/): Three.js procedural bookshelf with clothbound spines, tactile paper thickness, smooth mouse/keyboard navigation, and 3D pull-forward book inspection. - Interactive 3D FlipBook Reader (
/book): Opens hardcover into synchronized page spreads (desktop) or single-sheet swipe (mobile) with photo zoom lightboxes and an Inline Arrange canvas. - Book Studio Customizer: Real-time visual editor for bookcloth textures, secondary bands, gold foil accents, motif art, paper rulings (dot grid, lined, graph, smooth), and fonts.
- Flexible Memory Composer (
/compose): Freeform memory creation supporting text, note cards, photos, and custom spread placement without mandatory fields. - Vault Security & Privacy: Client-side passphrase encryption using PBKDF2-SHA256 (310k iterations) and AES-256-GCM. Zero personal entries, credentials, or private URLs are bundled in static builds.
- Offline Mode & Sync: Automatic fallback to browser
IndexedDBwhen disconnected, with seamless one-click restoration when reconnected. - Verlet Rope Theme Toggle: Pull or drag the hanging cord to simulate real-time Verlet pendulum physics and switch between warm Light Mode and Obsidian Dark Mode.
๐ ๏ธ Tech Stack
- Frontend: Next.js 16 (Static Export), React 19, TypeScript
- 3D & Physics: Three.js, Verlet Integration Rope Engine
- Styling & UI: Tailwind CSS v4, Lucide Icons, Newsreader & Inter fonts
- Security & Vault: WebCrypto API (
PBKDF2-SHA256+AES-256-GCM) - Storage Backend (Optional): Node.js, Express,
scrypthashing & HMAC media signing
๐ Project Structure
MyDiary/
โโโ .github/
โ โโโ FUNDING.yml # GitHub Sponsors configuration
โ โโโ workflows/ # GitHub Actions CI/CD workflows
โ โโโ deploy.yml # GitHub Pages static export deployment
โ โโโ keepalive.yml # Storage backend health ping
โ โโโ release.yml # Automated GitHub releases on tag push
โโโ docs/ # Screenshots and documentation assets
โโโ scripts/ # Local orchestration utilities
โ โโโ dev-all.mjs # Concurrent runner for Next.js and backend
โโโ src/
โ โโโ app/ # Next.js 16 App Router
โ โ โโโ book/page.tsx # 3D FlipBook interactive reader & in-book editor
โ โ โโโ compose/page.tsx # Memory composer studio route
โ โ โโโ memory/page.tsx # Single-memory focused reading view
โ โ โโโ page.tsx # Home 3D walnut bookshelf experience
โ โ โโโ layout.tsx # Root layout with font imports & theme setup
โ โ โโโ robots.ts # SEO crawler configuration
โ โ โโโ sitemap.ts # Dynamic static sitemap
โ โโโ components/ # Reusable UI & modal components
โ โ โโโ DiaryShelfExperience.tsx # Three.js canvas integration
โ โ โโโ FlipBookReader.tsx # Physics-based dual-page flipbook
โ โ โโโ FreeformPageBlocks.tsx # Draggable block layout engine
โ โ โโโ MemoryEditorModal.tsx # In-book real-time memory editor
โ โ โโโ VolumeEditorModal.tsx # Book studio cloth, motif & styling customizer
โ โ โโโ StorageSettingsModal.tsx # Account, E2EE vault & sync modal
โ โ โโโ ThemeToggle.tsx # Verlet rope pendulum light/dark toggle
โ โโโ lib/ # Core business logic & security libraries
โ โ โโโ memory-layout.ts # Spread calculation, styling & block synchronization
โ โ โโโ storage-client.ts # Client-side API, offline IndexedDB & encryption hooks
โ โ โโโ vault-security.ts # WebCrypto AES-256-GCM + PBKDF2 encryption engine
โ โ โโโ types.ts # Comprehensive TypeScript type definitions
โ โโโ three/ # Three.js 3D rendering pipeline
โ โโโ ShelfEngine.ts # Procedural shelf, shadows & lighting
โ โโโ cover-art.ts # Canvas procedural cloth & gold foil generative textures
โ โโโ book-motion.ts # Physics animation & inspection camera math
โโโ storage-server/ # Optional lightweight Node.js storage microservice
โ โโโ server.mjs # Multi-tenant scoped API with Scrypt & HMAC auth
โ โโโ setup-mini-server.sh # One-command production deployment script
โ โโโ default-books.json # Starter books baseline
โโโ .env.example # Frontend environment template
โโโ LICENSE # MIT License with author attribution
โโโ package.json # Project manifest, scripts & dependencies
โโโ SECURITY.md # Anti-tamper & E2EE security policy
โโโ tsconfig.json # Strict TypeScript configuration
๐ Security & Anti-Tamper Architecture
MyDiary is built with Zero-Knowledge privacy at its foundation:
- Client-Side Encryption: All journal texts, notes, and coordinates are encrypted using
AES-256-GCMin the user's browser via the WebCrypto API. - Key Derivation: Master keys are derived from your passphrase using
PBKDF2-SHA256with 310,000 iterations and a unique per-user salt. - Zero-Knowledge Storage: The server only stores ciphertext. Even if server files are accessed without authorization, no entries can be decrypted without the user's secret passphrase.
- No Leaked Secrets: Static builds contain zero tokens or private URLs. Passwords and tokens are never stored in plaintext
localStorage. - See SECURITY.md for full security specifications and reporting guidelines.
๐ Quick Start
1. Clone the repository
git clone https://github.com/kaushalboii/MyDiary.git
cd MyDiary
2. Install dependencies
npm install
npm --prefix storage-server install
3. Run development server
# Starts both Next.js frontend and local storage server
npm run dev:all
- Web App: http://127.0.0.1:5203
- Local Storage API: http://127.0.0.1:4321
4. Build for Production
npm run build
Generates a static export bundle inside the out/ directory, ready to deploy to GitHub Pages, Vercel, or Netlify.
๐ Available Scripts
| Command | Description |
|---|---|
npm run dev |
Starts the Next.js frontend on port 5203 |
npm run dev:storage |
Starts the local Node.js storage server on port 4321 |
npm run dev:all |
Runs frontend and storage server together |
npm run build |
Builds the static export production bundle (out/) |
npm run start |
Serves the static out/ build locally |
npm run type-check |
Runs TypeScript compiler checks |
๐ Optional Self-Hosted Storage Server
To run your own private storage backend:
cd storage-server
cp .env.example .env
node server.mjs
Inside the web app, navigate to Menu โ Security & Members, enter your private storage URL, and claim your encrypted vault.
๐ค Author & Creator
Created with โค๏ธ by M Kaushal Maran
- GitHub: @kaushalboii
- Repository: https://github.com/kaushalboii/MyDiary
๐ License & Intellectual Property Ownership
Copyright ยฉ 2026 M Kaushal Maran. All rights reserved.
This project is licensed under the MIT License.
What this means:
- Sole Ownership: The original concept, 3D physical shelf & flipbook experience, editorial layouts, and source code are the original creation and intellectual property of M Kaushal Maran.
- Usage Rights: Anyone is permitted to use, run, fork, study, and build upon this project for free.
- Mandatory Attribution: Any copies, forks, or derivative distributions must retain the original copyright notice and attribution to M Kaushal Maran. Users and forks cannot claim ownership or creation of the original concept or project.
ๆข็ดข็ธๅ ณ้กน็ฎ
ๅ ่ฝฝไธญโฆ



