YourSlash: Detailed Product Specifications
Core Product Components
1. Web Application
Authentication System:
- Supabase-powered authentication with multiple providers (Google, email/password)
- Persistent session management with automatic token refresh
- Session sharing with Chrome extension via postMessage
- "Never log out" design philosophy for seamless user experience
Cloud Service Integration:
- Google Drive integration with OAuth scopes for file access
- Dropbox integration with appropriate API permissions
- OneDrive integration with Microsoft Graph API
- Extensible architecture for adding future cloud providers
File Management:
- Unified
drive_files
- table in Supabase for storing file metadata
- Support for various file types and formats across providers
- File preview capabilities for common document types
- Shareable link generation for easy content sharing
User Interface:
- Modern, responsive Angular-based interface
- Unified dashboard showing all connected services
- File browser with filtering and sorting capabilities
- Search interface with cross-provider results
- Connection management for adding/removing cloud services
2. Chrome Extension
Core Functionality:
- Quick search across all connected cloud services
- Results display with file previews and quick actions
- Authentication state shared with web application
- Background syncing with cloud providers
Integration Features:
- Context-aware search suggestions
- In-page file access without switching tabs
- Keyboard shortcuts for rapid access
- Notification system for sync status and updates
Technical Architecture
Frontend:
- Angular framework for web application
- TypeScript for type safety and better developer experience
- RxJS for reactive programming patterns
- Angular Material for UI components
- Chrome extension built with standard web technologies
Backend & Data Storage:
- Supabase for authentication, database, and storage
- PostgreSQL database with the following key tables:
drive_connections
- : Stores connection information for cloud providers
drive_files
- : Unified table for file metadata across providers
- RESTful API architecture for cloud provider communication
Authentication Flow:
- Initial authentication through Supabase
- Provider tokens stored securely
- Automatic token refresh mechanisms
- Session persistence across browser sessions
Synchronization System:
- Background sync processes for updating file metadata
- Incremental sync to minimize API usage
- Pagination handling for large file collections
- Error handling and retry mechanisms
User Experience
Onboarding:
- User creates account or signs in with Google
- User connects desired cloud services
- Initial sync process begins, showing progress indicator
- Dashboard populates with unified file view
Daily Usage:
- User accesses web app or activates extension
- Authentication is automatically maintained
- User searches or browses for content across all services
- Files can be accessed directly through YourSlash interface
File Access Workflow:
- User searches for file by name, content, or metadata
- Results appear from all connected services
- User selects desired file
- File opens in appropriate viewer or downloads as needed
Current Development Challenges
Authentication Issues:
- 403 Forbidden errors with Google Drive API due to incorrect OAuth scopes
- Session persistence challenges between web app and extension
- Token refresh mechanisms need optimization
File Synchronization:
- Nested folder traversal limitations in Google Drive
- Handling large file collections efficiently
- Maintaining sync state across multiple devices
Extension Integration:
- Ensuring reliable communication between extension and web app
- Managing authentication state across contexts
- Optimizing performance for instant search results
Roadmap and Future Enhancements
Near-term Priorities:
- Resolve Google Drive authentication scope issues
- Implement proper nested folder traversal
- Enhance session sharing between web app and extension
- Improve sync performance and reliability
Medium-term Goals:
- Add content preview for more file types
- Implement advanced search with content indexing
- Add collaborative features for shared files
- Develop mobile companion application
Long-term Vision:
- AI-powered content organization and suggestions
- Integration with productivity tools and workflows
- Enterprise features for team collaboration
- End-to-end encryption options for sensitive content