@geekbb: Interesting, a single HTML file is a flippable watercolor album of Singapore. Drag your finger and the pages bend, drag the magnifier and the ink is visible wherever you go, no installation needed. https://github.com/MengTo/sketchbook…

X AI KOLs Timeline Tools

Summary

An open-source project that creates an interactive watercolor sketchbook of Singapore using a single HTML file with page-turning effects and a magnifier, showcasing advanced web development techniques.

Interesting, a single HTML file is a flippable watercolor album of Singapore. Drag your finger and the pages bend, drag the magnifier and the ink is visible wherever you go, no installation needed. https://t.co/Te7aHScj8t https://t.co/LD8sDtjwHc
Original Article
View Cached Full Text

Cached at: 08/26/26, 05:28 PM

It’s quite fascinating—this single HTML file is a watercolor sketchbook of Singapore with flipping pages that bend as you drag, a magnifier that reveals ink details anywhere you hover, all without installing anything.

https://t.co/Te7aHScj8t https://t.co/LD8sDtjwHc


MengTo/sketchbook

Source: https://github.com/MengTo/sketchbook

Sketchbook

A page-flipping sketchbook of Singapore, built as one static HTML file. Drag a page and the leaf bends the way paper bends, then drag the brass magnifier across the spread to read the ink up close.

View the live site (https://mengto.com)

The sketchbook open on the Marina Bay skyline, with the magnifier resting on the ink

Inspiration

Built after seeing Matthew Yu’s (https://x.com/matthewyuart) personal portfolio concept, which he open-sourced at matthewyuart/personalportfolio (https://github.com/matthewyuart/personalportfolio). That repository is what made this possible rather than a rough approximation of it.

Books and pages are some of the most interesting UIs to explore, and an agent will only give you the basics unless you hand it a solid open-source project to work from. Everything past that came from asking for one behaviour at a time: drag to paginate, then many rounds of fixes for shadows, clipping, alpha masks and turn logic, then a magnifier that has to move out of the way when a page sweeps past it.

What is inside

  • Nine watercolour spreads of Singapore, from Marina Bay Sands to the Botanic Gardens, with an index that jumps to any plate.
  • Drag the spread to turn a page, or throw it and let the velocity decide whether the leaf commits or falls back.
  • A magnifier that lies on the desk above the paper. Drag it anywhere, and it slides aside when a turning leaf sweeps through it.
  • A pointer parallax that leans the book toward the cursor without dragging the magnifier along with it.
  • An opening riffle that flicks through the book on load, with directional motion blur on the leaves.
  • Paper textures, watercolour washes and botanical ornaments layered behind the page.
  • No build step, no dependencies, and no external requests. Fonts and artwork are served from the repository.

How it is made

The page turn. The turning leaf is not a flat panel on a hinge. It is a chain of nested strips whose tangent sweeps through an arc, so the surface curves along its width and the paper bends instead of pivoting like a door. Each strip carries a front and back face with backface-visibility doing the flip, plus a shading gradient and a specular wash that track the leaf’s angle to the light.

The magnifier. The lens holds a second copy of the book, scaled about whichever page point sits under the glass and masked to a circle. That copy lives outside the parallax transform, so leaning the book never drags the glass with it, and the copy fades out as the glass wanders off the paper so you are left looking through plain glass rather than at a sliver of page floating on the desk.

The artwork. The spreads were generated with gpt image 2, which is very good at these Singapore sketches. The paper grain, watercolour washes and botanical ornaments are what give the page its personality.

The type. Instrument Serif and Newsreader, subset to the characters the page actually uses so the three font files come to 164KB.

Everything lives in index.html: layout, styles, the page-turn geometry, the loupe, and the interaction state. It is 48KB. The sketchbook/ folder holds the art and the fonts.

Run locally

Serve the folder with any static file server, then open the local URL:

python3 -m http.server 4173

Opening index.html straight off disk works too, though the fonts load more reliably over http.

Accessibility and input

The magnifier is hidden on touch devices, where there is no cursor to drag it with, and the book falls back to tap-to-turn. prefers-reduced-motion skips the opening riffle and settles page turns without animation.

Deployment

GitHub Pages builds from main through the Actions workflow and serves at mengto.com (https://mengto.com).

More open source

  • Skills (https://github.com/MengTo/Skills) — agent skills for designers and builders using Codex, Claude, Cursor and other AI coding agents. Browse them at ui-skills.com (https://ui-skills.com).
  • The Complete Shelf (https://github.com/MengTo/complete-shelf) — seven interactive clothbound hardcovers in a single Three.js file. Live (https://mengto.github.io/complete-shelf/)

What I build

  • Aura (https://aura.build) — an AI website builder that creates landing pages in seconds and exports to HTML and Figma.
  • Design+Code (https://designcode.io) — learn to design and code React and Swift apps.
  • DreamCut (https://dreamcut.ai) — an AI video editor and screen recorder.

Credits

  • Concept and original open source: Matthew Yu (https://github.com/matthewyuart/personalportfolio)
  • Sketches: gpt image 2
  • Built with Claude Code

Similar Articles

@GitHub_Daily: Recently came across an open-source project called Flipbook Canvas, quite interesting — it turns each AI-generated image into a knowledge tree that you can infinitely click and explore. Long-press any part of the image, the system automatically recognizes what you tapped, searches online for relevant information, and then generates a brand new detailed diagram, layer by layer. GitHub…

X AI KOLs Timeline

Flipbook Canvas is an open-source project that converts AI-generated images into infinitely clickable knowledge trees, supporting online search, real-time generation, and offline export.

@VincentLogic: Drop a screenshot in, AI directly outputs HTML code. Hand-drawn sketches are also recognized. ScreenCoder open-sourced by Chinese University of Hong Kong, 2.7k Stars on GitHub. The video shows three examples: - YouTube homepage screenshot → reproduces full webpage layout - Google search page…

X AI KOLs Timeline

Chinese University of Hong Kong open-sourced ScreenCoder, an AI tool that can directly convert screenshots or hand-drawn sketches into editable HTML code, which has garnered 2.7k Stars on GitHub.

@geekbb: Drawn by pi + DeepSeek, just realized this skill doesn't need an image generation model, it uses LLM to convert natural language descriptions into structured JSON → Node.js renderer generates SVG via pure geometric algorithms → injects into self-contained HTML. https://github.com/tt…

X AI KOLs Timeline

Introducing Archify, a Claude Skill that converts natural language descriptions into structured JSON, then uses a Node.js renderer to generate SVG via pure geometric algorithms, injects into self-contained HTML, supports multiple technical charts and export formats.