Important
CodePair was retired in November 2026 and every note moved to Wafflebase. Sign in there with the same GitHub account. This repository is kept for reference.
Build your own AI real-time collaborative markdown editor in just 5 minutes.
CodePair is an open-source real-time collaborative markdown editor with AI intelligence, built using React, NestJS, and LangChain.
CodePair provides the following features:
- Workspace: A space where users can invite others and collaboratively edit documents
- Sharing Document: Share documents with external parties by setting permissions and expiration time
- Yorkie Intelligence: AI intelligence available within the collaborative editing editor
This repository contains multiple packages that make up our project, organized as a pnpm workspace under packages/.
@codepair/frontend: App shell — routing, auth, workspace, editor slot. See packages/frontend/README.md for details.@codepair/backend: NestJS API server. See packages/backend/README.md for details.@codepair/codemirror: CodeMirror 6 editor with Yorkie sync, toolbar, preview. Self-contained vertical slice.@codepair/ui: Shared types (EditorPort,EditorModeType,PresenceInfo) and pure UI components.
- Supported: 20.x (LTS), 22.x (Active LTS), 24.x (Current)
- Dropped: 18.x (End-of-life)
For the Social Login feature, you need to obtain a GitHub OAuth key before running the project. Please refer to this document for guidance.
After completing this step, you should have the GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET values.
We offer two options. Choose the one that best suits your needs:
- Frontend Development Only Mode: Use this option if you only want to develop the frontend.
- Full Stack Development Mode: Use this option if you want to develop both the frontend and backend together.
-
Update your
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETto./packages/backend/docker/docker-compose-full.yml.vi ./packages/backend/docker/docker-compose-full.yml # In the file, update the following values: # GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET GITHUB_CLIENT_ID: "your_github_client_id_here" GITHUB_CLIENT_SECRET: "your_github_client_secret_here"
-
Run
./packages/backend/docker/docker-compose-full.yml.docker-compose -f ./packages/backend/docker/docker-compose-full.yml up -d
-
Install dependencies from the root.
pnpm install
-
Run the Frontend application.
pnpm frontend dev
-
Visit http://localhost:5173 to enjoy your CodePair.
-
Update your
GITHUB_CLIENT_IDandGITHUB_CLIENT_SECRETto./packages/backend/.env.development.vi ./packages/backend/.env.development # In the file, update the following values: # GITHUB_CLIENT_ID, GITHUB_CLIENT_SECRET GITHUB_CLIENT_ID=your_github_client_id_here GITHUB_CLIENT_SECRET=your_github_client_secret_here
-
Run
./packages/backend/docker/docker-compose.yml.docker-compose -f ./packages/backend/docker/docker-compose.yml up -d
-
Install dependencies from the root.
pnpm install
-
Set up the Yorkie webhook:
pnpm setup:webhook
-
Run the Backend application and the Frontend application:
pnpm backend start:dev pnpm frontend dev
-
Visit http://localhost:5173 to enjoy your CodePair.
See CONTRIBUTING for details on submitting patches and the contribution workflow.
- docs/design/ — Architectural design documents
- docs/tasks/ — Task tracking (active and archived)
- docs/editor-port-architecture.md — Editor port architecture overview
- packages/frontend/design/ — Frontend-specific design docs
- packages/backend/design/ — Backend-specific design docs
- CHANGELOG.md — Release notes
- MAINTAINING.md — Release and maintenance procedures
- CLAUDE.md — Agent instructions for AI-assisted development
Thanks goes to these incredible people: