React 19BunSocket.IOAITypeScript

AltShift

AltShift project cover
Overview
A real-time collaborative document editor bridging the gap between traditional word processing and AI-assisted creation.
Scope
Full Stack Architecture, Real-time Systems Engineering
Tech Stack
Languages: JavaScript/TypeScript, HTML/CSS
Frontend: React 19, Vite, Slate.js (Rich Text), Socket.IO Client, Apollo Client, Lucide React
Backend: Bun (Runtime), Express 5, Apollo Server (GraphQL), Socket.IO, Mongoose
Databases: MongoDB
Services: Groq AI, SendGrid
Developer Tools: Docker, GraphQL Codegen, ESLint, Concurrently
AltShift project illustration 1
AltShift project illustration 2
Challenge
The core engineering challenge was synchronizing complex rich-text state across multiple clients in real-time. Integrating Slate.js with Socket.IO required developing custom state management logic to prevent write conflicts and ensure consistency. Additionally, orchestrating low-latency AI streaming responses without blocking the main collaboration thread required careful optimization of the backend event loop and frontend state updates.
Objective
Build a collaborative editor with rich-text controls, document permissions, versioning, and AI-assisted drafting.
Results
Built collaborative editing, autosave, presence, versioning, and Groq-powered document generation. The user confirmed conflict resolution, AI streaming, and sub-second collaboration; independent measurements are not recorded here.
AltShift project illustration 4
AltShift project illustration 5

Get In Touch

Want to work on something together? Just want to chat? Hit me up.