Skip to content

Repository files navigation

Codev

A real-time collaborative code editor built with React, Yjs, and Fastify.

Status: Work in progress — actively being built.


What It Is

Codev lets multiple users write and edit code together in a shared workspace called a room. Every keystroke is synced instantly across all participants — no conflicts, no manual refresh, no last-write-wins.


Tech Stack

LayerTechnology
FrontendReact 18 + TypeScript + Vite
UIshadcn/ui + Tailwind CSS
Code EditorCodeMirror 6
Real-time SyncYjs (CRDT)
BackendFastify + TypeScript
DatabasePostgreSQL + Drizzle ORM
Cache / Pub-SubRedis
AuthJWT + refresh token rotation
DevOpsDocker Compose + GitHub Actions

Project Structure

codev/
├── client/ # React + Vite frontend
├── server/ # Fastify API + WebSocket server
└── shared/ # Shared TypeScript types

Planned Features

  • Multi-user real-time editing with CRDT-based conflict resolution
  • Named cursors — see where each collaborator is in the document
  • Room management — create, share, and persist coding sessions
  • In-room chat
  • Syntax highlighting for JavaScript, TypeScript, Python and more
  • Horizontally scalable via Redis Pub/Sub

More documentation will be added as the project progresses.

About

Real-time collaborative code editor — TypeScript, React, Fastify, Yjs, CodeMirror 6, Tailwind, shadcn/ui

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages