Overview
Uxie’s collaboration features enable you to share documents with teammates, assign different permission levels, and work together on PDFs and notes. Invite collaborators via email and control exactly what they can do.Key Features
Email Invitations
Invite collaborators by email address
Role-Based Access
Assign Viewer, Editor, or Owner permissions
Team Management
View and manage all collaborators in one place
Instant Access
Collaborators get immediate access after invitation
Collaboration Roles
Permission Levels
Uxie has three permission levels:Owner
Owner
Full control over the documentCan:
- Read and edit document
- Create and delete highlights
- Edit notes
- Use all features (TTS, AI Chat, Flashcards)
- Invite collaborators
- Remove collaborators
- Change collaborator roles
- Delete the document
- Be removed (permanent owner)
- Transfer ownership (not yet supported)
Editor
Editor
Read and edit accessCan:
- Read document
- Create and delete highlights
- Edit notes
- Use all features (TTS, AI Chat, Flashcards)
- View collaborators list
- Invite new collaborators
- Remove other collaborators
- Change permissions
- Delete the document
Viewer
Viewer
Read-only accessCan:
- Read document
- View highlights
- View notes (read-only)
- Use text-to-speech
- Use AI Chat
- Generate and study flashcards
- View collaborators list
- Create or delete highlights
- Edit notes
- Invite collaborators
- Change any settings
Permission Comparison
| Feature | Owner | Editor | Viewer |
|---|---|---|---|
| Read document | ✓ | ✓ | ✓ |
| Edit title | ✓ | ✓ | ✗ |
| Create highlights | ✓ | ✓ | ✗ |
| Delete highlights | ✓ | ✓ | ✗ |
| Edit notes | ✓ | ✓ | ✗ |
| Use TTS | ✓ | ✓ | ✓ |
| Use AI Chat | ✓ | ✓ | ✓ |
| Generate flashcards | ✓ | ✓ | ✓ |
| Study flashcards | ✓ | ✓ | ✓ |
| Invite collaborators | ✓ | ✗ | ✗ |
| Remove collaborators | ✓ | ✗ | ✗ |
| Delete document | ✓ | ✗ | ✗ |
Inviting Collaborators
How to Invite
The email address must belong to an existing Uxie user. Users need to create an account before they can be invited.
Invitation Interface
The team modal includes:/src/components/workspace/invite-collab-modal.tsx.
Managing Collaborators
Viewing Team Members
Removing Collaborators
As an owner:- Open the Team modal
- Find the collaborator to remove
- Click the trash icon next to their name
- They immediately lose access to the document
The owner cannot be removed. The trash icon is hidden for owner entries.
Changing Roles
Access Control
Permission Checks
Uxie enforces permissions at multiple levels: UI Level:- Edit buttons hidden for viewers
- Highlight popover doesn’t appear for viewers
- Notes editor shows as read-only
- Server validates permissions before mutations
- Database queries filter by user access
- Unauthorized requests return errors
How Permissions Are Checked
/src/app/api/chat/route.ts:48.
Real-Time Collaboration
Current Status
Planned Features
Upcoming real-time features:
- Live cursor positions
- Real-time note editing
- Instant highlight sync
- Presence indicators (who’s viewing)
- Activity feed
- Comment threads
- Version history
Technical Foundation
Collaboration infrastructure is being built with:- Liveblocks: Real-time sync platform
- Y.js: Conflict-free collaborative data structures
- WebSockets: Live updates
/src/components/editor/collaboration-client.tsx.
Team Workflow
Typical Collaboration Patterns
Research Teams
Research Teams
- Owner uploads paper
- Invites team as Editors
- Everyone highlights key sections
- Notes are collaboratively built
- AI Chat used for clarifications
Study Groups
Study Groups
- One member uploads textbook chapter
- Invites group as Editors
- Each person highlights their sections
- Shared flashcards generated
- Group studies together
Document Review
Document Review
- Owner uploads document for review
- Invites reviewers as Editors
- Reviewers add highlights and notes
- Owner consolidates feedback
- Document revised based on notes
Teaching
Teaching
- Teacher uploads course material
- Students invited as Viewers
- Students can read and use TTS
- Students generate their own flashcards
- Cannot modify teacher’s annotations
Best Practices
Security & Privacy
Document Privacy
- Documents are private by default
- Only owner and invited collaborators have access
- No public sharing links (not yet supported)
- Collaborator list only visible to existing collaborators
Data Access
What collaborators can see
What collaborators can see
- The PDF document
- All highlights (from any collaborator)
- All notes (shared note space)
- AI Chat history (shared)
- Flashcards (shared)
- Collaborator list (emails and roles)
What collaborators cannot see
What collaborators cannot see
- Other documents you own
- Your workspace
- Your personal information beyond email
- Documents you don’t share with them
Removing Access
When you remove a collaborator: ✓ They immediately lose access ✓ Can no longer view the document ✓ Cannot access shared notes or chat history ✓ Their previous contributions remain (highlights, notes) ✗ Cannot revoke already-downloaded PDF filesTechnical Implementation
Database Schema
API Mutations
Add Collaborator:Optimistic Updates
Collaborator changes use optimistic UI updates:- UI updates immediately (instant feedback)
- Request sent to server
- If error, UI rolls back to previous state
- If success, UI stays updated
Troubleshooting
Can't invite a user
Can't invite a user
- Ensure the email is correct
- User must have an Uxie account
- Check if they’re already a collaborator
- Try refreshing the page
- Ensure you’re the document owner
Collaborator can't access document
Collaborator can't access document
- Verify they received the invitation
- Check they’re logged into Uxie
- Confirm they’re using the correct email
- Try removing and re-inviting them
Can't remove collaborator
Can't remove collaborator
- Only owners can remove collaborators
- Cannot remove the owner (yourself)
- Try refreshing the page
- Check your internet connection
Changes not appearing
Changes not appearing
- Refresh the page to see updates
- Real-time sync is not yet available
- Check if you have edit permissions
- Verify you’re viewing the same document
Future Features
Planned collaboration enhancements:
- Real-time editing with live cursors
- Public sharing links
- Role change without re-inviting
- Comment threads on highlights
- @mentions in notes
- Activity feed showing all changes
- Version history and restore
- Team workspaces
- Organization-level sharing
Related Features
Note Taking
Collaborate on shared notes
Annotations
Share highlights with team
AI Chat
Shared chat history
