shivam@portfolio: ~/projects
> project case study

Editorial

A collaborative document workspace built with React, Tiptap, Express, and Supabase Postgres. Uses Yjs and Socket.IO for shared editing, alongside folders, comments, version history, search, document exports, and optional NVIDIA-backed writing assistance.

Problem and audience

Editorial serves writers and reviewers who need to edit the same document, leave comments and organize drafts in a shared workspace.

Architecture and tradeoffs

ReactNode.jsPostgreSQL

Editorial uses a React/Tiptap browser editor, an Express API, Socket.IO collaboration events, Yjs document updates, and Supabase Postgres persistence.

React + Tiptap
The frontend uses Tiptap for rich-text editing and Yjs documents for conflict-safe collaborative updates. Socket.IO carries update and synchronization events.
Express API
The Node/Express server handles document, folder, comment, attachment, version, notification, integration, and AI endpoints, then checks access and persists domain records.
Socket.IO + Yjs
Socket handlers authorize document access, join collaboration rooms, send Yjs state on sync requests, and broadcast update messages to collaborators.
Supabase Postgres
Supabase stores application records and persisted Yjs collaboration state. The backend uses the configured Supabase service key.

Yjs carries collaborative document changes, while the Express API handles document metadata and related records. Keeping those paths separate lets the editor synchronize changes without replacing the API used for folders, comments and versions.

Scope and limitations

The project supports Yjs collaboration with a legacy realtime fallback. Redis caching/pub-sub and external AI, auth, email, and notification providers are optional integrations configured by environment.

A documented change replaces the retired NVIDIA embedding model used by search.

Reviewed repository snapshot (a1a8b8c) ↗

View the documented change ↗

← Back to portfolio projects