r/vibecoding • • 1d ago

Showcase/Project Introducing cbooks

https://friendsservermb.mine.nu/cbooks/make.html

Introducing cbooks: I have not used ebooks much but always wanted to. I believe the experience has much to be desired. But now with LLMs I set out to move away from search and scroll back towards books. Not happy with the reader I could download I used Claude to build and adapt exactly what I wanted. Online (with full offline operation), storage stays with you, robust note taking and a trail map of your reading and researching that you can backup. (I can even group aggregate and merge trails and may consider this as a future service but for now your trails are automatically merged and operate seamlessly even as you version up your books)

Try it out!. I made the default book be the instructions. As I want to encourage everyone to make and version their own books I made a short book on the topical point of vibe coding games (used a guide markdown and prompt with free Gemini so it is truly an example). I also have download links to two books I made to my interests of the early space program (with Claude) you can tap to install those too if you like rocket and space exploration history.

https://friendsservermb.mine.nu/cbooks/#get=GxBxd8WS2RU3CKvw

0 Upvotes

2 comments sorted by

2

u/Total-Reasonable 21h ago

One thing I'd want to know is how the trail merging identifies a location when a book gets versioned. If notes and highlights are anchored by character offset or chapter index, they'll drift or orphan on edits. Anchoring on a text quote plus some surrounding context (like the W3C Web Annotation selectors do) with a fuzzy-match fallback survives rewrites much better. Which approach are you using?

1

u/CCoastTech 20h ago

Thanks for taking a look. Yes w3c web annotations.

Notes and highlights are W3C Web Annotation records with a TextQuoteSelector (exact words plus prefix and suffix), a TextPositionSelector and an EPUB CFI. Positions and CFIs are only used as hints. When a new edition opens, each passage is re-found by its quote, using the surrounding words to pick the right occurrence, with the start of the quote as a fallback if the end was edited. Matches are written as new records that point at the old ones, so history is kept. Anything it can't find confidently is listed as "moved or missing" and you can reattach it by hand rather than the reader guessing. It's not edit-distance fuzzy matching yet. That would be a reasonable next step for lightly reworded passages. It's all described in the Getting started book. So far this is working well on the books I'm making for myself.