Skip to content
Proyectos

Acerca de

MyDiary πŸ“– β€” The Complete Shelf πŸ”’

Otros proyectos

CΓ³mo se miden estas cifras

What you can do

  • 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.

Crecimiento de estrellas medido

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Recopilando historial

Cambios netos en perΓ­odos que se solapan, no totales diarios. Los datos no disponibles se dejan en blanco. Las estrellas indican interΓ©s, no calidad.

README.md

Original

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.

Explorar proyectos relacionados

Cargando…