Home / Companies / Box / Blog / Post Details
Content Deep Dive

How we built Differences in Box Notes

Blog post from Box

Post Details
Company
Box
Date Published
Author
Matt Nguyen
Word Count
1,287
Company Posts That Month
9
Language
English
Hacker News Points
-
Post removed?
No
Summary

Box Notes, a real-time collaborative note-taking app, has introduced a new feature called Differences to enhance user productivity by highlighting changes made since the last view of a note. This feature addresses the challenge of tracking constant content changes and relies on the Operational Transformation (OT) algorithm, which ensures consistency in the note model data between clients and servers. By integrating Google's diff-match-patch library for plaintext differences and the OT data model for style changes, Box Notes can effectively highlight both text and style modifications. The process involves calculating diffs while considering local changes made before receiving the latest content from the server. This approach enables users to see new content accurately even if they were working offline or with an outdated version, and it leverages the concept of rebasing, similar to version control systems, to merge changes efficiently. The Differences feature not only improves content consumption for users but also demonstrates the flexibility and potential of the OT-based collaboration model for future enhancements.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Real-time 4 233 71 35 -10%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.