Skip to content
้กน็›ฎ

ๅ…ณไบŽ

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 kaushalboii License Security: E2EE Vault GitHub Release


๐Ÿ’– 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!

Sponsor on GitHub



GitHub Sponsors Profile   Sponsorship Tiers

Click above to sponsor via GitHub Sponsors. Every tier and one-time tip is deeply appreciated!


๐Ÿ“ธ Visual Preview

3D Walnut Shelf Full-Scale 3D FlipBook Reader
3D Bookshelf FlipBook Reader
Book Studio Customizer Flexible Memory Composer
Book Studio 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 IndexedDB when 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, scrypt hashing & 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-GCM in the user's browser via the WebCrypto API.
  • Key Derivation: Master keys are derived from your passphrase using PBKDF2-SHA256 with 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

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


๐Ÿ“„ 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.

ๆŽข็ดข็›ธๅ…ณ้กน็›ฎ

ๅŠ ่ฝฝไธญโ€ฆ