kaushalboii/MyDiary
Acerca de
MyDiary π β The Complete Shelf π
Otros proyectosWhat 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
OriginalMyDiary π
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.
Explorar proyectos relacionados
Cargandoβ¦



