Find your next open-source project

Search by name, purpose, or keyword — or paste a GitHub repository URL

Dksie09/unfold

Productivity

A browser-based journal styled as a hand-drawn pop-up book with four rooms, each offering one place to write.

110
13
TypeScript
MIT
2 days old

What it is

Unfold is a personal journal presented as a pop-up book. The cover opens into a small house whose rooms — bedroom, bathroom, kitchen and balcony — fold out one at a time. Each room has a single writing spot: a cork board, a mirror, a fridge door and a diary, with a prompt and close-up style for each. The project is aimed at people who want a playful, spatial writing ritual rather than a conventional notes app.

The book is not a pre-rendered animation. Pages hinge on one vertical spine; the room in front opens to 90° while the others share the remaining half-circle and fold into stacks at the sides. The floor is a square folded on its diagonal, so it lies flat when the room is open and stands up when the book closes. Furniture is drawn as flat isometric paper cards that rise only when a room is fully open. Every surface is generated in code — there are no image assets — starting as ink line art and washing with color as its room comes forward.

Run it

You need Node.js and npm. From the repository root:

npm install
npm run dev

Then open http://localhost:3000 in a browser. To use the book: click the cover, press Enter or double-click to open it; close with Esc or the left arrow on the first room. Move between rooms with the side arrows, arrow keys or by dragging sideways. Click the writing spot in the room in front to zoom in and write. "Tear out" crumples a note away; Esc first puts a note back, then closes the close-up.

A video demo is available from the README's preview image.

Storage and data

Entries are saved only in the current browser via localStorage under the key unfold.entries.v1. There is no account, server or sync. All reads and writes go through the async functions in lib/journal.ts, so switching to server-side storage would mean changing that file rather than the UI.

Build and constraints

The stack is Next.js (App Router), React Three Fiber, drei and three.js, with the Caveat handwriting font via @fontsource/caveat. The fold math lives in lib/fold.ts, the hand-drawn 2D renderer in lib/sketch.ts, and the 3D scene in components/Book.tsx. Because entries are browser-local, clearing site data or switching browsers loses them; opening the same install on another device starts empty. The project is MIT-licensed.

There is also a wedding-invite branch that turns the same book into an invitation with one room per event and an RSVP, which can serve as a starting point for a different use.

HotRepo's take

Unfold appeared on HotRepo's new-project list for TypeScript on 2026-11-23, with 109 stars and 13 forks reported and a gain of 5 stars and 1 fork in the roughly one-hour window from 16:45 to 17:45 UTC. That is a small sample: it shows early attention, not sustained growth, and there is no all-language daily rank recorded. The interesting part is the implementation choice — the pop-up mechanics are derived from real folding geometry and the artwork is drawn procedurally — which makes the repository useful as a reference for fold math and shader-baked paper textures, not only as a journal.

Project source and documentation

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. kevintngo/statechart-artFour hand-drawn statecharts, each backed by a checked TLA+ model, show boba-shop state machines and serve as a worked example of hand-coded illustration.JavaScript153
  2. xikhar/papercraftAn Agent Skill that teaches coding agents to build pop-up papercraft-style games, scenes, pages, and videos.JavaScript105