QR Code Sharing for Collaboration Spaces
The Vaultys Playground now supports QR code sharing for collaboration spaces, making it easier to invite others to join your collaborative sessions.
How It Worksโ
For Space Ownersโ
- Create a Space: Navigate to the collaboration tool and create your space
- Generate QR Code: Once connected, click the "๐ฑ QR Code" button in the header or space information panel
- Share the QR Code: Others can scan this code to instantly join your space
For Participantsโ
- Scan the QR Code: Use your phone's camera or QR code scanner
- Select Identity: You'll be redirected to the playground where you can:
- Select an existing identity
- Create a new identity if needed
- Auto-Join: After selecting an identity, you'll automatically join the collaboration space
QR Code URL Formatโ
The QR code contains a URL in the following format:
https://your-domain/playground/#tool=collaboration&spaceid=<spaceId>
Where spaceId is the full space address (e.g., spaceName@ownerDID)
Featuresโ
Automatic Connection Flowโ
- When scanning a QR code, users are guided through the entire connection process
- The space ID is automatically populated
- Connection happens automatically after identity selection
Visual Indicatorsโ
- Blue notification banner shows when joining via QR code
- Space ID is displayed for confirmation
- Clear instructions guide users through the process
Securityโ
- Each user must have or create their own Vaultys identity
- The space owner automatically accepts joining peers
- All communication is peer-to-peer and encrypted
User Experience Flowโ
Implementation Detailsโ
QR Code Generationโ
- Uses the
qrcodenpm package - Generates a 256x256 pixel QR code
- Includes the full share URL with space ID
URL Parameter Handlingโ
- The playground index page detects
toolandspaceidparameters - Shows a notification banner for QR code joins
- Stores pending redirect information until identity is selected
Auto-Connectionโ
- The collaboration page detects the
spaceidparameter - Automatically populates the room name field
- Triggers connection after a short delay
Best Practicesโ
- Share Responsibly: Only share QR codes with trusted participants
- Space Naming: Use descriptive space names for easy identification
- Identity Management: Encourage users to create meaningful identity names
Troubleshootingโ
QR Code Not Workingโ
- Ensure the URL is complete and properly encoded
- Check that the space is still active
- Verify the owner is online (for participant connections)
Connection Issuesโ
- Ensure both peers have stable internet connections
- Check that WebRTC is not blocked by firewalls
- Try refreshing the page and reconnecting
Identity Issuesโ
- Make sure at least one identity exists
- Clear browser storage if identities are corrupted
- Create a new identity if problems persist
Technical Requirementsโ
- Modern web browser with WebRTC support
- Camera access for QR code scanning (mobile)
- Local storage enabled for identity persistence