Inspiration

ContextRT was inspired by the need to eliminate context-switching while browsing the web. We noticed that users often need to open new tabs or search for additional information while typing, which breaks their workflow. The idea was to create a seamless experience where relevant context appears exactly when needed, powered by Perplexity's Sonar API.

What it does

ContextRT is a Chrome extension that provides real-time context as you type, powered by Perplexity's Sonar API. Key features include:

  • ๐ŸŒ Real-time web search capabilities that analyze your text as you type
  • ๐Ÿง  AI-powered context generation with a focus on current events and trending topics
  • ๐Ÿข Automatic company information cards with stock data and Wikipedia summaries
  • ๐Ÿ‘ค Public figure details with Wikipedia integration
  • ๐ŸŽจ Clean, non-intrusive UI with modern design elements
  • โšก Fast and responsive performance with debounced requests
  • ๐ŸŒ“ Support for both light and dark modes
  • โš™๏ธ Customizable settings for company/person cards and auto-display

How we built it

The project is built using a modern tech stack:

  • Frontend: Next.js with TypeScript for type safety
  • UI Components: shadcn UI for consistent, modern design
  • Extension Architecture:
    • Content scripts for real-time text monitoring
    • Background service worker for API communication
    • Chrome storage for persistent settings
  • AI Integration: Perplexity's Sonar API for context generation
  • Development Tools:
    • esbuild for extension bundling
    • Tailwind CSS for styling
    • ESLint for code quality

Challenges we ran into

  1. Performance Optimization: Balancing real-time context updates with performance required careful debouncing and caching strategies
  2. UI/UX Design: Creating a non-intrusive popup that provides valuable information without disrupting the user's workflow
  3. API Integration: Managing rate limits and handling API responses efficiently
  4. Cross-browser Compatibility: Ensuring consistent behavior across different Chrome versions
  5. State Management: Coordinating between content scripts, background service worker, and popup UI

Accomplishments that we're proud of

  1. Seamless Integration: Created a frictionless experience that feels native to the browser
  2. Real-time Performance: Achieved sub-second response times for context generation
  3. Modern Design: Implemented a beautiful, responsive UI with support for both light and dark modes
  4. Smart Features: Built intelligent company and person card detection with Wikipedia integration
  5. User Control: Provided granular settings for users to customize their experience
  6. Security: Implemented secure API key handling and proper error management

What we learned

  1. Chrome Extension Development: Deep dive into Chrome's extension architecture and best practices
  2. AI Integration: Working with Perplexity's Sonar API and optimizing for real-time responses
  3. Performance Optimization: Techniques for managing real-time updates without impacting browser performance
  4. User Experience: Importance of non-intrusive design and providing value without disruption
  5. TypeScript: Leveraging type safety for more robust extension development

What's next for ContextRT

  1. Enhanced AI Capabilities: Integration with additional AI models for more diverse context generation
  2. Expanded Platform Support: Bringing ContextRT to other browsers (Firefox, Safari)
  3. Advanced Features:
    • Custom context templates
    • User-defined triggers
    • Enhanced company/person card information
  4. Community Features:
    • User feedback system
    • Context sharing capabilities
    • Custom card templates
  5. Performance Improvements:
    • Caching system for frequently requested contexts
    • Optimized API usage
    • Reduced memory footprint

Built With

Share this project:

Updates