Odyssey is a beautiful, real-time collaborative slide editor that enables teams to create and edit presentations together seamlessly. Built with modern web technologies, it offers a smooth editing experience with instant synchronization across all collaborators.
- Real-Time Collaboration: Multiple users can edit the same presentation simultaneously with live cursors and presence indicators
- Rich Text Editing: Powered by ProseMirror with support for formatting, lists, and more
- Scoped Undo/Redo: Each user's undo/redo stack is independent, only affecting their own changes
- Flexible Sharing: Share entire presentations or individual slides with unique shareable links
- Slide Management: Add, delete, and reorder slides with ease
- Modern UI: Clean, aesthetic design built with Tailwind CSS
- State Management: Robust application state handling with XState
- React - UI library
- TypeScript - Type safety
- XState - State management
- Liveblocks - Real-time collaboration infrastructure
- Yjs - CRDT for collaborative editing
- ProseMirror - Rich text editor
- Tailwind CSS - Styling
- Vite - Build tool
- Node.js - Runtime
- Express - Web framework
- Prisma - ORM
- PostgreSQL - Database
- Liveblocks Node SDK - Server-side collaboration support
Before you begin, ensure you have the following installed:
- Node.js (v18 or higher)
- PostgreSQL (v14 or higher)
- npm or yarn
git clone <repository-url>
cd odysseynpm installThis will install dependencies for both the client and server workspaces.
- Go to Liveblocks and create a free account
- Create a new project
- Get your public and secret keys from the dashboard
Create a new PostgreSQL database:
createdb odysseyDATABASE_URL="postgresql://username:password@localhost:5432/odyssey?schema=public"
PORT=3001
LIVEBLOCKS_SECRET_KEY=your_liveblocks_secret_keyVITE_LIVEBLOCKS_PUBLIC_KEY=your_liveblocks_public_key
VITE_API_URL=http://localhost:3001Replace the placeholders with your actual values:
usernameandpasswordwith your PostgreSQL credentialsyour_liveblocks_secret_keywith your Liveblocks secret keyyour_liveblocks_public_keywith your Liveblocks public key
cd server
npm run db:push
cd ..From the root directory:
npm run devThis will start both the backend (port 3001) and frontend (port 3000) servers concurrently.
Navigate to http://localhost:3000 in your browser.
- On the home page, click "Create New Presentation"
- You'll be redirected to the editor with a blank slide
- Click on a slide in the left sidebar to select it
- Use the editor to add and format text
- Use arrow keys to navigate between slides
- All changes are automatically saved and synced in real-time
- Add Slide: Click the "Add Slide" button in the toolbar
- Delete Slide: Hover over a slide thumbnail and click the delete (Γ) button
- Navigate: Use the arrow buttons or keyboard arrows to move between slides
- Click the "Share" button in the toolbar
- Choose between:
- Share All Slides: Creates a link to the entire presentation
- Share Current Slide: Creates a link to only the current slide
- Copy the generated link and share it with collaborators
- Collaborators can edit in real-time without signing in
- See other users' cursors and selections in real-time
- View active collaborators in the top-right corner
- Undo/redo only affects your own changes, not others'
odyssey/
βββ client/ # Frontend React application
β βββ src/
β β βββ components/ # Reusable UI components
β β βββ pages/ # Page components
β β βββ lib/ # Utilities and configurations
β β βββ machines/ # XState state machines
β β βββ types/ # TypeScript type definitions
β β βββ hooks/ # Custom React hooks
β βββ package.json
βββ server/ # Backend Node.js application
β βββ src/
β β βββ routes/ # API routes
β β βββ index.ts # Server entry point
β βββ prisma/
β β βββ schema.prisma # Database schema
β βββ package.json
βββ package.json # Root package.json
The application uses three main models:
- Presentation: Contains metadata and has many slides
- Slide: Belongs to a presentation, stores position and content
- Share: Represents shareable links for presentations or individual slides
# Frontend tests
cd client
npm test
# Backend tests
cd server
npm test# Generate Prisma client
npm run db:generate
# Push schema changes to database
npm run db:push
# Open Prisma Studio (database GUI)
npm run db:studio# Build client
cd client
npm run build
# Build server
cd server
npm run build- Liveblocks provides infrastructure for real-time features (presence, authentication)
- Yjs is a CRDT that ensures conflict-free collaborative editing
- Together, they provide a robust foundation for real-time collaboration
- Powerful, extensible rich text editor
- Excellent support for collaborative editing via y-prosemirror
- Transaction-based architecture perfect for undo/redo functionality
- Explicit state management prevents bugs
- Makes complex UI states predictable
- Great developer experience with visualization tools
- Type-safe database access
- Easy migrations and schema management
- PostgreSQL's reliability and features for production use
- Clean, minimal interface: Focus on content creation without distractions
- Sidebar navigation: Easy access to all slides while editing
- Color-coded collaboration: Each user has a unique color for easy identification
- Responsive design: Works well on different screen sizes
Contributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
- Add support for images and media
- Implement presentation mode (full-screen slide view)
- Add slide templates
- Support for comments and annotations
- Export to PDF/PowerPoint
- User authentication and presentation ownership
- Slide themes and styling options
- Use
Cmd/Ctrl + Zto undo your changes - Use
Cmd/Ctrl + Shift + Zto redo - Use arrow keys to quickly navigate between slides
- Share specific slides when you want focused collaboration
- Keep the browser tab open to maintain real-time connection
For issues and questions, please open an issue on GitHub.
Built with β€οΈ for seamless collaboration